python3.11-venv is missing on 24.04

Bug #2058821 reported by Jakub Kuczys
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python3.11 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I installed `python3.11` package on Ubuntu 24.04 (I tried the official `ubuntu:24.04` Docker image for ease of reproducibility) and tried running `python3.11 -m venv /tmp/test`, I got the following error message:
```
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.11-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.

Failing command: /tmp/test/bin/python3.11
```

This would be fine (and is expected on Debian-based systems) but I then tried running the `apt install python3.11-venv` command and have learned that there is no such package available in the 24.04 repositories:
```
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3.11-venv 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

E: Package 'python3.11-venv' has no installation candidate
```

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python3.11 (Ubuntu):
status: New → Confirmed
Revision history for this message
Markus Falb (littlecatordog) wrote :

It disappeared some time after March 16, if I read my CI logs correctly.

Revision history for this message
Jakub Kuczys (jackenmen) wrote :
Revision history for this message
Markus Falb (littlecatordog) wrote :

yes. package back.

Revision history for this message
Markus Falb (littlecatordog) wrote :

all python3.11 packages are missing now.
I wonder: will 24.04 ship with python3.11 or not?

Revision history for this message
thewade (wade-penner) wrote :

I am getting the same error with Python 3.12 and Ubuntu 24.04. When I try to create the environment it tells me to install python3.11-venv.

I am commenting here to let people who might stumble on this bug know that it is a separate issue and they just need to install python3-venv. I have reported the Python 3.12 issue in bug #2065422.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.