Ubuntu apt get错误:子进程/usr/bin/dpkg在执行升级时返回错误代码
我在ubuntu 14.04中执行升级或安装任何软件时出错 错误:Ubuntu apt get错误:子进程/usr/bin/dpkg在执行升级时返回错误代码,ubuntu,dpkg,Ubuntu,Dpkg,我在ubuntu 14.04中执行升级或安装任何软件时出错 错误: apt-get error: Sub-process /usr/bin/dpkg returned an error codeReading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages
apt-get error: Sub-process /usr/bin/dpkg returned an error codeReading
package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
apport python-libxml2
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
36 not fully installed or removed.
Need to get 0 B/320 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 242426 files and directories currently installed.)
Preparing to unpack .../apport_2.14.1-0ubuntu3.19_all.deb ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
^
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/apport_2.14.1-
0ubuntu3.19_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 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: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to unpack .../python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
File "/usr/bin/pyclean", line 63
except (IOError, OSError), e:
SyntaxError: invalid syntax
dpkg: error processing archive /var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 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: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/apport_2.14.1-0ubuntu3.19_all.deb
/var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt get错误:子进程/usr/bin/dpkg返回了一个错误代码读取
包裹清单。。。多恩
构建依赖树
正在读取状态信息。。。多恩
正在计算升级。。。多恩
以下软件包将升级:
apport python-libxml2
2个已升级,0个新安装,0个要删除,0个未升级。
36未完全安装或拆除。
需要获取0 B/320 kB的存档。
执行此操作后,将使用0 B的额外磁盘空间。
你想继续吗?[Y/n]Y
(正在读取数据库…当前安装的2426个文件和目录。)
准备拆包…/apport_2.14.1-0ubuntu3.19_all.deb。。。
文件“/usr/bin/pyclean”,第63行
除了(IOError,OSError),e:
^
SyntaxError:无效语法
dpkg:警告:子进程旧的预删除脚本返回错误退出状态1
dpkg:正在尝试从新包中执行脚本。。。
文件“/usr/bin/pyclean”,第63行
除了(IOError,OSError),e:
^
SyntaxError:无效语法
dpkg:处理归档文件/var/cache/apt/archives/apport_2.14.1时出错-
0ubuntu3.19_all.deb(--打开包装):
子流程新建预删除脚本返回错误退出状态1
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ImportError:没有名为“ConfigParser”的模块
dpkg:清理时出错:
安装的子进程安装后脚本返回错误退出状态1
正在准备解包…/python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb
文件“/usr/bin/pyclean”,第63行
除了(IOError,OSError),e:
SyntaxError:无效语法
dpkg:警告:子进程旧的预删除脚本返回错误退出状态1
dpkg:正在尝试从新包中执行脚本。。。
文件“/usr/bin/pyclean”,第63行
除了(IOError,OSError),e:
SyntaxError:无效语法
dpkg:处理归档文件/var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb(--unpack)时出错:
子流程新建预删除脚本返回错误退出状态1
回溯(最近一次呼叫最后一次):
文件“/usr/bin/pycompile”,第35行,在
从支持的debpython.version导入、debsorted、vrepr、\
文件“/usr/share/python/debpython/version.py”,第24行,在
从ConfigParser导入SafeConfigParser
ImportError:没有名为“ConfigParser”的模块
dpkg:清理时出错:
安装的子进程安装后脚本返回错误退出状态1
处理时遇到错误:
/var/cache/apt/archives/apport_2.14.1-0ubuntu3.19_all.deb
/var/cache/apt/archives/python-libxml2_2.9.1+dfsg1-3ubuntu4.5_amd64.deb
E:子流程/usr/bin/dpkg返回错误代码(1)
有人能帮我解决这个问题吗
提前谢谢
^我已经修复了错误
这个错误发生在我试图安装scikit learn时,它只适用于python3。所以,我安装了python3,并将其设为默认值
一般来说,ubuntu与python2有一些依赖关系,这个dpkg错误是将python3设为默认值的结果。因此,我通过创建链接纠正了这个问题。错误消息看起来您有一个较旧的Python版本,除了语法外,它不支持此
。如果你的Ubuntu真的是最新的14.04版本,那就不可能了。但无论如何,这不是一个编程问题,您没有提供足够的详细信息来正确诊断问题。这是