I have an old VM that started out as Ubuntu 16.x then I upgraded it to the 18x series and now 20.x series. I was surprised that python 2.7 was still the system python.
I discovered that if you upgrade from 18x to 20x the system python is NOT changed. Why is Python 2.7 still the default Python version in Ubuntu? On fresh install of Ubuntu 20.x python 3.x is the default.
What is the correct procedure to remove python 2.7 from an upgraded system?
which python
andwhich python3
– user535733 Sep 23 '20 at 16:39python
switched from default in python2 to python3.python -V; python3 -V
now report the same version for both (I have to usepython2 -V
to get a python2 version. Using normal upgrade procedures I'd expect to havepython
andpython3
both report the same, any failures are likely to be because of changes made by users, as clean systems (with any official packages added) will upgrade correctly I believe. Revert any changes you've made to your default python, back to default Ubuntu, and the upgrade tools will work as tested & expected. – guiverc Sep 23 '20 at 23:00