完成上面的设置,就是把download链接改成中国-阿里云的。然后:
1.更新软件源库信息
$ sudo apt-get update
2.安装一些包
$ sudo apt-get install
apt-transport-https
ca-certificates
curl
software-properties-common
#只要上面的下载链接有改成阿里云的,在这一步就不会有Package curl is not available, but is referred to by another package.
This may mean that the package is … … 的问题
3.添加软件仓库-阿里云仓库
$ curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository
“deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu
$(lsb_release -cs)
stable”
#