$ lsb_release -a
LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
$ sudo apt-get update
Reading package lists... Done
E: The repository 'http://archive.ubuntu.com/ubuntu quantal Release' does not have 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://archive.ubuntu.com/ubuntu quantal-updates Release' does not have 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://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu cosmic Release' does not have 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://archive.canonical.com/ubuntu quantal 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.
W: GPG error: http://extras.ubuntu.com/ubuntu quantal Release: The following signatures were invalid: C47415DFF48C09645B78609416126D3A3E5C1192
E: The repository 'http://extras.ubuntu.com/ubuntu quantal Release' is not signed.
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.
Как мне решить эти ошибки?
У вас есть смесь вопросов здесь.
Во-первых, у вас еще много ссылок на quantal
. Quantal был End of Life целую вечность и больше не поддерживается. Вам нужно будет найти, где эти строки находятся в вашем файле /etc/apt/sources.list
и в файлах /etc/apt/sources.list.d/*.list
, и удалить эти записи.
Во-вторых, у вас есть некоторые PPA, относящиеся к Космическому. Эти PPA, скорее всего, не поддерживают Cosmic, и поэтому вы получаете 404-е. также удалите эти записи.
Репозитории все еще доступны на http://old-releases.ubuntu.com/ubuntu. Вы можете изменить их в /etc/apt/sources.list, заменив все вхождения http://archive.ubuntu.com на http://old-releases.ubuntu.com. ].
После этого обновление apt-get снова заработает.
Дополнительную информацию о работе с более неподдерживаемыми версиями можно найти на странице https://help.ubuntu.com/community/EOLUpgrades