Ubuntu dpkg:处理 xxx (--configure)时出错解决办法
来源:互联网 发布:php问卷调查系统源码 编辑:程序博客网 时间:2024/05/17 22:41
当我执行apt-get install xxx 命令时报下面错误:
Traceback (most recent call last):
File "/usr/bin/pycompile", line 36, 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 mercurial-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mercurial:
mercurial depends on mercurial-common (= 2.0.2-1ubuntu1); however:
Package mercurial-common is not configured yet.
dpkg: error processing mercurial (--configure):
dependency problems - leaving unconfigured
Setting up libnettle4 (2.4-1) ...
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up libarchive12 (3.0.3-6ubuntu1) ...
Setting up libxmlrpc-core-c3 (1.16.33-3.1ubuntu5.1) ...
Setting up emacsen-common (1.4.22ubuntu1) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up cmake-data (2.8.7-0ubuntu4) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up cmake (2.8.7-0ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
mercurial-common
mercurial
E: Sub-process /usr/bin/dpkg returned an error code (1)
参考网上的解决方案:
1.$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old //现将info文件夹更名
2.$ sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
3.$ sudo apt-get update, apt-get -f install //不用解释了吧
4.$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old //执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下
5.$ sudo rm -rf /var/lib/dpkg/info //把自己新建的info文件夹删掉
6.$ sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info //把以前的info文件夹重新改回名字
- Ubuntu dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法
- dpkg:处理 xxx (--configure)时出错解决办法(转载)
- dpkg:处理 xxx (--configure)时出错解决办法(转载)
- dpkg:处理 xxx (--configure)时出错解决办法(转载)
- dpkg:处理 xxx (--configure)时出错解决办法(设置需要备份)
- dpkg:处理 xxx (--configure)时出错解决办法(转载)
- dpkg:处理 xxx (--configure)时出错解决办法(转载)
- dpkg: 处理软件包 xxx (--configure)时出错 解决办法
- Ubuntu关于dpkg:处理 xxx (–configure)时出错的解决办法
- 关于dpkg:处理 xxx (--configure)时出错
- dpkg:处理软件包 xxx (--configure)时出错
- dpkg:处理软件包 xxx (--configure)时出错
- dd命令的高级应用
- WCF RIA SERVICE如何返回自定义类型(非Entity)
- MTK编译笔记
- apple 99¥
- 使用WCF Ria Service和Log4net在服务器端记录异常日志/ExceptionLog
- Ubuntu dpkg:处理 xxx (--configure)时出错解决办法
- yii 常用一些调用 (增加中)
- 二叉树先序遍历(非递归)
- HT1380/1381(DS1302)驱动
- 电脑ctrl和ALT经常键自动按住--答案是QQ2012的Bug
- 指针第一次总结
- linux系统时间修改及同步
- IOS5快速打开一些系统应用的代码
- HTTP缓存相关的概念 http请求头信息 http响应头信息