Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't install Docker because containerd.io has no installation candidate

Tags:

docker

ubuntu

I tried to install Docker on Kubuntu 19.10.

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

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
like image 348
Aaron Nusselbaum Avatar asked Feb 18 '20 06:02

Aaron Nusselbaum


People also ask

How do I download docker io?

Install from a packageGo to https://download.docker.com/linux/ubuntu/dists/ , choose your Ubuntu version, then browse to pool/stable/ , choose amd64 , armhf , arm64 , or s390x , and download the .deb file for the Docker Engine version you want to install.

What is docker io?

docker-io is the deb package name used by Ubuntu distribution docker-engine is the deb package name from the official Docker Ubuntu distribution. Probably you want docker-engine because the Ubuntu one is too old and buggy to be used. As of today Ubuntu has 1.6. 2 and Docker registry has 1.12.

What is docker CE docker CE CLI Containerd io?

containerd is one implementation that follows the OCI. It uses kernel features to provide a runtime environment for containers. dockerd talks to containerd and also provides more features to Docker users in the form of the easy commands like docker build , docker network , docker volume and docker inspect .


Video Answer


2 Answers

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"

to

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

because

$(lsb_release -cs)

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.

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.)

like image 95
vavalm Avatar answered Oct 12 '22 23:10

vavalm


Edit the file : /etc/apt/sources.list

Look for repo entry :

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

Changing it to:

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

resolved the issue for me

like image 37
vijay Avatar answered Oct 12 '22 23:10

vijay