La actualización de apt-get falla al actualizar de 17.04 a 17.10 después del EOL, no se puede encontrar ninguna de las réplicas

La actualización de apt-get falla al actualizar de 17.04 a 17.10 después del EOL, no se puede encontrar ninguna de las réplicas

Recibo la siguiente lista de errores al probar cualquier tipo de elogio de apt-get. Por ejemplo, sudo apt-get update finalmente me da

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.

Así que aquí hay una serie de soluciones que implican cambiar a un espejo diferente, pero a mí eso me falla. Cambio al servidor principal, sin cambios. Le pido al sistema que elija el mejor servidor para mí y aparece la ventana "No se encontró ningún servidor de descarga adecuado, verifique su conexión a Internet". Bueno, puedo hacer ping a Google (¡y hacer esta pregunta!), por lo que parece que Internet no es el problema.

¿Alguien tiene alguna idea?

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

Respuesta1

Primero arreglaremos sus repositorios:

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

Esto debería ajustarlo /etc/apt/sources.listpara que se vea similar a esto:

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

Entonces corre:

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

información relacionada