由于更新而无法升级,但因不受支持而无法更新

由于更新而无法升级,但因不受支持而无法更新

我想将我的 18.04.6 LTS 升级到下一个 LTS,但它不允许我这样做,因为它认为我应该先进行一些更新。但是,这些更新不起作用,并出现错误“请检查您的互联网连接”,我想这是因为它们现在仅作为扩展支持提供。

我尝试将 /etc/apt/sources.list 更改为使用 old-releases.ubuntu.com,但似乎没有帮助。

# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty 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 bionic main restricted
deb-src http://old-releases.ubuntu.com/ubuntu bionic main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu bionic-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu bionic-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 bionic universe
deb-src http://old-releases.ubuntu.com/ubuntu bionic universe
deb http://old-releases.ubuntu.com/ubuntu bionic-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu bionic-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 bionic multiverse
deb-src http://old-releases.ubuntu.com/ubuntu bionic multiverse
deb http://old-releases.ubuntu.com/ubuntu bionic-updates multiverse
deb-src http://old-releases.ubuntu.com/ubuntu bionic-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
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://old-releases.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
deb-src http://old-releases.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu bionic-security main restricted
deb http://old-releases.ubuntu.com/ubuntu bionic-security universe
deb-src http://old-releases.ubuntu.com/ubuntu bionic-security universe
deb http://old-releases.ubuntu.com/ubuntu bionic-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu bionic-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://old-releases.ubuntu.com/ubuntu bionic partner
deb-src http://old-releases.ubuntu.com/ubuntu bionic partner`
$ sudo apt update
Ign:1 http://old-releases.ubuntu.com/ubuntu bionic InRelease
Ign:2 http://old-releases.ubuntu.com/ubuntu bionic-updates InRelease
Ign:3 http://old-releases.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 http://old-releases.ubuntu.com/ubuntu bionic-security InRelease
Err:5 http://old-releases.ubuntu.com/ubuntu bionic Release
  404  Not Found [IP: 185.125.190.37 80]
Err:6 http://old-releases.ubuntu.com/ubuntu bionic-updates Release
  404  Not Found [IP: 185.125.190.37 80]
Err:7 http://old-releases.ubuntu.com/ubuntu bionic-backports Release
  404  Not Found [IP: 185.125.190.37 80]
Hit:8 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security InRelease
Err:9 http://old-releases.ubuntu.com/ubuntu bionic-security Release     
  404  Not Found [IP: 185.125.190.37 80]
Hit:10 https://esm.ubuntu.com/infra/ubuntu bionic-infra-updates InRelease
Reading package lists... Done                     
E: The repository 'http://old-releases.ubuntu.com/ubuntu bionic 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://old-releases.ubuntu.com/ubuntu bionic-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://old-releases.ubuntu.com/ubuntu bionic-backports 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://old-releases.ubuntu.com/ubuntu bionic-security 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.

答案1

好的,所以我猜我将 /etc/apt/source.list 更改为 old-releases.ubuntu.com 是错误的,而且它没有帮助,但是在 GUI 中取消勾选其中底部的 4 或 5 个突然解锁了升级。

有人想知道,如果从一开始就取消勾选所有来源是否也能起到同样的作用,但遗憾的是我无法再测试这一点了。

升级似乎进展顺利。

相关内容