E:存储库“http://old-releases.ubuntu.com/ubuntu bionic-old-releases Release”没有发布文件

Emi*_*ano 2 apt software-sources

当我使用时sudo apt-get update && sudo apt-get upgrade,出现以下错误。

E: The repository 'http://old-releases.ubuntu.com/ubuntu bionic-old-releases 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)

我尝试了一些解决方案,但似乎它们不适用于我的系统。我不知道如何更新/etc/apt/sources.list

gui*_*erc 8

Ubuntu 18.04 LTS(2018 年至 4 月的仿生版,即 18.04)不是旧版本,即。它目前受支持而不是 EOL(old-releases适用于 EOL 版本)。

Ubuntu 18.04 LTS 有 5 年的标准支持,因此支持到 2023 年 4 月,然后转移到 ESM 或扩展支持,然后最终将其存储库从archive.ubuntu.com您要查找的位置移至文件所在的位置 -old-releases.ubuntu.com

您需要更改old-releases.ubuntu.comarchive.ubuntu.com在你那项/etc/apt/sources.list文件