Hi Stefano:

Tested with a simple container:

$ docker run -it debian:sid bash

# apt update && apt install python3-minimal
Get:1 http://deb.debian.org/debian sid InRelease [167 kB]
Get:2 http://deb.debian.org/debian sid/main amd64 Packages [9406 kB]
Fetched 9573 kB in 3s (3532 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
krb5-locales libexpat1 libgpm2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmpdec3 libncursesw6 libnsl2 libpython3.11-minimal libpython3.11-stdlib libreadline8 libsqlite3-0 libssl3 libtinfo6 libtirpc-common libtirpc3 media-types ncurses-base ncurses-bin python3.11 python3.11-minimal readline-common
Suggested packages:
gpm krb5-doc krb5-user python3.11-venv python3.11-doc binutils binfmt-support readline-doc
The following NEW packages will be installed:
krb5-locales libexpat1 libgpm2 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libmpdec3 libncursesw6 libnsl2 libpython3.11-minimal libpython3.11-stdlib libreadline8 libsqlite3-0 libssl3 libtirpc-common libtirpc3 media-types python3-minimal python3.11 python3.11-minimal readline-common
The following packages will be upgraded:
  libtinfo6 ncurses-base ncurses-bin
3 upgraded, 23 newly installed, 0 to remove and 22 not upgraded.
Need to get 10.4 MB of archives.
After this operation, 33.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Here you see the python3.11 installation, but it's because apt is pulling the recommends by default.

Check this other execution with the argument "--no-install-recommends":

# apt install python3-minimal --no-install-recommends
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libexpat1 libpython3.11-minimal libssl3 python3.11-minimal
Suggested packages:
  binfmt-support
Recommended packages:
  libpython3.11-stdlib python3.11
The following NEW packages will be installed:
libexpat1 libpython3.11-minimal libssl3 python3-minimal python3.11-minimal
0 upgraded, 5 newly installed, 0 to remove and 25 not upgraded.
Need to get 5009 kB of archives.
After this operation, 18.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]

The python3.11 is not installed.

I think that python3.11 must be labeled inside suggests instead of recommends. On debian/control:

85,86c85
< Recommends: python3.11
< Suggests: binfmt-support
---
Suggests: binfmt-support, python3.11


Thanks,

Reply via email to