Skip to content

Tries to install the wrong Python PostgreSQL package on Ubuntu 22.04 #1556

@antaflos

Description

@antaflos

Describe the Bug

Module tries to install package python-psycopg2 under Ubuntu 22.04 where that package no longer exists. It is available as python3-psycopg2 instead.

Expected Behavior

Module should distinguish between Ubuntu versions >= 22.04 and < 22.04 and install the correctly named Python PostgreSQL package.

Steps to Reproduce

  1. include postgresql::lib::python on Ubuntu 22.04

  2. Watch Puppet agent run fail:

    E: Unable to locate package python-psycopg2
    Error: /Stage[main]/Postgresql::Lib::Python/Package[python-psycopg2]/ensure: change from 'purged' to 'present' failed:   Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python-psycopg2' returned 100: Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package python-psycopg2 (corrective)
    

Environment

  • Module version 9.2.0 and later
  • Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy