Siduction Forum

Siduction Forum => Software - Support => Topic started by: orinoco on 2020/08/26, 21:06:36

Title: How to handle python 2 removal?
Post by: orinoco on 2020/08/26, 21:06:36
Hello,

since a few days I'm struggeling with python on my system. The package python-minimal seems not to be installable.

The following packages have unmet dependencies:
python-minimal : Depends: python2-minimal (= 2.7.17-2) but 2.7.18-2 is to be installed
Recommends: python but it is not going to be installed


With this in mind I found this transition https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931659 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931659)

Okay python2 will be removed in the near future. My next idea was to make python3 the "default" python. I played with update alternatives.

$ LANG=C sudo update-alternatives --list python
update-alternatives: error: no alternatives for python


I don't want to break package dependencies and that's why I didn't use a hardlink from python to python3 so far.

What is your opinion? How do you handle the python2 removal?
Title: Re: How to handle python 2 removal?
Post by: dsat on 2020/08/26, 21:43:41
These three libpython2-stdlib python2 python2-minimal are installable from testing and mandatory for installing oracles current virtualbox-6.1
Title: Re: How to handle python 2 removal?
Post by: der_bud on 2020/08/26, 21:50:17
First, you can install python2-minimal and python3-minimal side by side (from package description, python2-minimal replaces python-minimal).
Second, I don't handle it, I let Debian and the apt package manager handle that. 3 will automatically become default after transition, and probably some not well maintained packages might go, but I personally had no problems so far with just common dist-upgrading and let apt do the rest.
Title: Re: How to handle python 2 removal?
Post by: Carnophage on 2020/08/30, 22:20:06
If You want python default to python3, then something like

update-alternatives --install /usr/bin/python python /usr/bin/python3 1
should do the job.