无法在 ubuntu disco 发行版上为 docker 添加 apt-repository
Unable to add-apt-repository for docker on ubuntu disco distribution
尝试在 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 store? which contain the stable version
Snap 可以从 Snap Store 中发现和安装,Snap Store 是一个拥有数百万用户的应用商店。
启用快照
If you’re running Ubuntu 16.04 LTS (Xenial Xerus) or later, including
Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 18.10 (Cosmic Cuttlefish) and
Ubuntu 19.04 (Disco Dingo), you don’t need to do anything. Snap is
already installed and ready to go.
sudo apt update
sudo apt install snapd # (only if not snap not installed)
sudo snap install docker
尝试在 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 store? which contain the stable version
Snap 可以从 Snap Store 中发现和安装,Snap Store 是一个拥有数百万用户的应用商店。
启用快照
If you’re running Ubuntu 16.04 LTS (Xenial Xerus) or later, including Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 18.10 (Cosmic Cuttlefish) and Ubuntu 19.04 (Disco Dingo), you don’t need to do anything. Snap is already installed and ready to go.
sudo apt update
sudo apt install snapd # (only if not snap not installed)
sudo snap install docker