Cannot install docker on Ubuntu 20.04 LTS

Bravo2bad

I'm new using docker and linux and I tried to install docker on my new Ubuntu 20.04 LTS.

I was following these instructions: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04

When I arrived at this command: sudo apt install docker-ce, I got this error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
docker-ce is already the newest version (5:19.03.9~3-0~ubuntu-focal).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up docker-ce (5:19.03.9~3-0~ubuntu-focal) ...
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
     Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sat 2020-05-23 22:00:38 CES
T; 8ms ago
TriggeredBy: ● docker.socket
       Docs: https://docs.docker.com
    Process: 15674 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containe
rd.sock (code=exited, status=1/FAILURE)
   Main PID: 15674 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
 installed docker-ce package post-installation script subprocess returned error exit status 
1
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

Can someone help me to resolve this ?

For learning purposes, I would like to know what is going wrong and why. But isn't mandatory as long as this works again.

Thank you very much.

Bravo2bad

I tried again after two weeks and it now works perfectly.

I don't really know why (I would like to) but I migrated to Ubuntu 20.04 (from 18.04) just a one month after its release.

Maybe too soon for the docker installation packages to be ready for the Focal distribution.

Now that they are, it probably was solved after I did a sudo apt update (which I do frequently).

But again, this is what I think. I don't know if this is the correct answer. However I will mark this post as solved, but feel free to share your answer if you know what really happened.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I install Muvizu on Ubuntu 14,04 LTS?

From Dev

Cannot install pip on Ubuntu 18.04 LTS

From Dev

Cannot install xampp in ubuntu 14.04 LTS

From Dev

Cannot install WGET in Ubuntu 12.04.1 lts

From Dev

I cannot install Polybar on Ubuntu 16.04.3 LTS

From Dev

Cannot install Git on Ubuntu 16.04 LTS

From Dev

Cannot install Ubuntu 20.04 LTS to an external HDD

From Dev

install docker on Ubuntu Desktop 14.04 LTS

From Dev

Cannot install Docker on Ubuntu 17.10

From Dev

Cannot install Ubuntu 16.04 LTS on Asus ROG Laptop

From Dev

Cannot install Ubuntu 16.04 LTS on Asus ROG Laptop

From Dev

Cannot install Virtual box any version on Ubuntu 14.04 LTS

From Dev

I cannot install Chromium or Chrome on Ubuntu 16.04 LTS

From Dev

How do I install Docker on Ubuntu 16.04 LTS?

From Dev

Cant install nvidia-docker2 on bionic Ubuntu 18.04 LTS

From Java

Cannot install packages inside docker Ubuntu image

From Dev

Cannot install Docker on Ubuntu Snappy on Raspberry Pi

From Dev

Dual boot ubuntu 14 .04LTS

From Dev

Docker on Ubuntu 16.04 LTS

From Dev

After upgrading a wsl2 instance to Ubuntu 20 LTS, packages like build-essential cannot be installed

From Dev

I cannot install Ubuntu Server 12.04 LTS because it cannot mount the CD drive

From Dev

Cannot update ubuntu 16.04 LTS to 18.04 LTS

From Dev

Cannot update ubuntu 16.04 LTS to 18.04 LTS

From Dev

Install gcc on Ubuntu 12.04 LTS

From Dev

Install ffmpeg in Ubuntu 12.04 LTS

From Dev

How to install ubuntu 12.04 LTS?

From Dev

Install ffmpeg in Ubuntu 12.04 LTS

From Dev

Install gcc on Ubuntu 12.04 LTS

From Dev

How to install ubuntu 12.04 LTS?