1

I just upgraded to ubuntu 18.04, and I'm not sure what happened, but vim doesn't work anymore. I tried sudo aptitude install vim and i get this:

$ sudo aptitude install vim
The following NEW packages will be installed:
  libpython3.6{ab} vim vim-runtime{a} 
0 packages upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 8009 kB of archives. After unpacking 36,8 MB will be used.
The following packages have unmet dependencies:
 libpython3.6 : Depends: libpython3.6-stdlib (= 3.6.6-1~18.04) but 3.6.7-1+xenial1 is installed
open: 17; closed: 390; defer: 5; conflict: 7                                                                                                 .The following actions will resolve these dependencies:
 Keep the following packages at their current version:

1) libpython3.6 [Not Installed]
2) vim [Not Installed]

Does anyone know what to do without ruining my stuff?

1
  • 2
    You have added non-Canonical/non-Ubuntu sources to your system, and they used a versioning system that is now getting in the way. The 'depends' shows 16.04 was using 3.6.5-3 meaning [bionic's] 3.6.6-1 is an upgrade, but because you installed a xenial intended version 3.6.7-1 via PPA or other which has a higher [numbered] version, your problem exists now due to it's version number (askubuntu.com/questions/1089620/…) I'd suggest removing the problem libs/packages, and then installing the Ubuntu official release versions
    – guiverc
    Nov 3, 2018 at 3:08

1 Answer 1

0

This happens when you forget to use ppa-purge before upgrading. It's annoying, but not a serious problem. You have to identify all the Python 3.6 packages that did not come from the primary Ubuntu archive and reinstall the right versions.

One way of doing that is to use apt-show-versions:

sudo apt install apt-show-versions
sudo apt-show-versions -i    # rebuild index; only needed once

apt-show-versions|grep -v uptodate|grep -v not.installed

Then look for packages having python3.6 in the name.

Now the simpler option is to uninstall them all:

sudo apt remove --auto-remove libpython3.6-stdlib ...

Now you can proceed with sudo apt install vim (and reinstall any other packages you need that got removed when you removed the old PPA Python 3.6).

1
  • be VERY VERY careful when executing sudo apt remove --auto-remove libpython3.6-stdlib it locked me out of desktop and 600mb of packages were removed, mine was 3.8 instead of 3.6 and ubuntu 20
    – George
    Dec 22, 2020 at 20:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .