Error processing package python-appindicator/cycler/dateutil/pyparsing/tz/matplotlib (--configure)

from http://www.cnblogs.com/gongxijun/p/5823595.html

~$ sudo apt-get install python-pip

正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
python-pip 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 233 个软件包未被升级。
有 8 个软件包没有被完全安装或卸载。
解压缩后会消耗掉 0 B 的额外空间。
您希望继续执行吗? [Y/n] Y
正在设置 mercurial-common (2.8.2-1ubuntu1.3) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 38, in <module>
    from debpython.namespace import add_namespace_files
ImportError: No module named 'debpython.namespace'
dpkg: 处理软件包 mercurial-common (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 1
dpkg: 依赖关系问题使得 mercurial 的配置工作不能继续:
 mercurial 依赖于 mercurial-common (= 2.8.2-1ubuntu1.3);然而:
  软件包 mercurial-common 尚未配置。

dpkg: 处理软件包 mercurial (--configure)时出错:
 依赖关系问题 - 仍未被配置
正在设置 python-colorama (0.2.5-0.1ubuntu2) ...
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    Traceback (most recent call last):
  File "/usr/bin/pycompile", line 38, in <module>
    from debpython.namespace import add_namespace_files
ImportError: No module named 'debpython.namespace'
dpkg: 处理软件包 python-colorama (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 1
正在设置 python-distlib (0.1.8-1ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 38, in <module>
    from debpython.namespace import add_namespace_files
ImportError: No module named 'debpython.namespace'
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    dpkg: 处理软件包 python-distlib (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 1
正在设置 python-html5lib (0.999-3~ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 38, in <module>
    from debpython.namespace import add_namespace_files
ImportError: No module named 'debpython.namespace'
dpkg: 处理软件包 python-html5lib (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    正在设置 python-setuptools (3.3-1ubuntu2) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 38, in <module>
    from debpython.namespace import add_namespace_files
ImportError: No module named 'debpython.namespace'
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    由于已经达到 MaxReports 限制,没有写入 apport 报告。
                        dpkg: 处理软件包 python-setuptools (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 1
dpkg: 依赖关系问题使得 python-pip 的配置工作不能继续:
 python-pip 依赖于 python-colorama;然而:
  软件包 python-colorama 尚未配置。
 python-pip 依赖于 python-distlib;然而:
  软件包 python-distlib 尚未配置。
 python-pip 依赖于 python-html5lib;然而:
  软件包 python-html5lib 尚未配置。
 python-pip 依赖于 python-setuptools (>= 0.6c1);然而:
  软件包 python-setuptools 尚未配置。

dpkg: 处理软件包 python-pip (--configure)时出错:
 依赖关系问题 - 仍未被配置
正在设置 python-wheel (0.24.0-1~ubuntu1) ...
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 38, in <module>
    from debpython.namespace import add_namespace_files
ImportError: No module named 'debpython.namespace'
dpkg: 处理软件包 python-wheel (--configure)时出错:
 子进程 已安装 post-installation 脚本 返回了错误号 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。

                                                    E: Sub-process /usr/bin/dpkg returned an error code (1)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ANSWER

sudo dpkg -C 
:~$ sudo dpkg -C
下列软件包已被解开,但是尚未配置。
要令它们运行正常,您必须借助 dpkg --configure
或者 dselect 菜单中的配置项:
 python-pip           alternative Python package installer
 mercurial            easy-to-use, scalable distributed version control system

下列软件包只是被不全面地配置了,这也许要归咎于
第一次配置它们时出的问题。您最好能重新配置它们。
借助 dpkg --configure <软件包名> 或者用 dselect 
菜单中的配置项重新配置软件包:
 python-distlib       low-level components of python distutils2/packaging
 mercurial-common     easy-to-use, scalable distributed version control system 
 python-colorama      Cross-platform colored terminal text in Python - Python 2
 python-html5lib      HTML parser/tokenizer based on the WHATWG HTML5 specifica
 python-setuptools    Python Distutils Enhancements
 python-wheel         built-package format for Python

 
 
sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall python-minimal python-lockfile

 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当出现错误信息"error while loading shared libraries: libayatana-appindicator3.so.1: cannot open shared object file: No such file or directory"时,表示系统无法找到所需的共享库文件。这可能是由于缺少该库文件或者库文件路径配置错误导致的。 解决这个问题的方法是通过以下步骤来安装或修复缺失的共享库文件: 1. 首先,确认你的系统是否已经安装了该库文件。你可以使用以下命令来检查: ```shell dpkg -S libayatana-appindicator3.so.1 ``` 如果该库文件已经安装,你将会看到类似于以下输出: ``` libayatana-appindicator3-1: /usr/lib/x86_64-linux-gnu/libayatana-appindicator3.so.1 ``` 如果没有输出,说明该库文件尚未安装。 2. 如果该库文件尚未安装,你可以尝试通过以下命令来安装它: ```shell sudo apt-get install libayatana-appindicator3-1 ``` 这将会安装该库文件及其相关的依赖项。 3. 如果安装过程中出现错误,可能是由于软件源配置不正确导致的。你可以尝试更新软件源并再次尝试安装: ```shell sudo apt-get update sudo apt-get install libayatana-appindicator3-1 ``` 4. 如果以上方法仍然无法解决问题,你可以尝试手动下载并安装该库文件。你可以在官方网站或者其他可信的资源网站上找到该库文件的下载链接。下载后,你可以使用以下命令进行安装: ```shell sudo cp libayatana-appindicator3.so.1 /usr/lib/x86_64-linux-gnu/ sudo ldconfig ``` 请注意,以上方法可能因为系统版本和配置的不同而有所差异。如果你遇到了其他问题或者需要更详细的指导,请提供更多的信息,以便我能够更好地帮助你。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值