V
V
Vasily2020-04-25 09:41:44
linux
Vasily, 2020-04-25 09:41:44

Sudo apt update: Err:5 security.ubuntu.com/ubuntu disco-security Release 404 Not Found [IP: 91.189.91.38 80]?

I purchased a virtual machine on one of the European hostings, it has:

[email protected]:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:        19.04
Codename:       disco


The problem is this:

When I try to update packages with apt update , I get this error:

[email protected]:~# sudo apt update
sudo: unable to resolve host 1f68b6ff.cus9763.kvm.st-srv.eu: Name or service not known
Hit:1 http://old-releases.ubuntu.com/ubuntu disco InRelease
Hit:2 http://old-releases.ubuntu.com/ubuntu disco-updates InRelease
Ign:3 http://security.ubuntu.com/ubuntu disco-security InRelease
Ign:4 http://us.archive.ubuntu.com/ubuntu disco-backports InRelease
Err:5 http://security.ubuntu.com/ubuntu disco-security Release
  404  Not Found [IP: 91.189.91.38 80]
Err:6 http://us.archive.ubuntu.com/ubuntu disco-backports Release
  404  Not Found [IP: 91.189.91.38 80]
Reading package lists... Done
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.
E: The repository 'http://us.archive.ubuntu.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.


I read on the forums that I need to change the /etc/apt/sources.list file with a list of hosts containing packages, domain names from archive to old-releases, but this did not fully help. File content:

# deb http://us.archive.ubuntu.com/ubuntu/ disco main restricted

# deb http://us.archive.ubuntu.com/ubuntu/ disco-updates main restricted
# deb http://security.ubuntu.com/ubuntu disco-security main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ disco main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ disco-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-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/ disco universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco universe
deb http://old-releases.ubuntu.com/ubuntu/ disco-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-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/ disco multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco multiverse
deb http://old-releases.ubuntu.com/ubuntu/ disco-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ disco-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


What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Makhov, 2020-04-25
@VasyaM13221

It's best to upgrade to 04/20, 04/19 is out of support and it's an unstable release

R
Roman Mirilaczvili, 2020-04-25
@2ord

Igor Makhov is right, you need to update the system, because. it has ended its support period and is no longer receiving security updates.

sudo mv /etc/apt/sources.list /etc/apt/sources.list-bak

Generate a new list from here: https://repogen.simplylinux.ch/ or take
this
deb http://archive.ubuntu.com/ubuntu/ disco main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ disco main restricted

deb http://archive.ubuntu.com/ubuntu/ disco-updates main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ disco-updates main restricted

deb http://archive.ubuntu.com/ubuntu/ disco-backports main restricted
# deb-src http://archive.ubuntu.com/ubuntu/ disco-backports main restricted

deb http://security.ubuntu.com/ubuntu disco-security main restricted
# deb-src http://security.ubuntu.com/ubuntu disco-security main restricted

# deb http://archive.canonical.com/ubuntu disco partner
# deb-src http://archive.canonical.com/ubuntu disco partner


sudo nano /etc/apt/sources.list
Shift-Ins, Ctrl-W
sudo apt update
But that would help if the updates still existed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question