ubuntu 安装错误解决

Posted 寻行者(Grand Wang)

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 安装错误解决相关的知识,希望对你有一定的参考价值。

1. ubuntu 安装错误解决:

Preparing to unpack .../apport_2.20.9-0ubuntu7.15_all.deb ...
/var/lib/dpkg/info/apport.prerm: 22: /var/lib/dpkg/info/apport.prerm: pyclean: not found
dpkg: warning: old apport package pre-removal script subprocess returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 22: /var/lib/dpkg/tmp.ci/prerm: pyclean: not found
dpkg: error processing archive /var/cache/apt/archives/apport_2.20.9-0ubuntu7.15_all.deb (--unpack):
new apport package pre-removal script subprocess returned error exit status 127
/var/lib/dpkg/info/apport.postinst: 13: /var/lib/dpkg/info/apport.postinst: pycompile: not found
dpkg: error while cleaning up:
installed apport package post-installation script subprocess returned error exit status 127

解决办法:

sudo apt-get update

sudo apt-get install --reinstall python

sudo apt-get -f install

sudo apt-get dist-upgrade

以上是关于ubuntu 安装错误解决的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu 环境下pycharm的 安装与激活教程 以及错误解决方法

Ubuntu安装WDCP遇到的无法便于错误解决方法

Ubuntu 16.04安装SubVersion提示错误解决方案

Ubuntu重装mysql错误解决

ubuntu系统下使用终端安装guake出现错误的解决办法

lxml安装错误ubuntu 14.04(内部编译器错误)