ubuntu更新python3之后,系统更新软件报错解决方法。

来源:互联网 发布:网络传销模式 编辑:程序博客网 时间:2024/05/29 08:51
dpkg: error processing package apport (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configurationdpkg: dependency problems prevent configuration of apport-gtk: apport-gtk depends on apport (>= 0.41); however:  Package apport is not configured yet.dpkg: error processing package apport-gtk (--configure): dependency problems - leaving unconfiguredErrors were encountered while processing: apport apport-gtk

系统强制使用了新版本的python3.0之后,系统更新软件安装软件报错。解决方式如下。



sudo update-alternatives --config python 

-> change to python2.7 instead of 3.5

sudo apt install apport --reinstall

0 0