linux deepin 系统升级失败解决办法

deepin更新到2014.1了,去深度商店升级了一下,失败了。没办法,去终端升级。
终端输入:sudo apt-get update && sudo apt-get dist-upgrade -y
运行一段时间后报错。



W: GPG 错误:http://www.scootersoftware.com stable Release: 由于没有公钥,无法验证下列签名: NO_PUBKEY 331D6DDE7F8840CE

W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-amd64/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-amd64/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-amd64/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-amd64/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/main/binary-i386/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/restricted/binary-i386/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/universe/binary-i386/Packages404Not Found [IP: 91.189.92.201 80]


W: 无法下载 http://archive.ubuntu.com/ubuntu/dists/raring/multiverse/binary-i386/Packages404Not Found [IP: 91.189.92.201 80]


E: Some index files failed to download. They have been ignored, or old ones used instead.


看了下相关代码,果断ppa源出问题了,但是有想不起是什么源。头疼啊。仔细分析了出错信息
一共报了两个错误,一个是密匙没注册,那就注册下:
终端输入:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 331D6DDE7F8840CE
key密匙从出错信息中提取
再次尝试下了升级,这回没第一个错误,但是后面的源还是有问题,于是:
终端输入 cd /etc/apt
【linux deepin 系统升级失败解决办法】用vim查看了sources.list发现没有raring的源。于是去 /etc/apt/sources.list.d里面找 ls了一下,发现ia32-libs-raring.list躺在那里。这个时候,删掉或者用vim注释掉里面的源就Ok了。
注释掉后,再执行了一次,OK,开始下载软件包,并开始升级了。
mint 和ubuntu 系统升级失败多半是自己添加的ppa造成的,可以自行删除。方法同上

    推荐阅读