http://blog.csdn.net/pipisorry/article/details/39536433
Destination Host Unreachable / No route to host
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__
Destination Host Unreachable / No route to host
pika:~$ping 192.168.31.191
PING 192.168.31.191 (192.168.31.191) 56(84) bytes of data.
From 192.168.31.98 icmp_seq=1 Destination Host Unreachable
说明不在同一局域网内,虽然ip前3位相同!!!
换个wifi试试就可以了。
或者No route to host
解决方案是:关闭防火墙
service iptables stop
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)
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 mv /var/lib/dpkg/info /var/lib/dpkg/info_old //现将info文件夹更名
$ 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文件夹重新改回名字
[
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://www.jb51.cc/article/p-gqeadypz-bbo.htmlref:
原文链接:https://www.f2er.com/ubuntu/351708.html