apt-get update 在 debian lenny 上出现 404

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.

答案1

经过一番搜索,我发现问题出在 Debian 镜像上。根据镜像信息,lenny 应该可用,尽管您可能需要将 中的每个“lenny”更改为“oldstable” /etc/apt/sources.list。但是,调出 3 个镜像都显示“lenny”和“oldstable”不再列出。

更新:我又做了一些调查,发现南加州大学镜子看起来仍然列出了“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/公众的服务器。

答案2

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

答案3

Lenny 软件包已从所有镜像中删除:archive.debian.org 因此请更新您的 sources.list 为:debhttp://archive.debian.orglenny 主要贡献

好吧 - 这对我来说不起作用,但是

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

做过

相关内容