zoukankan      html  css  js  c++  java
  • 安装Python遇到问题——有 6 个软件包没有被完全安装或卸载。

    Desktop sudo apt-get install python-matplotlib
    正在读取软件包列表... 完成
    正在分析软件包的依赖关系树       
    正在读取状态信息... 完成       
    python-matplotlib 已经是最新的版本。
    升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 19 个软件包未被升级。
    有 6 个软件包没有被完全安装或卸载。
    解压缩后会消耗 0 B 的额外空间。
    您希望继续执行吗? [Y/n] Y
    正在设置 python-dateutil (1.5+dfsg-1ubuntu1) ...
    Traceback (most recent call last):
      File "/usr/bin/pycompile", line 35, 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: 处理软件包 python-dateutil (--configure)时出错:
     子进程 已安装 post-installation 脚本 返回了错误号 1
    正在设置 python-decorator (3.4.0-2build1) ...
    Traceback (most recent call last):
      File "/usr/bin/pycompile", line 35, 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: 处理软件包 python-decorator (--configure)时出错:
     子进程 已安装 post-installation 脚本 返回了错误号 1
    正在设置 python-pyparsing (2.0.1+dfsg1-1build1) ...
    Traceback (most recent call last):
      File "/usr/bin/pycompile", line 35, 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: 处理软件包 python-pyparsing (--configure)时出错:
     子进程 已安装 post-installation 脚本 返回了错误号 1
    正在设置 python-support (1.0.15) ...
      File "/usr/sbin/update-python-modules", line 52
        print x
              ^
    SyntaxError: Missing parentheses in call to 'print'
    dpkg: 处理软件包 python-support (--configure)时出错:
     子进程 已安装 post-installation 脚本 返回了错误号 1
    由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                        dpkg: 依赖关系问题使得 python-matplotlib 的配置工作不能继续:
     python-matplotlib 依赖于 python-dateutil;然而:
      软件包 python-dateutil 尚未配置。
     python-matplotlib 依赖于 python-pyparsing;然而:
      软件包 python-pyparsing 尚未配置。
     python-matplotlib 依赖于 python-support (>= 0.90.0);然而:
      软件包 python-support 尚未配置。
    
    dpkg: 处理软件包 python-matplotlib (--configure)时出错:
     依赖关系问题 - 仍未被配置
    由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                        dpkg: 依赖关系问题使得 python-scipy 的配置工作不能继续:
     python-scipy 依赖于 python-decorator;然而:
      软件包 python-decorator 尚未配置。
    
    dpkg: 处理软件包 python-scipy (--configure)时出错:
     依赖关系问题 - 仍未被配置
    由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                        在处理时有错误发生:
     python-dateutil
     python-decorator
     python-pyparsing
     python-support
     python-matplotlib
     python-scipy
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    原因是,我们在将python2.7升级到python3.3时,只是将/usr/local/bin目录下修改了(使用ln -s 或者其他),然而我们的配置目录并没有修改..

    解决方法如下

    sudo apt-get clean
    sudo apt-get update
    sudo apt-get install --reinstall python-minimal python-lockfile
  • 相关阅读:
    2.java基础语法(上)
    1.java概述
    Qt layout透明的问题
    Duilib 关于ChildLayout崩溃的问题
    关于注册表使用的几个问题
    win32接口获取ping值
    Web开发中遇到的问题
    DuiLib 窗口透明方法
    通过进程名杀死进程的方法--WIN32
    关于在Qt的MainWindow窗口中添加Layout的问题
  • 原文地址:https://www.cnblogs.com/cc-xiao5/p/11265836.html
Copyright © 2011-2022 走看看