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
  • 8,002
  • 9
  • 37
  • 53
Nate
  • 540
  • 1
  • 8
  • 28

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,512
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
  • 8,002
  • 9
  • 37
  • 53