我有一台运行 Ech 的 Debian 服务器。我似乎无法再运行apt-get 更新适当地:
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
有什么线索吗? repo 位置有变化吗?谢谢,Joel。
答案1
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。然后,Etch 将逐渐从镜像中消失;dists 树将立即被删除,池中的文件将在接下来的几天内分批删除。
Etch 现已从 ftp.uk.debian.org 中删除。您可以通过将 sources.list 更改为以下内容来使用该存档:
deb http://archive.debian.org/debian/ etch main contrib
但是,要获得安全支持,您最好升级到 Lenny(并将 security.debian.org 包含在 sources.list 中)。请参阅Lenny 发行说明了解升级说明。
答案2
我花了一段时间才意识到这是我的名称服务器的问题。我找不到archive.debian.org
如果你遇到此问题,请确保你可以通过以下方式 ping google:
ping 8.8.8.8
然后确保你正在运行名称服务器,你可以使用谷歌的名称服务器:这样就可以了
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf