我正在更新我的一个系统,但我收到一个错误,我不知道如何修复或问题出在哪里。
这是错误:
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/