无法在 ubuntu disco 发行版上为 docker 添加 apt-repository



尝试在 ubuntu 上添加 docker 存储库,但我收到以下错误:

Ign:1 https://download.docker.com/linux/ubuntu disco InRelease
Hit:2 http://archive.canonical.com/ubuntu disco InRelease
Hit:3 http://archive.ubuntu.com/ubuntu disco InRelease                 
Get:4 http://archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu disco-backports InRelease [88.8 kB]        
Get:6 http://archive.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]         
Err:7 https://download.docker.com/linux/ubuntu disco Release                                                                                                                           
Could not wait for server fd - select (11: Resource temporarily unavailable) [IP: 10.166.17.46 3128]
Reading package lists... Done                    
E: The repository 'https://download.docker.com/linux/ubuntu disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.

这是我尝试过的命令:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable"

我也尝试使用 ubuntu 18.04,但得到同样的错误。

您需要按照 docker 网站的所有步骤进行存储库设置 https://docs.docker.com/install/linux/docker-ce/ubuntu/您的命令只是第 4 个。作为替代方案,您可以按照 docker 网站上描述的手动安装路径进行操作。 下载 deb 文件,然后sudo apt install ./*.deb放入放置下载的 deb 文件的文件夹中。

为什么不使用快照存储? 包含稳定版本

Snap 可以从 Snap Store发现和安装,Snap Store 是一个拥有数百万受众的应用商店。

启用贴靠

如果您运行的是 Ubuntu 16.04 LTS(Xenial Xerus(或更高版本,包括 Ubuntu 18.04 LTS(仿生海狸(,Ubuntu 18.10(宇宙墨鱼(和 Ubuntu 19.04(Disco Dingo(,你不需要做任何事情。捕捉是 已安装并准备就绪。

sudo apt update
sudo apt install snapd # (only if not snap not installed)
sudo snap install docker

最新更新