apt update 有兩個失敗的索引文件,我在網上找不到任何關於該做什麼的資訊
我正在更新我的一個系統,但我收到一個錯誤,我不知道如何修復或問題出在哪裡。
這是錯誤:
E: Failed to fetch http://the.earth.li/debian/dists/stretch-updates/main/binary-i386/Packages 404 Not Found [IP: 46.43.34.31 80] E: Failed to fetch http://the.earth.li/debian/dists/stretch/main/binary-i386/Packages 404 Not Found [IP: 46.43.34.31 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
root /home/kristjan # apt update Hit:1 http://ftp.debian.org/debian stretch-backports InRelease Hit:2 http://security.debian.org/debian-security stretch/updates InRelease Hit:3 http://download.virtualbox.org/virtualbox/debian stretch InRelease Hit:4 https://download.mono-project.com/repo/debian stable-stretch InRelease Hit:5 http://www.deb-multimedia.org stretch InRelease Hit:6 http://repo.steampowered.com/steam precise InRelease Hit:7 https://deb.torproject.org/torproject.org stretch InRelease Ign:8 http://the.earth.li/debian stretch InRelease Get:9 http://the.earth.li/debian stretch-updates InRelease [91.0 kB] Get:10 http://the.earth.li/debian stretch Release [118 kB] Get:11 http://the.earth.li/debian stretch-updates/main Sources.diff/Index [8,608 B] Get:12 http://the.earth.li/debian stretch-updates/main i386 Packages.diff/Index [8,608 B] Get:12 http://the.earth.li/debian stretch-updates/main i386 Packages.diff/Index [8,608 B] Ign:12 http://the.earth.li/debian stretch-updates/main i386 Packages.diff/Index Get:15 http://the.earth.li/debian stretch Release.gpg [2,434 B] Get:16 http://the.earth.li/debian stretch-updates/main Sources 2019-02-21-2009.35.pdiff [10.2 kB] Get:17 http://the.earth.li/debian stretch-updates/main Sources 2019-03-27-2010.32.pdiff [471 B] Get:18 http://the.earth.li/debian stretch-updates/main Sources 2019-03-30-2008.27.pdiff [726 B] Get:19 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-02-21-2009.35.pdiff [4,149 B] Get:20 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-03-27-2010.32.pdiff [531 B] Get:21 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-03-30-2008.27.pdiff [1,599 B] Get:22 http://the.earth.li/debian stretch-updates/main Translation-en 2019-02-21-2009.35.pdiff [5,483 B] Get:18 http://the.earth.li/debian stretch-updates/main Sources 2019-03-30-2008.27.pdiff [726 B] Get:22 http://the.earth.li/debian stretch-updates/main Translation-en 2019-02-21-2009.35.pdiff [5,483 B] Get:21 http://the.earth.li/debian stretch-updates/main amd64 Packages 2019-03-30-2008.27.pdiff [1,599 B] Ign:23 http://the.earth.li/debian stretch-updates/main i386 Packages Get:24 http://the.earth.li/debian stretch/non-free Sources [79.4 kB] Get:25 http://the.earth.li/debian stretch/main Sources [6,746 kB] Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB] Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB] Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB] Get:26 http://the.earth.li/debian stretch/main i386 Packages [7,064 kB] Ign:26 http://the.earth.li/debian stretch/main i386 Packages Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages Ign:23 http://the.earth.li/debian stretch-updates/main i386 Packages Ign:26 http://the.earth.li/debian stretch/main i386 Packages Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages Err:23 http://the.earth.li/debian stretch-updates/main i386 Packages 404 Not Found [IP: 46.43.34.31 80] Ign:26 http://the.earth.li/debian stretch/main i386 Packages Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages Err:26 http://the.earth.li/debian stretch/main i386 Packages 404 Not Found [IP: 46.43.34.31 80] Ign:31 http://the.earth.li/debian stretch/non-free i386 Packages Fetched 235 kB in 1s (125 kB/s) Reading package lists... Done E: Failed to fetch http://the.earth.li/debian/dists/stretch-updates/main/binary-i386/Packages 404 Not Found [IP: 46.43.34.31 80] E: Failed to fetch http://the.earth.li/debian/dists/stretch/main/binary-i386/Packages 404 Not Found [IP: 46.43.34.31 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
這是系統:
root /home/kristjan # cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
這是來源列表:
root /home/kristjan # cat /etc/apt/sources.list # #deb cdrom:[Debian GNU/Linux 9.4.0 _S #deb cdrom:[Debian GNU/Linux 9.4.0 _S deb http://www.deb-multimedia.org stretch main non-free deb http://the.earth.li/debian/ stretch main non-free deb-src http://the.earth.li/debian/ stretch main non-free deb http://security.debian.org/debian-security stretch/updates main contrib non-free deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free # stretch-updates, previously known as 'volatile' deb http://the.earth.li/debian/ stretch-updates main contrib non-free deb-src http://the.earth.li/debian/ stretch-updates main contrib non-free # Virtualbox Oracle deb http://download.virtualbox.org/virtualbox/debian stretch contrib #Tor###########################97 deb https://deb.torproject.org/torproject.org stretch main deb-src https://deb.torproject.org/torproject.org stretch main # For the stable version. #deb tor://sdscoq7snqtznauu.onion/torproject.org stretch main ########################### Backports testingittt #deb http://ftp.debian.org/debian stretch-backports main
這裡有什麼問題,我該如何解決?
更新:
我有兩台伺服器都執行 Debian Stretch 9.9,並且使用相同的 debian 伺服器進行軟體包和更新,但我只能更新其中一個,這個給我這個錯誤:
~↓↓$↓↓ apt update Hit:1 http://www.deb-multimedia.org stretch InRelease Ign:2 http://the.earth.li/debian stretch InRelease Hit:3 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease Get:4 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB] Hit:6 http://download.virtualbox.org/virtualbox/debian stretch InRelease Hit:7 http://ftp.debian.org/debian stretch-backports InRelease Get:5 http://the.earth.li/debian stretch-updates InRelease [91.0 kB] Hit:9 http://repo.mysql.com/apt/debian stretch InRelease Hit:10 https://packages.microsoft.com/debian/9/prod stretch InRelease Hit:11 https://packages.microsoft.com/repos/vscode stable InRelease Get:8 http://the.earth.li/debian stretch Release [118 kB] Hit:12 https://deb.torproject.org/torproject.org stretch InRelease Get:13 http://security.debian.org/debian-security stretch/updates/main Sources [205 kB] Get:14 http://the.earth.li/debian stretch Release.gpg [2,434 B] Get:15 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [492 kB] Get:16 http://the.earth.li/debian stretch-updates/main Sources [13.1 kB] Get:17 http://the.earth.li/debian stretch-updates/main amd64 Packages [27.2 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [27.2 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [27.2 kB] Hit:21 http://repo.steampowered.com/steam precise InRelease Ign:18 http://the.earth.li/debian stretch-updates/main i386 Packages Ign:22 http://the.earth.li/debian stretch-updates/main i386 Contents (deb) Get:23 http://security.debian.org/debian-security stretch/updates/main i386 Packages [494 kB] Ign:18 http://the.earth.li/debian stretch-updates/main i386 Packages Hit:24 https://download.mono-project.com/repo/debian stable-stretch InRelease Ign:25 https://apt.jenslody.de/stable stretch InRelease Err:22 http://the.earth.li/debian stretch-updates/main i386 Contents (deb) 404 Not Found [IP: 46.43.34.31 80] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Hit:28 https://apt.jenslody.de/stable stretch Release Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Get:18 http://the.earth.li/debian stretch-updates/main i386 Packages [169 kB] Ign:18 http://the.earth.li/debian stretch-updates/main i386 Packages Ign:36 http://the.earth.li/debian stretch/main i386 Packages Get:37 http://the.earth.li/debian stretch/main i386 Contents (deb) [31.3 MB] Get:38 http://the.earth.li/debian stretch/main amd64 Contents (deb) [31.4 MB] Get:39 http://the.earth.li/debian stretch/non-free amd64 Packages [78.3 kB] Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages Get:41 http://the.earth.li/debian stretch/non-free Translation-en [80.3 kB] Get:42 http://the.earth.li/debian stretch/non-free amd64 DEP-11 Metadata [7,180 B] Get:43 http://the.earth.li/debian stretch/non-free DEP-11 64x64 Icons [30.0 kB] Get:44 http://the.earth.li/debian stretch/non-free DEP-11 128x128 Icons [85.2 kB] Get:45 http://the.earth.li/debian stretch/non-free amd64 Contents (deb) [809 kB] Get:46 http://the.earth.li/debian stretch/non-free i386 Contents (deb) [750 kB] Ign:36 http://the.earth.li/debian stretch/main i386 Packages Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages Ign:36 http://the.earth.li/debian stretch/main i386 Packages Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages Err:36 http://the.earth.li/debian stretch/main i386 Packages 404 Not Found [IP: 46.43.34.31 80] Ign:40 http://the.earth.li/debian stretch/non-free i386 Packages Fetched 44.7 MB in 13s (3,223 kB/s) Reading package lists... Done E: Failed to fetch http://the.earth.li/debian/dists/stretch-updates/main/Contents-i386 404 Not Found [IP: 46.43.34.31 80] E: Failed to fetch http://the.earth.li/debian/dists/stretch/main/binary-i386/Packages 404 Not Found [IP: 46.43.34.31 80] E: Some index files failed to download. They have been ignored, or old ones used instead.
以下是其他
list
文件,僅供參考:~↓↓$↓↓ ls -asil /etc/apt/sources.list.d/ total 36 1175229 4 drwxr-xr-x 2 root root 4096 May 18 09:52 . 1175056 4 drwxr-xr-x 6 root root 4096 May 23 01:54 .. 1178126 4 -rw-r--r-- 1 root root 67 May 2 08:18 linuxuprising-java.list 1178021 4 -rw-r--r-- 1 root root 75 Jan 17 2018 microsoft-prod.list 1177218 4 -rw-r--r-- 1 root root 70 Jul 12 2018 mono-official-stable.list 1176353 4 -rw-r--r-- 1 root root 712 May 13 06:23 mysql.list 1178155 4 -rw-r--r-- 1 root root 148 Jul 24 2018 steam.list 1178030 4 -rw-r--r-- 1 root root 64 Jul 21 2018 stretch-backports.list 1176782 4 -rw-r--r-- 1 root root 73 May 18 09:42 vscode.list
這是
sources.list
在另一台伺服器上:deb http://www.deb-multimedia.org stretch main non-free deb http://the.earth.li/debian/ stretch main non-free deb-src http://the.earth.li/debian/ stretch main non-free deb http://security.debian.org/debian-security stretch/updates main contrib non-free deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free # stretch-updates, previously known as 'volatile' deb http://the.earth.li/debian/ stretch-updates main contrib non-free deb-src http://the.earth.li/debian/ stretch-updates main contrib non-free # Virtualbox Oracle deb http://download.virtualbox.org/virtualbox/debian stretch contrib
根據Debian 鏡像所有者的部落格
the.earth.li
和官方列表,不再the.earth.li
聲稱提供 Debian 鏡像服務。宣布此更改的時間是 2019 年 2 月 1 日。那麼為什麼它仍然適用於某些系統而不適用於其他系統呢?
好吧,系統的所有者可以自由改變主意。
或者,無論出於何種個人原因,他們只是沒有在公告中指定的確切日期完全關閉它。
也許他們實際上保留了鏡像供自己本地使用,但是(作為停止的原因之一是磁碟空間的成本)他們可能已將其縮減為僅涵蓋對自己有用的系統架構。例如,如果他們不再使用任何 32 位 x86 系統並且不需要 32 位兼容性,那麼他們可能已經放棄了
i386
架構,但保留了鏡像amd64
。(如果正在執行的虛擬機都是 64 位系統,這可能是原因。)或者他們可能已經實現了某種任意類型的訪問過濾。例如,他們現在可能正在使用某種形式的基於 GeoIP 的阻止,並且他們的(不完美的)GeoIP 數據庫恰好列出了您的一項服務的 IP,但沒有列出另一項服務的 IP。
那你該怎麼辦?
the.earth.li
正如所有者所說,您應該切換到使用其他儲存庫。由於現在沒有人做出任何the.earth.li
將保持最新、完整和功能的承諾,您應該假設它可能會過時或完全停止工作而沒有進一步的警告。您可以通過以下幾種方式做到這一點:
如果您已經安裝了它(或者想下載一些必要的軟體包來手動安裝它),您可以使用該
netselect-apt
實用程序自動為您選擇一個新的官方儲存庫鏡像。或者你可以切換到使用
deb.debian.org
in yoursources.list
,它會自動將你的包管理工具重定向到離你很近的儲存庫鏡像。或者您可以從Debian 鏡像的官方列表中選擇一個新的儲存庫並手動配置它。
或者,您可以使用第三方 sources.list 生成器。比如這個:https ://debgen.simplylinux.ch/