今天,我尝试通过 安装软件包apt-get
,但遇到了很多 404 错误。sources.list
上周五我的 还完全正常运行(据我所知没有任何变化),现在我得到:
W: Failed to fetch http://ftp.fi.debian.org/debian/dists/lenny/main/binary-amd64/Packages 404 Not Found [IP: 130.230.54.99 80]
W: Failed to fetch http://ftp.fi.debian.org/debian/dists/lenny/main/source/Sources 404 Not Found [IP: 130.230.54.99 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/binary-amd64/Packages 404 Not Found [IP: 212.211.132.32 80]
W: Failed to fetch http://security.debian.org/dists/lenny/updates/main/source/Sources 404 Not Found [IP: 212.211.132.32 80]
例如当我浏览时http://security.debian.org/dists/好像没有 lenny 目录。问题是什么?
答案1
自从
- Lenny 已 EOLed
- lenny 安全更新已于 2 月 6 日终止
- lenny backports 已于 3 月 25 日停止
- 随着其继任者“squeeze”的发布,lenny volatile 已停产
存储库已移至 archive.debian.org - 您可能希望更新您的存储库以匹配此内容:
deb http://archive.debian.org/debian/ lenny main non-free contrib
deb-src http://archive.debian.org/debian/ lenny main non-free contrib
# Volatile:
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
# Backports:
deb http://archive.debian.org/debian-backports lenny-backports main contrib non-free
# Previously announced security updates:
deb http://archive.debian.org/debian-security lenny/updates main
答案2
我想你想
gpg --keyserver subkeys.pgp.net --recv-keys DFD993306D849617
以避免“NO_PUBKEY”错误。
答案3
其他答案对我来说不起作用-这个有效:
mv /etc/apt/sources.list /etc/apt/sources.list.PREARCHIVE
从http://forums.debian.net/viewtopic.php?f=10&t=95658/etc/apt/sources.list
,用
# SOURCE: http://superuser.com/questions/404806/did-debian-lenny-repositories-vanish
deb http://archive.debian.org/debian/ lenny main non-free contrib
deb http://archive.debian.org/debian-backports lenny-backports main
deb http://archive.debian.org/debian-backports lenny-backports-sloppy main
然后
gpg --keyserver subkeys.pgp.net --recv-keys DFD993306D849617
apt-get update
答案4
对于像我一样正在寻找一个地方下载 Debian 5 Lenny 的单独软件包的人来说,目前最好的选择是存档.debian.net