ubuntu x64 在安装docker-ce的过程中,参考了官方的安装文档https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1

前面执行的比较顺利,但在进行
$sudo apt-get install docker-ce
一步操作时,出现了如下错误:

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包没有找到。

解决方法

手动加入源

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

加入以下信息:

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

更新apt-get,并进行安装

$sudo apt update
$sudo apt install docker-ce

参考:

http://www.cnblogs.com/zhaiji...

潘杰
3.1k 声望238 粉丝