Report this

What is the reason for this report?

I cannot update from 19.04 to 19.10 - 'no longer has a release file'

Posted on May 17, 2020

I was attempting to upgrade to the latest LTS but, am required to update from 19.04 to 19.10 first. I have apparently missed the window to do so as when I attempt to do so with sudo apt-get update I get this result:

Ign:1 http://mirrors.digitalocean.com/ubuntu disco InRelease
Ign:2 http://mirrors.digitalocean.com/ubuntu disco-updates InRelease
Ign:3 http://mirrors.digitalocean.com/ubuntu disco-backports InRelease
Hit:4 http://apt.postgresql.org/pub/repos/apt disco-pgdg InRelease
Err:5 http://mirrors.digitalocean.com/ubuntu disco Release
  404  Not Found [IP: 104.24.116.209 80]
Err:6 http://mirrors.digitalocean.com/ubuntu disco-updates Release
  404  Not Found [IP: 104.24.116.209 80]
Err:7 http://mirrors.digitalocean.com/ubuntu disco-backports Release
  404  Not Found [IP: 104.24.116.209 80]
Ign:8 http://security.ubuntu.com/ubuntu disco-security InRelease
Hit:9 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease
Err:10 http://security.ubuntu.com/ubuntu disco-security Release
  404  Not Found [IP: 91.189.91.38 80]
Hit:11 http://ppa.launchpad.net/ondrej/nginx/ubuntu disco InRelease
Hit:12 http://nginx.org/packages/ubuntu xenial InRelease
Hit:13 http://ppa.launchpad.net/ondrej/php/ubuntu disco InRelease
Reading package lists... Done
E: The repository 'http://mirrors.digitalocean.com/ubuntu disco 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://mirrors.digitalocean.com/ubuntu disco-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://mirrors.digitalocean.com/ubuntu disco-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://security.ubuntu.com/ubuntu disco-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.

How can I update my existing release so that I can upgrade to a more current LTS? Thank you!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I had the same issue but found I had to tweak the ‘/etc/apt/sources.list’ file a bit further.

I was initially getting error messages like:

The repository 'http://gb.archive.ubuntu.com/ubuntu disco Release' no longer has a Release file.

I changed all references to archive.ubuntu.com with old-releases.ubuntu.com in '/etc/apt/sources.list' using :%s/archive.ubuntu.com/old-releases.ubuntu.com/

What I should have done though was:

:%s/gb.archive.ubuntu.com/old-releases.ubuntu.com/

Hey @enjoypb - This is an issue that lots of users run into due to the earlier EOL date of Jan 23 2020 for Ubuntu 19.04

To fix your immediate issue though, I believe you can do this:

Add old-releases.ubuntu.com to the /etc/apt/sources.list file

Open up the apt sources file with:

sudo nano /etc/apt/sources.list

Replace all occurrences of archive.ubuntu.com with old-releases.ubuntu.com

For example:

before:

deb http://archive.ubuntu.com/ubuntu disco main universe multiverse restricted

after:

deb http://old-releases.ubuntu.com/ubuntu disco main universe multiverse restricted

Keep in mind that even Ubuntu 19.10 will go to end of life (EOL) in July 2020 https://wiki.ubuntu.com/Releases

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.