python3-docker=5.0.3-1 package is useless on ubuntu 24.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-docker (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
`python3-
as `Ubuntu 24.04` have following versions of `python3-requests`, `python3-urllib3` and `python3-docker` packages:
```
$ apt list --installed | grep python3-urllib3
python3-
$ apt list --installed | grep python3-requests
python3-
intel@gramine24
python3-
$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
```
Installing `docker` using `pip` is not the option on `Ubuntu 24.04`:
```
$ pip3 install docker
error: externally-
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-
hint: See PEP 668 for the detailed specification.
```
Hence Ubuntu 24.04 must upgrade `python3-
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: python3-docker 5.0.3-1ubuntu1
ProcVersionSign
Uname: Linux 6.8.0-1007-azure x86_64
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CloudBuildName: server
CloudSerial: 20240423
Date: Thu May 23 14:34:20 2024
PackageArchitec
ProcEnviron:
LANG=C.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm
XDG_RUNTIME_
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: python-docker
UpgradeStatus: No upgrade log present (probably fresh install)
summary: |
- docker3-python=5.0.3-1ubuntu1 is useless + docker3-python=5.0.3-1ubuntu1 is useless on ubuntu 24.04 |
summary: |
- docker3-python=5.0.3-1ubuntu1 is useless on ubuntu 24.04 + python3-docker=5.0.3-1ubuntu1 is useless on ubuntu 24.04 |
description: | updated |
summary: |
- python3-docker=5.0.3-1ubuntu1 is useless on ubuntu 24.04 + python3-docker=5.0.3-1 is useless on ubuntu 24.04 |
description: | updated |
summary: |
- python3-docker=5.0.3-1 is useless on ubuntu 24.04 + python3-docker=5.0.3-1 package is useless on ubuntu 24.04 |
first usage of `python3-docker package is to connect to the docker service using below code lines
$ python3
>>> import docker;
>>> docker_socket = docker.from_env()
last line reports the issue described in the bug report.