[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#949572: debian-installer: Do not install Python2 by default.



Package: debian-installer
Severity: normal


Hi,

I just installed Debian using daily amd64 netinst iso (2020-01-21 iso),
and after I selected mostly minimal amount of stuff (plus popcon,
unatannteded-upgrades, and ssh server and standard utilities),
I rebooted, and checked the python2 packages.

I did spot that python2.7 and python (2) packages were installed.

I just done apt-get purge {,lib}{python,python2.7}{,-minimal,-stdlib}
and nothing else was removed. Just python2.

There is nothing in the minimal system that depends on it.

Removal was successfull.

$ python
bash: python: command not found
$

Good!

python3 works fine.

System looks to be working perfectly fine.

So the debian-installer, or debootstrap, or whatever is installing python (2),
should stop doing it. If some later package requires is as a dependency,
sure apt will install it, but by default it is unecassary dependency.

If there is some package or script that implicitly depends on Python2,
well so bad. It is better to simply remove this implicit dependency,
and by removing default installation of python2, it would be way easier
to actually find any such scripts, if any.


Best regards,
Witold




-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled


Reply to: