首页 > Ubuntu/Debian操作系统 > apt-get 更新提示 or:red;background:yellow”>E: -or:red;background:yellow”>Some or:red;background:yellow”>index or:red;background:yellow”>files or:red;background:yellow”>failed or:red;background:yellow”>to download 错误

apt-get 更新提示 or:red;background:yellow”>E: -or:red;background:yellow”>Some or:red;background:yellow”>index or:red;background:yellow”>files or:red;background:yellow”>failed or:red;background:yellow”>to download 错误

2015年9月26日

apt-get 更新提示 or:red;background:yellow”>E: -or:red;background:yellow”>Some or:red;background:yellow”>index or:red;background:yellow”>files or:red;background:yellow”>failed or:red;background:yellow”>to download 错误
http://www.kevinick.com/blog/442.html
最近服务器使用了12.10的Ubuntu系统。使用电子科技大学Ubuntu更新源的时候,提示错误。

W: 无法下载 http://ubuntu.dormforce.net/ubuntu/dists/quantal/Release Unable or:red;background:yellow”>to find expected entry ‘-updates/source/Sources’ in Release file (Wrong sources.list entry or malformed file)

or:red;background:yellow”>E: or:red;background:yellow”>Some or:red;background:yellow”>index or:red;background:yellow”>files or:red;background:yellow”>failed or:red;background:yellow”>to or:red;background:yellow”>download. or:red;background:yellow”>They or:red;background:yellow”>have or:red;background:yellow”>been or:red;background:yellow”>ignored, or old ones used instead.

错误描述是说“有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。”

解决办法:

注释掉deb-src相应的行就可以了。
sudo vi /etc/apt/sources.list
#deb-src http://ubuntu.dormforce.net/ubuntu/ quantal main restricted universe multiverse
#deb-src http://ubuntu.dormforce.net/ubuntu/ quantal-backports main restricted universe multiverse
#deb-src http://ubuntu.dormforce.net/ubuntu/ quantal-proposed main restricted universe multiverse
#deb-src http://ubuntu.dormforce.net/ubuntu/ quantal-security main restricted universe multiverse
#deb-src http://ubuntu.dormforce.net/ubuntu/ quantal -updates main restricted universe multiverse

本文的评论功能被关闭了.