python版本原因导致不能安装和卸载软件,python卸载,下面是bug的输出:


下面是bug的输出:

正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 38 个软件包未被升级。
有 22 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 python-pymysql (0.7.2-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-pymysql (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 python-antlr (2.7.7+dfsg-6ubuntu1) ...
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-antlr (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 python-cvxopt (1.1.4-1.4) ...
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-cvxopt (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
正在设置 python-decorator (4.0.6-1) ...
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
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-jdcal (1.0-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-jdcal (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-joblib (0.9.4-1) ...
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-joblib (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-mpmath (0.19-3) ...
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-mpmath (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-numexpr (2.4.3-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-numexpr (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
由于已经达到 MaxReports 限制,没有写入 apport 报告。
dpkg: 依赖关系问题使得 python-openpyxl 的配置工作不能继续:
python-openpyxl 依赖于 python-jdcal;然而:
软件包 python-jdcal 尚未配置。

dpkg: 处理软件包 python-openpyxl (--configure)时出错:
依赖关系问题 - 仍未被配置
正在设置 python-pandas (0.17.1-3ubuntu2) ...
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-pandas (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-patsy (0.4.1-2) ...
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-patsy (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-ptyprocess (0.5-1) ...
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-ptyprocess (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-py (1.4.31-1) ...
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-py (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-pyglet (1.1.4.dfsg-3) ...
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-pyglet (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
dpkg: 依赖关系问题使得 python-pytest 的配置工作不能继续:
python-pytest 依赖于 python-py (>= 1.4.29);然而:
软件包 python-py 尚未配置。

dpkg: 处理软件包 python-pytest (--configure)时出错:
依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 python-sympy 的配置工作不能继续:
python-sympy 依赖于 python-mpmath;然而:
软件包 python-mpmath 尚未配置。

dpkg: 处理软件包 python-sympy (--configure)时出错:
依赖关系问题 - 仍未被配置
由于已经达到 MaxReports 限制,没有写入 apport 报告。
由于已经达到 MaxReports 限制,没有写入 apport 报告。
dpkg: 依赖关系问题使得 python-tables 的配置工作不能继续:
python-tables 依赖于 python-numexpr;然而:
软件包 python-numexpr 尚未配置。

dpkg: 处理软件包 python-tables (--configure)时出错:
依赖关系问题 - 仍未被配置
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-tornado (4.2.1-1ubuntu3) ...
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-tornado (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-xlrd (0.9.4-1) ...
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-xlrd (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
dpkg: 依赖关系问题使得 python-xlwt 的配置工作不能继续:
python-xlwt 依赖于 python-antlr;然而:
软件包 python-antlr 尚未配置。

dpkg: 处理软件包 python-xlwt (--configure)时出错:
依赖关系问题 - 仍未被配置
正在设置 python-zmq (15.2.0-0ubuntu4) ...
由于已经达到 MaxReports 限制,没有写入 apport 报告。
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-zmq (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
正在设置 python-simplegeneric (0.8.1-1) ...
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-simplegeneric (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
由于已经达到 MaxReports 限制,没有写入 apport 报告。
在处理时有错误发生:
python-pymysql
python-antlr
python-cvxopt
python-decorator
python-jdcal
python-joblib
python-mpmath
python-numexpr
python-openpyxl
python-pandas
python-patsy
python-ptyprocess
python-py
python-pyglet
python-pytest
python-sympy
python-tables
python-tornado
python-xlrd
python-xlwt
python-zmq
python-simplegeneric
E: Sub-process /usr/bin/dpkg returned an error code (1)

我想删除上面的python-*,但是还是会提示上面的错误:

sudo apt-get autoclean

sudo apt-get autoremove

我就想会不会是python版本的原因导致的,所以我又切换到python2.7再执行上面删除的命令,结果就报错

python版本原因导致不能安装和卸载软件

评论关闭