8

我按照如何为 Ubuntu 安装 Docker CE的说明进行操作。在我设置存储库,然后运行sudo apt-get update后,我收到以下错误:

Err:12 https://download.docker.com/linux/ubuntu artful Release                                             
404  Not Found [IP: 2600:9000:201d:5000:3:db06:4200:93a1 443]
...
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu artful 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.

我正在使用 Ubuntu 17.10 (Artful Aardvark)

以下 Docker GPG 密钥已添加到我的 repo GPG 密钥文件中/etc/apt/sources.list

deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable
4

2 回答 2

11

解决方案

sources.list以管理员身份打开您的文件。

sudo emacs /etc/apt/sources.list

找到这两行:

deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable

并在两行中​​将单词更改为artfulzesty更改后,它们应如下所示:

deb [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu zesty stable

问题已解决,现在安装 Docker CE:

sudo apt-get update && sudo apt-get install docker-ce

解释

问题是,在撰写本文时,Download Docker 上没有Ubuntu 17.10 Artful Aardvark 的发布文件。因此,您必须改用 Ubuntu 17.04 (zesty) 的发布文件。

于 2017-10-29T02:24:33.083 回答
2

该版本现在支持 Ubuntu 17.10 edge,因此您可以使用

deb [arch=amd64] https://download.docker.com/linux/ubuntu artful edge

也是。

于 2017-12-11T12:27:01.710 回答