ubuntu更新python3之後,系統更新軟件報錯解決方法。

dpkg: error processing package apport (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: 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 unconfigured
Errors 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章