Demian_Neit 2017-11-27 07:28 采纳率: 0%
浏览 1773

Ubuntu apt-get autoremove 报错

在终端 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就可以了,具体该怎么改呢?
高人指点,多谢了!

  • 写回答

1条回答 默认 最新

  • COCO_AS 2017-11-27 12:44
    关注

    File "**/usr/share/python/debpython/version.py**",** line 24**, in

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?