如何在Ubuntu 17.10 Artful Aardvark上安装Docker

前端之家收集整理的这篇文章主要介绍了如何在Ubuntu 17.10 Artful Aardvark上安装Docker前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我按照如何 @L_404_0@的说明.在我设置存储库,然后运行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

以admin身份打开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)的发布文件.

原文链接:https://www.f2er.com/ubuntu/347420.html

猜你在找的Ubuntu相关文章