赞
踩
使用Ubuntu首次安装Docker时,需要使用以下指令设置Docker的稳定版仓库,以便之后可以通过仓库安装和更新Docker
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
但是在设置过程中遇到了以下错误:
Err:5 https://download.docker.com/linux/ubuntu focal Release
404 Not Found [IP: 13.249.173.43 443]
原以为是仓库问题,换了几个国内IP同样报错,继续安装Docker则会出现以下错误:
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
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
最后通过以下方式成功解决:
vim /etc/apt/sources.list
打开sources.list文件deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。