LinuxGuru asked this 4 months ago

Error updating Ubuntu - no longer has a Release file.

When running apt-get update I get the below error:
$ sudo apt-get update
Ign:1 http://europe-west1.gce.archive.ubuntu.com/ubuntu artful InRelease
Ign:2 http://europe-west1.gce.archive.ubuntu.com/ubuntu artful-updates InRelease
Ign:3 http://europe-west1.gce.archive.ubuntu.com/ubuntu artful-backports InRelea       se
Err:6 http://europe-west1.gce.archive.ubuntu.com/ubuntu artful-backports Release
  404  Not Found [IP: 35.195.241.40 80]
Hit:7 http://archive.canonical.com/ubuntu artful InRelease
Hit:8 http://ppa.launchpad.net/certbot/certbot/ubuntu artful InRelease
Hit:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu artful InRelease
Hit:10 http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease
Ign:11 http://security.ubuntu.com/ubuntu artful-security InRelease
Err:12 http://security.ubuntu.com/ubuntu artful-security Release
  404  Not Found [IP: 91.189.91.23 80]
Reading package lists... Done
E: The repository 'http://europe-west1.gce.archive.ubuntu.com/ubuntu artful Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://europe-west1.gce.archive.ubuntu.com/ubuntu artful-back ports 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://security.ubuntu.com/ubuntu artful-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.

 


gareth 4 months ago

Ubuntu 17.10 reached End Of LIFE 19th July 2018 .. You should upgrade to 18.04.

If that is not an option, Edit the sources.list and change to old-releases.ubuntu.com

George 4 months ago

This is the file to edit:
 /etc/apt/sources.list
It has entries like below:
For example my source was europe-west1.gce.archive.ubuntu.com
Replace that with
 old-releases.ubuntu.com

Entries like below:
deb http://europe-west1.gce.archive.ubuntu.com/ubuntu/ artful main restricted
deb-src http://europe-west1.gce.archive.ubuntu.com/ubuntu/ artful main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://europe-west1.gce.archive.ubuntu.com/ubuntu/ artful-updates main restricted
deb-src http://europe-west1.gce.archive.ubuntu.com/ubuntu/ artful-updates main restricted

Change to

deb http://old-releases.ubuntu.com/ubuntu/ artful-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ artful-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ artful universe
deb-src http://old-releases.ubuntu.com/ubuntu/ artful universe
deb http://old-releases.ubuntu.com/ubuntu/ artful-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ artful-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://old-releases.ubuntu.com/ubuntu/ artful multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ artful multiverse
deb http://old-releases.ubuntu.com/ubuntu/ artful-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ artful-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ artful-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu artful-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu artful-security main restricted
deb http://old-releases.ubuntu.com/ubuntu artful-security universe
deb-src http://old-releases.ubuntu.com/ubuntu artful-security universe
deb http://old-releases.ubuntu.com/ubuntu artful-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu artful-security multiverse