On Ubuntu 16.04 I installed Python 3.6 from the deadsnakes PPA. Now I upgraded to Ubuntu 18.04 which builds on top of Python 3.6 but instead of removing the old version of Python 3.6 it kept the version from the deadsnakes PPA which leads to dependency issues if I want to install anything related to python. For example, if I run
sudo apt install python3.6-venv:
The following packages have unmet dependencies: python3.6-venv : Depends: python3.6 (= 3.6.5-3) but 3.6.6-1+xenial1 is to be installed
Is there a safe way to remove
3.6.6-1+xenial1 without removing everything which depends on it to install the default Python 3.6? Otherwise, I would have to reinstall Ubuntu from scratch.
A related question is impossible to install with apt-get, python missing Unfortunately, the only answer given recommends manually removing and reinstalling python3.6 which would lead to the removal of about 218 packages. This is what I would like to circumvent.
sudo apt-get remove python3.6:
The following packages will be REMOVED: apparmor apport apport-gtk aptdaemon apturl apturl-common asymptote atom cdbs command-not-found compiz compiz-gnome dh-python firefox foomatic-db-compressed-ppds gconf2 gdm3 gedit gedit-common gir1.2-ibus-1.0 gnome-control-center gnome-menus gnome-online-accounts gnome-orca gnome-shell gnome-software gnome-software-plugin-snap gnome-terminal ...