apt-get update在debian lenny上得到404

这是我的/etc/apt/sources.list

 ###### Debian Main Repos deb http://ftp.us.debian.org/debian/ lenny main contrib non-free ###### Debian Update Repos deb http://security.debian.org/ lenny/updates main contrib non-free deb http://ftp.us.debian.org/debian/ lenny-proposed-updates main contrib non-free 

当我这样做时:

 # apt-get update 

我得到一些好的线,然后:

 Err http://ftp.us.debian.org lenny/contrib Packages 404 Not Found [IP: 35.9.37.225 80] Err http://ftp.us.debian.org lenny/non-free Packages 404 Not Found [IP: 35.9.37.225 80] Err http://ftp.us.debian.org lenny-proposed-updates/main Packages 404 Not Found [IP: 35.9.37.225 80] Err http://ftp.us.debian.org lenny-proposed-updates/contrib Packages 404 Not Found [IP: 35.9.37.225 80] Err http://ftp.us.debian.org lenny-proposed-updates/non-free Packages 404 Not Found [IP: 35.9.37.225 80] Err http://ftp.us.debian.org lenny/main Packages 404 Not Found [IP: 35.9.37.225 80] W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/binary-i386/Packages 404 Not Found [IP: 149.20.20.6 80] W: Failed to fetch http://security.debian.org/dists/lenny/updates/contrib/binary-i386/Packages 404 Not Found [IP: 149.20.20.6 80] W: Failed to fetch http://security.debian.org/dists/lenny/updates/non-free/binary-i386/Packages 404 Not Found [IP: 149.20.20.6 80] W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/contrib/binary-i386/Packages 404 Not Found [IP: 35.9.37.225 80] W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/non-free/binary-i386/Packages 404 Not Found [IP: 35.9.37.225 80] W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny-proposed-updates/main/binary-i386/Packages 404 Not Found [IP: 35.9.37.225 80] W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny-proposed-updates/contrib/binary-i386/Packages 404 Not Found [IP: 35.9.37.225 80] W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny-proposed-updates/non-free/binary-i386/Packages 404 Not Found [IP: 35.9.37.225 80] W: Failed to fetch http://ftp.us.debian.org/debian/dists/lenny/main/binary-i386/Packages 404 Not Found [IP: 35.9.37.225 80] E: Some index files failed to download, they have been ignored, or old ones used instead. 

从一个小小的捅过来看,Debian镜像似乎是个问题。 根据镜像信息,lenny应该是可用的,尽pipe您可能需要在/etc/apt/sources.list中将“lenny”的每个实例更改为“oldstable”。 然而,拉起3面镜子,都显示“lenny”和“oldstable”不再列出。

更新:我做了一些更多的探索,发现USC Mirror看起来仍然有“lenny”列出。 注释掉你在sources.list的现有条目并复制它们:

 deb http://ftp.us.debian.org/debian/ 

replace为:

 deb ftp://mirrors.usc.edu/pub/linux/distributions/debian/ 

看看这是否有窍门。

幸运的是,这只是一个暂时的问题,几天后就会自行解决。

更新2:看起来这不是临时的, http://archive.debian.org是为Lenny提供包的最好的地方。 此外,Lenny在2012年2月12日的安全支持似乎已经结束,尽pipe他们在2012年3月10日发布了5.0.10版本的更新。

这可能是值得计划升级,尤其是对任何互联网/面向公众的服务器。

修改你的/etc/apt/sources.list如下:

 deb http://archive.debian.org/debian/ lenny main contrib non-free deb-src http://archive.debian.org/debian/ lenny main contrib non-free deb http://archive.debian.org/debian-security lenny/updates main contrib non-free deb-src http://archive.debian.org/debian-security lenny/updates main contrib non-free deb http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free deb-src http://archive.debian.org/debian-volatile lenny/volatile main contrib non-free 

Lenny软件包已从所有镜像中移除到:archive.debian.org因此,请将您的sources.list更新为:deb http://archive.debian.org lenny main contrib

好的 – 那不是为我工作的,但是

  deb http://archive.debian.org/debian lenny main contrib 

没有