我见过很多线程,它们的答案都略有不同。我尽了全力,但我觉得现在都过时了。
所以我们运行Debian 8(不能升级,因为它不是我们的服务器) cat /etc/os-release的结果是
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"cat /etc/debian_version的输出是:
8.3/etc/apt/sources.list是
deb http://archive.debian.org/debian/ jessie main non-free contrib
deb-src http://archive.debian.org/debian/ jessie main non-free contrib
deb http://archive.debian.org/debian-security/ jessie/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ jessie/updates main non-free contrib在/etc/apt/sources.list.d里面我有..。
-rw-r--r-- 1 root root 244 Feb 17 2016 backports.list
-rw-r--r-- 1 root root 82 Feb 4 09:04 google-cloud-monitoring.list
-rw-r--r-- 1 root root 82 Feb 4 09:08 jessie-backports.list
-rw-r--r-- 1 root root 79 Feb 4 09:08 jessie.list
-rw-r--r-- 1 root root 183 Jul 18 2016 mod-pagespeed.list里面有.(综合名单)
deb http://httpredir.debian.org/debian/ jessie-backports main
deb-src http://httpredir.debian.org/debian/ jessie-backports main
deb http://http.debian.net/debian jessie-backports main
deb-src http://http.debian.net/debian jessie-backports main
deb https://packages.cloud.google.com/apt google-cloud-monitoring-jessie-all main
deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main
deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/mod-pagespeed/deb/ stable main然而,我们得到了以下错误,这意味着可能需要将源再次转换为工作源?
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/source/Sources 404 Not Found
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/source/Sources 404 Not Found
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/main/source/Sources 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/non-free/source/Sources 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/contrib/source/Sources 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/non-free/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/contrib/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead. 整个堆栈是..。
root@generational-vm:/var/lib/apt# apt-get update
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Ign http://cdn-fastly.deb.debian.org jessie InRelease
Hit http://dl.google.com stable Release
Ign http://httpredir.debian.org jessie-backports InRelease
Ign http://http.debian.net jessie-backports InRelease
Hit http://cdn-fastly.deb.debian.org jessie Release.gpg
Hit http://cdn-fastly.deb.debian.org jessie Release
Get:1 http://dl.google.com stable/main amd64 Packages [2,043 B]
Ign http://httpredir.debian.org jessie-backports Release.gpg
Ign http://httpredir.debian.org jessie-backports Release
Ign http://archive.debian.org jessie InRelease
Get:2 http://cdn-fastly.deb.debian.org jessie/main amd64 Packages [6,818 kB]
Hit https://packages.cloud.google.com google-cloud-monitoring-jessie-all InRelease
Ign http://archive.debian.org jessie/updates InRelease
Get:3 http://cdn-fastly.deb.debian.org jessie/main Translation-en [4,581 kB]
Hit http://archive.debian.org jessie-backports InRelease
Ign http://http.debian.net jessie-backports Release.gpg
Ign http://dl.google.com stable/main Translation-en_US
Ign http://http.debian.net jessie-backports Release
Ign http://dl.google.com stable/main Translation-en
Get:4 http://archive.debian.org jessie Release.gpg [2,420 B]
Get:5 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main amd64 Packages [582 B]
Get:6 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en_US [1,449 B]
Get:7 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en [1,449 B]
Get:8 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en_US [1,449 B]
Get:9 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en [1,449 B]
Get:10 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en_US [1,449 B]
Get:11 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en [1,449 B]
Get:12 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en_US [1,449 B]
Get:13 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en [1,449 B]
Get:14 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en_US [1,449 B]
Ign https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en_US
Ign http://archive.debian.org jessie/updates Release.gpg
Get:15 https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en [1,449 B]
Ign https://packages.cloud.google.com google-cloud-monitoring-jessie-all/main Translation-en
Err http://http.debian.net jessie-backports/main Sources
Ign http://archive.debian.org jessie-backports/main amd64 Packages/DiffIndex
Ign http://archive.debian.org jessie-backports/main Translation-en/DiffIndex
Err http://http.debian.net jessie-backports/main Sources
Hit http://archive.debian.org jessie Release
Ign http://archive.debian.org jessie Release
Err http://http.debian.net jessie-backports/main Sources
Ign http://archive.debian.org jessie/updates Release
Err http://http.debian.net jessie-backports/main Sources
Ign http://archive.debian.org jessie/main Sources/DiffIndex
Err http://http.debian.net jessie-backports/main Sources
404 Not Found
Err http://http.debian.net jessie-backports/main amd64 Packages
404 Not Found
Ign http://http.debian.net jessie-backports/main Translation-en_US
Ign http://http.debian.net jessie-backports/main Translation-en
Ign http://archive.debian.org jessie/non-free Sources/DiffIndex
Ign http://archive.debian.org jessie/contrib Sources/DiffIndex
Ign http://archive.debian.org jessie/main amd64 Packages/DiffIndex
Ign http://archive.debian.org jessie/non-free amd64 Packages/DiffIndex
Ign http://archive.debian.org jessie/contrib amd64 Packages/DiffIndex
Err http://httpredir.debian.org jessie-backports/main Sources
404 Not Found
Err http://httpredir.debian.org jessie-backports/main amd64 Packages
404 Not Found
Ign http://httpredir.debian.org jessie-backports/main Translation-en_US
Ign http://httpredir.debian.org jessie-backports/main Translation-en
Hit http://archive.debian.org jessie-backports/main Translation-en
Hit http://archive.debian.org jessie/contrib Translation-en
Hit http://archive.debian.org jessie/main Translation-en
Hit http://archive.debian.org jessie/non-free Translation-en
Hit http://archive.debian.org jessie-backports/main amd64 Packages
Hit http://archive.debian.org jessie/main Sources
Hit http://archive.debian.org jessie/non-free Sources
Hit http://archive.debian.org jessie/contrib Sources
Hit http://archive.debian.org jessie/main amd64 Packages
Hit http://archive.debian.org jessie/non-free amd64 Packages
Hit http://archive.debian.org jessie/contrib amd64 Packages
Ign http://archive.debian.org jessie/contrib Translation-en_US
Ign http://archive.debian.org jessie/main Translation-en_US
Ign http://archive.debian.org jessie/non-free Translation-en_US
Err http://archive.debian.org jessie/updates/main Sources
404 Not Found [IP: 130.89.148.13 80]
Err http://archive.debian.org jessie/updates/non-free Sources
404 Not Found [IP: 130.89.148.13 80]
Err http://archive.debian.org jessie/updates/contrib Sources
404 Not Found [IP: 130.89.148.13 80]
Err http://archive.debian.org jessie/updates/main amd64 Packages
404 Not Found [IP: 130.89.148.13 80]
Err http://archive.debian.org jessie/updates/non-free amd64 Packages
404 Not Found [IP: 130.89.148.13 80]
Err http://archive.debian.org jessie/updates/contrib amd64 Packages
404 Not Found [IP: 130.89.148.13 80]
Ign http://archive.debian.org jessie/updates/contrib Translation-en_US
Ign http://archive.debian.org jessie/updates/contrib Translation-en
Ign http://archive.debian.org jessie/updates/main Translation-en_US
Ign http://archive.debian.org jessie/updates/main Translation-en
Ign http://archive.debian.org jessie/updates/non-free Translation-en_US
Ign http://archive.debian.org jessie/updates/non-free Translation-en
Fetched 3,002 B in 13s (228 B/s)
W: GPG error: http://archive.debian.org jessie Release: The following signatures were invalid: KEYEXPIRED 1587841717
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/source/Sources 404 Not Found
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/source/Sources 404 Not Found
W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/main/source/Sources 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/non-free/source/Sources 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/contrib/source/Sources 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/non-free/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]
W: Failed to fetch http://archive.debian.org/debian-security/dists/jessie/updates/contrib/binary-amd64/Packages 404 Not Found [IP: 130.89.148.13 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.发布于 2021-02-04 10:22:03
您已经向我们展示了/etc/apt/sources.list,但是您已经定义了许多其他的apt存储库,因此这些存储库可能存在于/etc/apt/sources.list.d下的文件中。
Debian 8太老了,所有其他存储库都不太可能仍然支持它。他们可能应该被移除。
此外,debian安全存储库还没有在archive.debian.org上运行,这就是为什么没有找到404的原因。为此,您应该使用:
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free虽然现在它已经失去了支持,所以仍然看不到任何更新,但是它不会给出任何错误。
发布于 2021-02-04 15:06:03
https://www.debian.org/News/2020/20200709
Debian 8长期支持到达终止生命的 2020年7月9日Debian长期支持团队特此宣布Debian 8 "jessie“支持已于2020年6月30日(即其于2015年4月26日首次发布五年后)到达其生命终结。将不再为Debian 8提供进一步的安全更新。"jessie”软件包的一个子集将得到外部各方的支持。详细信息可在扩展的LTS中找到。
https://serverfault.com/questions/1052360
复制相似问题