仿生默认存储库没有发布文件 - sudo apt-get update 不起作用

Zol*_*ano 7 package-management apt ppa 18.04

我遇到了 apt 问题:sudo apt-get update无法在我的 Ubuntu 18.04 桌面上成功完成。

首先,我想说明主题Xenial 存储库没有发布文件并没有解决我的问题,Ubuntu 存储库也没有发布文件或任何其他文件

我的发行版是全新安装的 Ubuntu 18.04.1 Bionic。

问题是,sudo apt-get update我收到以下错误消息:

E: The repository 'http://security.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.
Run Code Online (Sandbox Code Playgroud)

我在我的 sources.list 的每个 REPOSITORY 上收到这些消息,这是 Ubuntu 18.04 的默认消息。

这是我的 /etc/apt/sources.list 文件的内容(我从 Ubuntu 官方文档 git 它)。我删除了注释行以提高可读性。

 # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
Run Code Online (Sandbox Code Playgroud)

我通过阅读有关该错误消息的帖子了解到,它通常来自该文件中存储库的错误配置(例如,要求尚未在仿生存储库上发布的包的仿生版本)。

问题是:这些是默认存储库。当我检查给定 url 中的dist文件夹时,我可以看到配置中指定的发行版:bionic、bionic-updates 和 bionic-security。

所以,总结一下:

  • 我只配置了 Ubuntu Bionic 18.04 的官方默认存储库
  • 他们每个人都得到相同的错误(没有发布文件)
  • 我发现的任何提示都是关于一个特定的存储库,或者关于完整的系统升级,这不是我的情况

如果有人有想法、提示甚至更好的解决方案sudo apt-get update,我将不胜感激!

谢谢