ubuntu x64 安裝docker-ce

ubuntu x64 在安裝docker-ce的過程當中,參考了官方的安裝文檔https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1html

前面執行的比較順利,但在進行
$sudo apt-get install docker-ce
一步操做時,出現了以下錯誤:linux

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate

提示說docker-ce包沒有找到。docker

解決方法

手動加入源ubuntu

$ cd /etc/apt/sources.list.d
$ sudo vi docker.list

加入如下信息:ui

deb https://download.docker.com/linux/ubuntu zesty edge

更新apt-get,並進行安裝code

$sudo apt update
$sudo apt install docker-ce

參考:orm

http://www.cnblogs.com/zhaiji...
相關文章
相關標籤/搜索