更新Debian中apt-get使用的网址列表


8

当我在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.

谁能帮我更新此列表,以使所有网址正常工作。

抱歉,这个问题的标题很奇怪,但我不知道正确的用词。


这是正确的答案,为2012.04:serverfault.com/questions/373314/...
索林

Answers:


4

您要查找的文件是/etc/apt/sources.list

您的主机可能使用的是较旧的OpenVZ模板之一,该模板具有错误的回购URL。

试试我的清单:

deb http://security.debian.org/ lenny / updates主要贡献非免费
deb http://volatile.debian.org/debian-volatile lenny / volatile主要贡献者非免费 
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主要
deb-src http://volatile.debian.org/debian-volatile lenny / volatile main

不客气!
约翰T

这个答案ID 过时:看serverfault.com/questions/373314/...
索林

0

它似乎不http://ftp.devian.org/debian-security存在。查看时http://ftp.debian.org/,我所看到的只是debian/

也许试试security.debian.org


0

尽管可以想到它的名字,但ftp.debian.org它并不比其他Debian镜子更完整。例如,它没有debian-volatile。Debian网站上有一个debian-volatile镜像列表。安全更新应直接来自security.debian.org

您需要编辑/etc/apt/sources.list。将易失性和安全性线更改为类似

deb http://ftp.nl.debian.org/debian-volatile lenny/volatile main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free

在使用它时,您也可以更改核心线以使其使用ftp.nl.debian.org

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.