News for hackers. Stuff that matters.
Re:Python 2 Removed from Debian by bayindirh on Tuesday January 03, 2023 @03:11AM (#34229083)
This is also how Debian did it, too. Actually it's probably propagated from Debian Unstable to Ubuntu.

You need to install either "python-is-python2" or "python-is-python3" packages to get proper system-wide symlinks. Also, it was strictly verboten to give either of two packages as dependencies to workaround migration procedures.

Debian Testing doesn't have Python2 at least for a year now.

Re:Python 2 Removed from Debian by ilyt on Tuesday January 03, 2023 @05:48AM (#34229976)
I've upgraded debian thru the ages and /usr/bin/python defaulted to python2. Didn't need to install anything for that to happen, maybe if you installed debian from scratch

Another mistake in Py3 migration was keeping the interpreter name as python so when you had it in path you had a choice of new stuff breaking or old stuff breaking

Re:Python 2 Removed from Debian by bayindirh on Tuesday January 03, 2023 @06:24AM (#34230210)
> I've upgraded debian thru the ages and /usr/bin/python defaulted to python2

It was, in the past.

When python2.7 deprecated and removed in Debian testing, python ceased to exist as a command. You need to install these packages (python-is-python{2,3}) to get the python command and point to the correct interpreter you like.

This behavior is consistent in two Debian testing systems, installed 6 and 9 years ago, respectively.