我正在使用 Ubuntu 16.10,最近按照 此处 的说明使用 Xenial 构建安装了 Docker (v1.12.4)。我在创建容器、确保它们自动重启等方面没有遇到任何问题。
但是,现在每次运行 apt-get update 我都会收到以下错误消息:
W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-xenial/main/binary-amd64/Packages
E: Some index files failed to download. They have been ignored, or old ones used instead.
我已尝试按照 此处 找到的建议来解决此问题,但似乎无法解决此问题。
有没有人遇到过这个并修复它?如果是这样,需要什么来解决这个问题?
原文由 Daniel Eagle 发布,翻译遵循 CC BY-SA 4.0 许可协议
在 Linux Mint 上,官方说明对我不起作用。我必须进入
/etc/apt/sources.list.d/additional-repositories.list
并将serena
--- 更改为xenial
以反映我的 Ubuntu 代号。根据您的 Debian 变体、版本和原始安装方法,您可能需要改为修改/etc/apt/sources.list.d/docker.list
。您通常可以通过运行几个不同的命令之一来找到适当的代号。在以下示例中,
focal
是代号: