本文介绍了我无法安装Docker,因为containerd.io没有安装候选对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Kubuntu 19.10上安装Docker。

I tried to install Docker on Kubuntu 19.10.

我使用以下步骤进行安装:

I used these steps to install: https://docs.docker.com/install/linux/docker-ce/ubuntu/

在添加存储库后的步骤2中和密钥,我收到了此消息

During step 2, after added repository and key I got this message

Package containerd.io 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 'containerd.io' has no installation candidate


推荐答案

我猜这不是最干净的方法,但是我遇到了与您和我相同的问题,我更改了:

It's not the cleanest way to do it I guess, but I had the same problem as you and I changed:

$ sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

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

因为

$(lsb_release -cs)

返回 eoan(最新的ubuntu版本的名称,当前为19.10),这似乎会引起问题。
用 bionic(ubuntu 18.10)代替它对我来说非常有效,四个月后我仍然没有问题。

returns "eoan" (the name of the latest ubuntu version, currently 19.10) and it seems to cause problems.Replacing this with "bionic" (ubuntu 18.10) worked perfectly for me, and I still have no problems 4 months later.

别忘了打开 /etc/apt/sources.list并注释掉/删除该行:

Don't forget to open "/etc/apt/sources.list" and comment-out/delete the line:

deb-src [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable

以避免冲突。
(您将其与在此过程中输入的第一个命令相加。)

to avoid conflicts. (You added this with the first command you entered in this process.)

这篇关于我无法安装Docker,因为containerd.io没有安装候选对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 06:06