Sai*_*han 8 linux debian aptitude
当我在 VPS 上执行“apt-get update”时,我收到很多错误消息:
Err http://ftp.debian.org lenny/volatile/main Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/volatile/contrib Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/volatile/non-free Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/updates/main Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/updates/contrib Packages
404 Not Found [IP: 130.89.149.226 80]
Err http://ftp.debian.org lenny/updates/non-free Packages
404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/main/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/contrib/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-volatile/dists/lenny/volatile/non-free/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-security/dists/lenny/updates/main/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-security/dists/lenny/updates/contrib/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
W: Failed to fetch http://ftp.debian.org/debian-security/dists/lenny/updates/non-free/binary-i386/Packages 404 Not Found [IP: 130.89.149.226 80]
E: Some index files failed to download, they have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮助我更新此列表以使所有网址都有效。
很抱歉这个问题的标题很奇怪,但我不知道正确的术语。
小智 5
您要查找的文件是/etc/apt/sources.list.
您的主机可能正在使用较旧的 OpenVZ 模板之一,该模板的存储库 URL 不正确。
试试我的清单:
deb http://security.debian.org/lenny/updates 主要贡献非免费 deb http://挥发性.debian.org/debian-挥发性 lenny/挥发性主要贡献非自由 deb http://ftp.us.debian.org/debian/ lenny main deb-src http://ftp.us.debian.org/debian/ lenny main deb-src http://security.debian.org/lenny/updates main deb-src http://挥发性.debian.org/debian-挥发性 lenny/挥发性主