"ImportError: No module named 'ConfigParser'" przy "apt-get upgrade"


(Voltinus) #1

Witam, po wpisaniu w terminal “sudo apt-get upgrade” pojawia się taki komunikat:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up python-pip (8.1.1-2ubuntu0.4) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-pip (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up virtualbox (5.0.36-dfsg-0ubuntu1.16.04.2) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package virtualbox (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python-pip
 virtualbox
E: Sub-process /usr/bin/dpkg returned an error code (1)

Dodam, że system to Linux Mint 18.1, pip działa, VirtualBox nie.


(Voltinus) #2

Zmieniłem /usr/bin/python tak, żeby wskazywał na python2, a nie python3. Po zamianie wszystko działa, temat do zamknięcia.