[英]How to install Docker on Ubuntu 17.10 Artful Aardvark
我按照如何為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
以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
問題是,在撰寫本文時, 下載Docker上沒有 Ubuntu 17.10 Artful Aardvark的發布文件。 因此,您必須使用Ubuntu 17.04(zesty)的發布文件。
現在, edge
版本支持Ubuntu 17.10,因此您可以使用
deb [arch=amd64] https://download.docker.com/linux/ubuntu artful edge
同樣。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.