@VasyaM13221

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

Приобрел виртуальную машину на одном из европейских хостнигов, на ней установлена:

root@1f68b6ff:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:        19.04
Codename:       disco


Проблема следующая:

При попытке обновить пакеты apt update я получаю такую ошибку:

root@1f68b6ff:~# 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.


На форумах почитал что надо изменить в файле /etc/apt/sources.list с списком хостов содержащих пакеты имена доменов с archive на old-releases но это не до конца помогло. Содержание файла:

# 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


Что я делаю не так?
  • Вопрос задан
  • 5089 просмотров
Решения вопроса 1
Лучше всего обновиться до 20.04, у 19.04 закончился срок поддержки, к тому же это нестабильный релиз
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
Игорь Махов прав, нужно обновить систему, т.к. у нее закончился срок поддержки и она более не получает обновлений безопасности.
sudo mv /etc/apt/sources.list /etc/apt/sources.list-bak

Сгенерировать новый список отсюда: https://repogen.simplylinux.ch/ или взять
этот
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
Но это помогло бы, если бы обновления все еще существовали.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы