如何在Ubuntu 17.10 Artful Aardvark上安装Docker

时间:2017-10-29 02:24:33

标签: ubuntu docker install apt-get gpg-signature

我按照如何install Docker CE for Ubuntu的说明进行操作。在我设置存储库,然后运行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

2 个答案:

答案 0 :(得分: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

并在两行中​​将artful更改为zesty。改变之后,他们应该看起来像:

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

解释

问题在于,在撰写本文时,Ubuntu 17.10 Artful Aardvark的发布文件为not available on Download Docker。因此,您必须使用Ubuntu 17.04(zesty)的发布文件。

答案 1 :(得分:2)

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

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