Error installing Docker
Ubuntu 22.04 LTS
Following “Install Docker Engine on Ubuntu” While installing Docker .deb package this error come up:
“Docker error while installation "Unable to install docker-desktop : the following packages have unmet dependencies".
How to correct this.
Thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
Did you follow this:
https:/
Revision history for this message
![]() |
#2 |
Yes the package is from the same place.
Install Docker Engine on Ubuntu → installation steps. → Docker Desktop for Linux. → Supported platforms → DEB package . These .deb is what I tried to install.
Revision history for this message
![]() |
#3 |
Why don't you just try following https:/
If you cannot follow that, what is the full error message that you receive for the other installation method?
Revision history for this message
![]() |
#4 |
In the repository way there is a error on line five and if carry on with other commands it seems
they do nothing.
luis@l-
[sudo] password for luis:
Hit:1 http://
Ign:2 https:/
Hit:3 https:/
Hit:4 https:/
Err:5 https:/
Get:6 https:/
Hit:7 https:/
Get:8 https:/
Get:9 https:/
Get:10 https:/
Get:11 https:/
Get:12 https:/
Get:13 https:/
Get:14 https:/
Hit:15 http://
Get:16 http://
0% [16 InRelease 71.9 kB/119 kB 61%] 600% [WGet:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Reading package lists... Done
E: The repository 'https:/
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
luis@l-
The following commands looks to me they do nothing and on the end there is sudo apt-get update
which shows there are no reference to Dock.
luis@l-
Hit:1 https:/
Hit:2 http://
Hit:3 https:/
Hit:4 https:/
Hit:5 https:/
Hit:6 https:/
Hit:7 https:/
Hit:8 http://
Hit:9 http://
Get:10 http://
Hit:11 https:/
Hit:12 http://
Fetched 109 kB in 4s (30.1 kB/s)
Reading package lists... Done
luis@l-
Checking if Docker installation was successful.
luis@l-
[sudo] password for luis:
Failed to start docker.service: Unit docker.service not found.
luis@l-
sudo: docker: command not found
luis@l-
Revision history for this message
![]() |
#5 |
https:/
The repo is there. Just needs the line in the sources file tweaking
Revision history for this message
![]() |
#6 |
It seems that something went wrong when adding the reference to the docker repository.
What output do you receive for the following commands:
uname -a
lsb_release -crid
grep -i docker /etc/apt/
cat -n /etc/apt/
. /etc/os-release && echo "$VERSION_CODENAME"
Revision history for this message
![]() |
#7 |
luis@l-
Linux l-System-luisj 6.5.0-17-generic #17~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 16 14:32:32 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
luis@l-
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
luis@l-
/etc/apt/
luis@l-
1 deb [arch=amd64 signed-
luis@l-
bash: /etc/os-release: Permission denied
luis@l-
[sudo] password for luis:
sudo: /etc/os-release: command not found
luis@l-
Revision history for this message
![]() |
#8 |
1. You missed that there is a dot at the beginning of the last command.
2. What output do you now receive for the command
sudo apt update
Revision history for this message
![]() |
#9 |
luis@l-
jammy
luis@l-
Revision history for this message
![]() |
#10 |
Repeating:
What output do you now receive for the command
sudo apt update
Revision history for this message
![]() |
#11 |
Apologize for the mistake
luis@l-
[sudo] password for luis:
Hit:1 http://
Hit:2 http://
Hit:3 https:/
Get:4 http://
Hit:5 http://
Hit:6 http://
Hit:7 https:/
Hit:8 https:/
Hit:9 https:/
Hit:10 https:/
Get:11 https:/
Hit:12 https:/
Get:13 https:/
Fetched 167 kB in 3s (55.4 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
18 packages can be upgraded. Run 'apt list --upgradable' to see them.
luis@l-
Revision history for this message
![]() |
#12 |
Now it looks correct ("Hit:3 https:/
What happens now, when you do the next step and try installing the docker packages:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-
and then test your installation by running the hello-world image:
sudo docker run hello-world
Revision history for this message
![]() |
#13 |
Running the hello-world I hope this is correct.
luis@l-
Unable to find image 'hello-
latest: Pulling from library/hello-world
c1ec31eb5944: Pull complete
Digest: sha256:
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https:/
For more examples and ideas, visit:
https:/
luis@l-
Revision history for this message
![]() |
#14 |
Looks perfect. The docker software is installed and it is working.
Is there anything else that you need? If not, then please mark the question document as "solved".
Revision history for this message
![]() |
#15 |
Thanks Manfred Hampl, that solved my question.