如何在Ubuntu 17.10 Artful Aardvark上安装Docker

Wes*_*sam 8 ubuntu install apt-get docker gpg-signature

我按照如何为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.
Run Code Online (Sandbox Code Playgroud)

我正在使用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
Run Code Online (Sandbox Code Playgroud)

Wes*_*sam 11

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

sudo emacs /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)

找到这两行:

deb [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu artful stable
Run Code Online (Sandbox Code Playgroud)

和字改变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
Run Code Online (Sandbox Code Playgroud)

问题已修复,现在安装Docker CE:

sudo apt-get update && sudo apt-get install docker-ce
Run Code Online (Sandbox Code Playgroud)

说明

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