I have just created a new Google Cloud Compute Engine server using Ubuntu 17.04 as the boot disk:
Ubuntu 17.04
amd64 zesty image built on 2017-12-08
Before doing anything else, if I try to run sudo apt-get update I receive the following errors:
Ign:1 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty InRelease
Ign:2 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-updates
InRelease
Ign:3 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-backports InRelease
Ign:4 http://security.ubuntu.com/ubuntu zesty-security InRelease
Err:5 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty Release
404 Not Found [IP: 35.195.241.40 80]
Err:6 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-updates Release
404 Not Found [IP: 35.195.241.40 80]
Err:7 http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty-backports Release
404 Not Found [IP: 35.195.241.40 80]
Err:8 http://security.ubuntu.com/ubuntu zesty-security Release
404 Not Found [IP: 91.189.88.161 80]
Hit:9 http://archive.canonical.com/ubuntu zesty InRelease
Reading package lists... Done
E: The repository 'http://europe-west1.gce.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://europe-west1.gce.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://europe-west1.gce.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.
E: The repository 'http://security.ubuntu.com/ubuntu zesty-security 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.
Looking at http://europe-west1.gce.archive.ubuntu.com/ubuntu/ I can see updates from today less than an hour ago.
Is this an error on Google's side or have I done something wrong?
I confirm that "E: The repository 'http://ru.archive.ubuntu.com/ubuntu zesty Release' does no longer have a Release file."
Solved as proposed before by heroin in the recipe https://smyl.es/how-to-fix-ubuntudebian-apt-get-404-not-found-package-repository-errors-saucy-raring-quantal-oneiric-natty/ .
Unfortunately this sed command will not work for you if you have selected a national mirror (like
us.archive.ubuntu.comfor updates. Then one can update strings in the file /etc/apt/sources.list changing all entries likehttp://*.archive.ubuntu.comandhttp://*.security.ubuntu.comto thehttp://old-releases.ubuntu.commanually in a text editor,or
For example, your
http://europe-west1.gce.archive.ubuntu.com/ubuntu zesty InReleasebecomehttp://old-releases.ubuntu.com/ubuntu zesty InReleaseand so on.Here is my updated file /etc/apt/sources.list: