Apt

apt-get update 在 debian lenny 上獲得 404

  • April 13, 2012

這是我的/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.

稍微摸索了一下,這似乎是 Debian 鏡像的問題。根據鏡像資訊,lenny 應該可用,儘管您可能需要將 ’lenny’ 的每個實例更改為/etc/apt/sources.list. 但是,拉起 3 個鏡像都表明 ’lenny’ 和 ‘oldstable’ 不再列出。

**更新:**我做了更多的探索,發現USC Mirror看起來仍然列出了“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/公共的伺服器。

引用自:https://serverfault.com/questions/374651