Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
antaflos opened this issue Nov 23, 2023 · 0 comments · Fixed by #1557
Closed

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

antaflos opened this issue Nov 23, 2023 · 0 comments · Fixed by #1557

Comments

@antaflos
Copy link
Contributor

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
antaflos added a commit to antaflos/puppet-postgresql that referenced this issue Nov 23, 2023
For Ubuntu 22.04 and later the Python PostgreSQL package is called
"python3-psycopg2" so make that distinction in params.pp.
antaflos added a commit to antaflos/puppet-postgresql that referenced this issue Nov 24, 2023
…ian 12

For Ubuntu 22.04 and Debian 12 and later the Python PostgreSQL package
is called "python3-psycopg2" so make that distinction in params.pp.
vaol pushed a commit to vaol/puppetlabs-postgresql that referenced this issue Oct 13, 2024
…ian 12

For Ubuntu 22.04 and Debian 12 and later the Python PostgreSQL package
is called "python3-psycopg2" so make that distinction in params.pp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants