Errore Ubuntu 18: The repository ‘http://security.ubuntu.com/ubuntu cosmic-security Release’ does not have a Release file.
In questo tutorial andremo a descrivere come risolvere il problema degli aggiornamenti su Ubuntu 18.
Considerando di partire da una macchina Ubuntu 18 ( qui per l’installazione) e provando ad aggiornarla
sudo apt update
riscontriamo il seguente errore
Ign:1 http://archive.ubuntu.com/ubuntu cosmic InRelease
Ign:2 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
Ign:3 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Ign:4 http://archive.ubuntu.com/ubuntu cosmic-security InRelease
Err:5 http://archive.ubuntu.com/ubuntu cosmic Release
404 Not Found [IP: 91.189.88.142 80]
Err:6 http://archive.ubuntu.com/ubuntu cosmic-updates Release
404 Not Found [IP: 91.189.88.142 80]
Err:7 http://archive.ubuntu.com/ubuntu cosmic-backports Release
404 Not Found [IP: 91.189.88.142 80]
Err:8 http://archive.ubuntu.com/ubuntu cosmic-security Release
404 Not Found [IP: 91.189.88.142 80]
Reading package lists… Done
E: The repository ‘http://archive.ubuntu.com/ubuntu cosmic Release’ no longer has 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://archive.ubuntu.com/ubuntu cosmic-updates Release’ no longer has 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://archive.ubuntu.com/ubuntu cosmic-backports Release’ no longer has 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://archive.ubuntu.com/ubuntu cosmic-security Release’ no longer has 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.
per risolverlo è necessario modificare l’ indirizzo del repository, in questo modo
vim /etc/apt/sources.list
e sostituendo http://archive.ubuntu.com con http://old-releases.ubuntu.com/. Fatto ciò sarà possibile aggiornare il sistema Ubuntu 18
sudo apt update
sudo apt list --upgradable
sudo apt upgrade