apt-get update не удается обновить с 17.04 до 17.10 после EOL, ни одно из зеркал не может быть найдено

apt-get update не удается обновить с 17.04 до 17.10 после EOL, ни одно из зеркал не может быть найдено

Я получаю следующий список ошибок при попытке любого вида apt-get commends. Например, sudo apt-get update в конечном итоге дает мне

Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu zesty Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu zesty-updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu zesty-backports Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://us.archive.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Итак, есть несколько решений, которые включают смену зеркала, но это не сработало для меня. Я переключаюсь на основной сервер, никаких изменений. Я прошу систему выбрать для меня лучший сервер, и получаю окно «Подходящий сервер загрузки не найден, проверьте подключение к интернету». Ну, я могу пинговать Google (и задать этот вопрос!), так что, похоже, проблема не в интернете.

У кого-нибудь есть какие-нибудь мысли?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 17.04
Release:    17.04
Codename:   zesty

решение1

Сначала мы исправим ваши репозитории:

sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

Это должно изменить ваш /etc/apt/sources.listвид так, чтобы он выглядел примерно так:

deb http://old-releases.ubuntu.com/ubuntu/ zesty-updates main
deb http://old-releases.ubuntu.com/ubuntu/ zesty-backports main
deb http://old-releases.ubuntu.com/ubuntu zesty-security main
deb http://old-releases.ubuntu.com/ubuntu zesty main universe restricted multiverse

Затем выполните:

sudo apt-get update && sudo apt-get dist-upgrade

Связанный контент