How to fix apt with broken ConfigParser import?
I have been having problems lately trying to use certbot. I fiddled with pip, easy_install, and apt because of this.
In the end I ended my appetite somehow and couldn't find a solution to fix it.
Now if I try to use apt for anything it throws this error:
Configuring python-pip (8.1.1-2ubuntu0.4) ...
Traceback (last call last):
File "/ usr / bin / pycompile", line 35,
from import debpython.version SUPPORTS, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, on
from ConfigParser import SafeConfigParser
ImportError: no module named "ConfigParser"
dpkg: python-pip error handling package (--configure):
subprocess installed after install script returned exit completion status 1
Configure python wheel (0.29.0-1) ...
Traceback (last call last):
File "/ usr / bin / pycompile", line 35, on
from debpython.version import SUPPORTS, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24,
from ConfigParser import SafeConfigParser
ImportError: no module named "ConfigParser"
dpkg: error handling package python-wheel (--configure):
subprocess installed after installation script returned exit completion status 1
Errors encountered during processing:
python-pip
python wheels
E: subprocess / usr / bin / dpkg returned error code (1)
What can I do to fix this problem? Thanks in advance!
source to share