Skip to content

System Python cannot be installed on Ubuntu 24.04 #711

Open
@akomakom

Description

@akomakom

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 8
  • Ruby: 3.2.5
  • Distribution: Ubuntu 24.04
  • Module version: mod 'puppet-python', '7.4.0'

How to reproduce (e.g Puppet code you use)

Use the example from the README:

  class { 'python':
    version    => 'system',
    pip        => 'present',
    dev        => 'present',
    gunicorn   => 'present',
  }

What are you seeing

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install python' returned 100: Reading package lists...                                                       
Building dependency tree...                                                                                                                                                                 
Reading state information...                                                                                                                                                                
Package python is not available, but is referred to by another package.                                                                                                                     
This may mean that the package is missing, has been obsoleted, or                                                                                                                           
is only available from another source                                                                                                                                                       
However the following packages replace it:                                                                                                                                                  
  2to3 python-is-python3     

What behaviour did you expect instead

Python should be installed (possibly via apt install python-is-python-3)

Output log

Any additional information you'd like to impart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions