0

I get disco no longer has a release file. How do I fix this? The error I get is

Err:9 https://us.archive.ubuntu.com/ubuntu disco Release
   404 Not Found [IP: 91.189.91.39.80]
Err:10 https://us.archive.ubuntu.com/ubuntu disco-updates Release
   404 Not Found [IP: 91.189.91.39.80]
Err:11 https://us.archive.ubuntu.com/ubuntu disco-backports Release
   404 Not Found [IP: 91.189.91.39.80]
Error:12 https://us.archive.ubuntu.com/ubuntu disco-security Release
   404 Not Found [IP: 91.189.91.39.80]
Reading Package lists...
E: The repository 'https://us.archive.ubuntu.com/ubuntu disco Release' no longer has a Release file
E: The repository 'https://us.archive.ubuntu.com/ubuntu disco-updates Release' no longer has a Release file
E: The repository 'https://us.archive.ubuntu.com/ubuntu disco-backports Release' no longer has a Release file
E: The repository 'https://us.archive.ubuntu.com/ubuntu disco-backports Release' no longer has a Release file
E: The repository 'https://us.archive.ubuntu.com/ubuntu disco-security Release' no longer has a Release file

It has more but I do not think that it is important if you want me to include it just ask I will.

Gryu
  • 7,559
  • 9
  • 33
  • 52
Nate
  • 530
  • No, I have to install the OS – Nate May 14 '20 at 19:33
  • As already mentioned by Pizza in their answer, 19.04 reached End of Public support in January 2020. All the archives of Disco have been moved to old-releases. Consider editing sources.list as instructed by the top answer of the above question and upgrade to 19.10. From 19.10, you can upgrade to 20.04. – Kulfy May 14 '20 at 19:36
  • Here you say you have 20.04: https://askubuntu.com/questions/1239171/how-to-reinstall-without-losing-any-data Are these different PCs? – Gryu May 14 '20 at 20:36
  • I had to reinstall – Nate May 14 '20 at 21:47
  • Ubuntu 19.04 is EOL or end-of-life (http://fridge.ubuntu.com/2020/01/23/ubuntu-19-04-disco-dingo-end-of-life-reached-on-january-23-2020/) thus off-topic on this site (https://askubuntu.com/help/on-topic) unless your question is specific to help moving to a supported release of Ubuntu. Use a LTS or long-term-support release if you don't like release-upgrading every 6-9 months. https://help.ubuntu.com/community/EOLUpgrades – guiverc May 14 '20 at 22:24
  • Your issue is 'disco' (19.04) is EOL. After a release goes EOL, mirrors can drop it, and the main archive.ubuntu.com gets moved to old-releases. Refer to prior comment and EOLUpgrades link, or https://askubuntu.com/questions/91815/how-to-install-software-or-upgrade-from-an-old-unsupported-release – guiverc May 14 '20 at 22:25

2 Answers2

2

You are trying to add a repository / install from a repository of disco dingo (ubuntu 19.04). That version has reached its end of life and no longer supported. That is why that repo no longer has release files.

The version you should use (if you're still interested in 19.x versions) is ubuntu 19.10 (Eoan Ermine), but you should also take in mind that this version will not be supported for much longer.

Also, about the versions you mentioned: ubuntu 18.2 does not exist, ubuntu 22.04 release is planned to April 2022). Ubuntu 20.04 is currently the latest release.

For more information: Ubuntu 19.10 (Eoan Ermine), Eoan Ermine Release notes, The Ubuntu lifecycle and release cadence

Pizza
  • 1,428
2

In case if you do not have a PC and iso with supported ubuntu version, than install the current version unchecking Download updates while installing Ubuntu

enter image description here

Then you could download 20.04, write your installation medium with it and reinstall Ubuntu using it.

It is better to reinstall it, than upgrade from unsupported release.

Use the next command to replace some names in deprecated repositories records (if you want to install something with apt before reinstalling):

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

The command replaces us.archive.ubuntu.com and security.ubuntu.com to old-releases.ubuntu.com in /etc/apt/sources.list file. You could do it with nano by hand. Then sudo apt update and so on.

Reference

Gryu
  • 7,559
  • 9
  • 33
  • 52