这是我的 /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
Run Code Online (Sandbox Code Playgroud)
当我做:
# apt-get update
Run Code Online (Sandbox Code Playgroud)
我得到了一些很好的台词,然后:
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.
Run Code Online (Sandbox Code Playgroud)
Seb*_*biF 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
Run Code Online (Sandbox Code Playgroud)
Chr*_*ell 14
仔细一看,这似乎是 Debian 镜像的问题。根据镜像信息,lenny 应该可用,尽管您可能需要将 'lenny' 的每个实例更改为 .oldstable /etc/apt/sources.list
。然而,拉起3个镜像都显示'lenny'和'oldstable'不再被列出。
更新:我多看了几眼,发现USC Mirror看起来仍然列出了“lenny”。注释掉您现有的条目sources.list
并复制它们:
deb http://ftp.us.debian.org/debian/
Run Code Online (Sandbox Code Playgroud)
替换为:
deb ftp://mirrors.usc.edu/pub/linux/distributions/debian/
Run Code Online (Sandbox Code Playgroud)
看看这是否有效。
运气好的话,这是一个暂时的问题,几天后会自行解决。
更新 2:看起来这不是临时的,http://archive.debian.org是为 Lenny 拉包的最佳位置。此外,看起来对 Lenny 的安全支持已于 2012 年 2 月 12 日结束,尽管他们确实在 2012 年 3 月 10 日发布了 5.0.10,一个点更新。
计划升级可能是值得的,尤其是对于任何面向 Internet/公众的服务器。
归档时间: |
|
查看次数: |
55042 次 |
最近记录: |