ubuntu 18.10 cosmic 版本出现 apt 更新错误

Sej*_*dra 28 linux ubuntu ubuntu-18.10

问题:错误 404 代码状态http://archive.ubuntu.com/ubuntu cosmic InRelease

Ubuntu 18.10 宇宙生命终结

从昨天开始,apt install 命令不再有效,我尝试升级我的系统版本,但我遇到了与 apt-get update 命令相同的错误

$ apt update
Ign:1 http://archive.ubuntu.com/ubuntu cosmic InRelease
Ign:2 http://security.ubuntu.com/ubuntu cosmic-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Err:5 http://security.ubuntu.com/ubuntu cosmic-security Release
  404  Not Found [IP: 91.189.88.173 80]
Err:6 http://archive.ubuntu.com/ubuntu cosmic Release
  404  Not Found [IP: 91.189.88.31 80]
Err:7 http://archive.ubuntu.com/ubuntu cosmic-updates Release
  404  Not Found [IP: 91.189.88.31 80]
Err:8 http://archive.ubuntu.com/ubuntu cosmic-backports Release
  404  Not Found [IP: 91.189.88.31 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu cosmic-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.
E: The repository 'http://archive.ubuntu.com/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.ubuntu.com/ubuntu cosmic-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://archive.ubuntu.com/ubuntu cosmic-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.
Run Code Online (Sandbox Code Playgroud)

小智 34

这些存储库仍然可以在http://old-releases.ubuntu.com/ubuntu 上找到。您可以在/etc/apt/sources.list中进行更改,替换出现的所有http://archive.ubuntu.comhttp://old-releases.ubuntu.com

之后, apt-get upgrade 将再次起作用。

有关处理不再受支持的版本的更多信息,请访问https://help.ubuntu.com/community/EOLUpgrades

  • 另外:如果您有 http://security.ubuntu.com/ubuntu 出现,请禁用它们,因为它们也不起作用。+1为答案。 (4认同)
  • 也适用于用它替换 us.archive.ubuntu.com,谢谢!我几乎不敢相信 ubuntu 要求这样做,这对非专业用户来说是一个巨大的困惑...... (2认同)

Sej*_*dra 8

最后我强制降级以更改 source.list ......我跟着这篇文章:https : //linuxconfig.org/how-to-downgrade-ubuntu-linux-system-to-its-previous-version