我有一个运行Etch的debian服务器。 我不能再正常运行apt-get update了 :
root@charm osqa ] apt-get update Ign http://ftp.uk.debian.org etch Release.gpg Ign http://ftp.uk.debian.org etch Release Err http://ftp.uk.debian.org etch/main Packages 404 Not Found Err http://ftp.uk.debian.org etch/contrib Packages 404 Not Found Err http://ftp.uk.debian.org etch/non-free Packages 404 Not Found Failed to fetch http://ftp.uk.debian.org/debian/dists/etch/main/binary-i386/Packages.gz 404 Not Found Failed to fetch http://ftp.uk.debian.org/debian/dists/etch/contrib/binary-i386/Packages.gz 404 Not Found Failed to fetch http://ftp.uk.debian.org/debian/dists/etch/non-free/binary-i386/Packages.gz 404 Not Found Reading package lists... Done W: Couldn't stat source package list http://ftp.uk.debian.org etch/main Packages (/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://ftp.uk.debian.org etch/contrib Packages (/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list http://ftp.uk.debian.org etch/non-free Packages (/var/lib/apt/lists/ftp.uk.debian.org_debian_dists_etch_non-free_binary-i386_Packages) - stat (2 No such file or directory) W: You may want to run apt-get update to correct these problems E: Some index files failed to download, they have been ignored, or old ones used instead.
我的sources.list文件是相当小的,它只包含:
###### Debian Main Repos deb http://ftp.uk.debian.org/debian/ etch main contrib
任何线索? 回购地点改变了吗? 谢谢Joel
Debian 4.0(Etch)是一个不再被支持的旧版本:
Debian GNU / Linux 4.0已被Debian GNU / Linux 5.0(“lenny”)所取代。 截至2010年2月底,安全更新已经停止。
Etch现在已经移到archive.debian.org :
我们打算在6月20日星期天的晚上(UTC)将Etch复制到archive.debian.org。 蚀刻将逐渐从镜中消失; dists树将被立即删除,池中的文件将在接下来的几天内被删除。
Etch已经从ftp.uk.debian.org中删除。 您可以通过将您的sources.list更改为:
deb http://archive.debian.org/debian/ etch main contrib
但是,要获得安全支持,最好升级到Lenny(并在sources.list中包含security.debian.org)。 有关升级说明,请参阅Lenny发行说明。
我花了一段时间后,我意识到这是我的名字服务器的问题..我找不到archive.debian.org
如果你有这个问题,请确保你可以ping通谷歌:
ping 8.8.8.8
然后确保你有名称服务器运行,你可以使用谷歌的:这将做的伎俩
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf