在终端 apt-get autoremove 时报错如下
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 400 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up compizconfig-settings-manager (1:0.9.12.2+16.04.20160823-0ubuntu1) ...
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 compizconfig-settings-manager (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
compizconfig-settings-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
网上说是因为Python2升级到Python3以后,ConfigParse就变成了configparse,把名字改回configparse就可以了,具体该怎么改呢?
高人指点,多谢了!