Recently, I was having problems with trying to use certbot. Because of this, I was messing around with pip, easy_install, and apt.
Eventually I ended up breaking apt somehow and haven't found the solution to fixing it.
Now if I try to use apt for anything it throws this error:
Setting up python-pip (8.1.1-2ubuntu0.4) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in
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 python-wheel (0.29.0-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-wheel (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python-pip
python-wheel
E: Sub-process /usr/bin/dpkg returned an error code (1)
What can I do to resolve this? Thanks in advance!