ubuntu常見錯誤及解決
阿新 • • 發佈:2019-01-29
Sub-process /usr/bin/dpkg returned an error code (1)
sorry, ubuntu14.04 has experienced an internal error ubuntu-sso-login crashed with import error in __main__
Sub-process /usr/bin/dpkg returned an error code (1)
安裝java如果使用oracle-java7-installer就會一起出錯,dpkg錯誤:ImportError: No module named 'ConfigParser'dpkg: error processing package python-samba (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of samba-common-bin:
samba-common-bin depends on python-samba; however:
Package python-samba is not configured yet.
dpkg: error processing package samba-common-bin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
E: Sub-process /usr/bin/dpkg returned an error code (1)
解決方案:
$ sudo mkdir /var/lib/dpkg/info //再新建一個新的info資料夾
$ sudo apt-get update
apt-get -f install
$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old//執行完上一步操作後會在新的info資料夾下生成一些檔案,現將這些檔案全部移到info_old資料夾下
$ sudo rm -rf /var/lib/dpkg/info //把自己新建的info資料夾刪掉
$ sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info //把以前的info資料夾重新改回名字
[
皮皮blog
ubuntu internal error
sorry, ubuntu14.04 has experienced an internal error ubuntu-sso-login crashed with import error in __main__
也可能是之前lz將系統預設的python改成了python3導致的,改回來就可以了from:http://blog.csdn.net/pipisorry/article/details/39536433ref: