Я видел много тем с немного разными ответами. Я перепробовал все, что мог, но думаю, что все они уже устарели.
Итак, мы используем 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/"
Output from cat /etc/debian_version
is:
8.3
The /etc/apt/sources. list
is
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.
Вы показали нам /etc/apt/sources.list
, но у вас определено множество других репозиториев apt, так что они, вероятно, присутствуют в файлах под /etc/apt/sources.list.d
.
Debian 8 настолько стар, что все эти другие репозитории вряд ли ещё поддерживают его. Вероятно, их следует удалить.
Также репозиторий debian-security еще не находится на archive.debian.org, поэтому вы получаете 404 Not Found. Для этого вам следует использовать:
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
хотя сейчас он не поддерживается, поэтому вы не увидите обновлений, он просто не будет выдавать ошибок.
https://www.debian.org/News/2020/20200709
Окончание срока службы долгосрочной поддержки Debian 8
9 июля 2020 г.
Команда долгосрочной поддержки Debian (LTS) сообщает, что 30 июня 2020 г. срок поддержки Debian 8 "jessie" истек. через пять лет после его первоначального выпуска 26 апреля 2015 года.
Debian не будет предоставлять дальнейшие обновления безопасности для Debian 8. Подмножество пакетов «jessie» будет поддерживаться внешними сторонами. Подробную информацию можно найти в Расширенном LTS.