A atualização do apt-get falha ao atualizar de 17.04 para 17.10 após EOL, nenhum dos espelhos pode ser encontrado

A atualização do apt-get falha ao atualizar de 17.04 para 17.10 após EOL, nenhum dos espelhos pode ser encontrado

Estou recebendo a seguinte lista de erros ao tentar qualquer tipo de recomendação do apt-get. Por exemplo, sudo apt-get update eventualmente me dá

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.

Portanto, há uma série de soluções aqui que envolvem a mudança para um espelho diferente, mas isso falha para mim. Mudo para o servidor principal, sem alterações. Peço ao sistema que escolha o melhor servidor para mim e recebo uma janela "Nenhum servidor de download adequado foi encontrado, verifique sua conexão com a Internet". Bem, posso fazer ping no Google (e fazer esta pergunta!), então parece que a Internet não é o problema.

Alguém tem alguma opinião?

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

Responder1

Primeiro vamos consertar seus repositórios:

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

Isso deve ajustar o seu /etc/apt/sources.listpara ficar semelhante a este:

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

Então corra:

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

informação relacionada