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的 安装与激活教程 以及错误解决方法