2017-10-29 28 views
7

Tôi đã làm theo hướng dẫn về cách install Docker CE for Ubuntu. Sau khi tôi thiết lập các kho lưu trữ, và sau đó chạy sudo apt-get update, tôi đã nhận lỗi sau:Cách cài đặt Docker trên Ubuntu 17.10 Artful Aardvark

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. 

Tôi đang sử dụng Ubuntu 17.10 (Artful Aardvark)

sau Các phím Docker GPG đã được thêm vào các phím GPG repo của tôi nộp /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 

Trả lời

9

giải pháp

Mở tập tin của bạn như sources.list admin.

sudo emacs /etc/apt/sources.list 

Tìm hai dòng sau:

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

Và thay đổi từ artful-zesty trong cả hai dòng. Sau khi thay đổi, họ sẽ giống như thế:

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

Vấn đề cố định, bây giờ cài đặt Docker CE với:

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

Giải thích

vấn đề Th là khi viết bài này, một tập tin phát hành cho Ubuntu 17.10 Artful Aardvark là not available on Download Docker. Do đó, bạn phải sử dụng tệp phát hành cho Ubuntu 17.04 (zesty) để thay thế.

2

Ubuntu 17.10 hiện đang được hỗ trợ trong phiên bản edge, vì vậy bạn có thể sử dụng

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

là tốt.

Các vấn đề liên quan