apt-get更新在Debian Lenny上获取404


23

这是我的 /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.

Answers:


14

经过一番摸索,Debian镜像似乎是一个问题。根据镜像信息,lenny应该可用,尽管您可能需要在中用'oldstable'更改每个'lenny'实例/etc/apt/sources.list。但是,拉起3面镜子都表明'lenny'和'oldstable'不再列出。

更新:我做了一些检查,发现“ USC镜像”看起来仍然列出了“ lenny”。注释掉您现有的条目,sources.list并将它们重复:

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

替换为:

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

看看是否能解决问题。

运气好的话,这是一个暂时的问题,几天后就会解决。

更新2:看来这不是临时的,http://archive.debian.org是拉尼(Lenny)拉包的最佳场所。此外,Lenny的安全性支持似乎已于2012年2月12日终止,尽管他们确实在2012年3月10日发布了5.0.10(重要更新)。

计划升级是值得的,尤其是对于任何面向Internet /公共场所的服务器。


谢谢!那“ security.debian.org”呢?
JoelFan 2012年


接得好。如果有人在这里碰到它,我将用一些详细信息更新我的答案。
Christopher Cashell

你为什么说这是暂时的?好像是停产。
JoelFan 2012年

1
我不会将其称为“镜像问题”,因为它们已经停止发布不再受支持的发行版。
Wyzard

29

修改/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

2

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

好的-这对我不起作用,但是

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

做了

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.