Debian

Debian etch 上的 apt-get 更新失敗

  • September 8, 2014

我有一個執行 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

有什麼線索嗎?回購位置是否已更改?謝謝,喬爾。

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 發行說明。

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