I’m just curious why such a powerful and popular tool never got this right.
So many times i had to install docker on a fresh install ubuntu/debian and almost never the official guide works right.
Ans searching for the solution, i realize that so many other people is also trying to avoid hustle by removing/purging everything and trying it again.
I take that ubuntu is the most popular linux distro. I just got the latest LTS and i tried following the installation guide. Guess what, i ended up spending hours not being able to install it.
Tried first docker-desktop, doesn’t work.
dpkg -i docker-desktop-4.19.0-amd64.deb
(Reading database ... 228825 files and directories currently installed.)
Preparing to unpack docker-desktop-4.19.0-amd64.deb ...
Unpacking docker-desktop (4.19.0-106363) over (4.19.0-106363) ...
dpkg: dependency problems prevent configuration of docker-desktop:
docker-desktop depends on qemu-system-x86 (>= 5.2.0); however:
Package qemu-system-x86 is not installed.
docker-desktop depends on docker-ce-cli; however:
Package docker-ce-cli is not installed.
docker-desktop depends on pass; however:
Package pass is not installed.
dpkg: error processing package docker-desktop (--install):
dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Errors were encountered while processing:
docker-desktop
I purged/deleted every trace of it and tied installing through the official repo and guess what, it doesn’t work.
I tried this
https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
The repo it adds simply fails with:
The following additional packages will be installed:
docker-ce-cli
The following NEW packages will be installed:
docker-ce-cli
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
41 not fully installed or removed.
Need to get 0 B/13.3 MB of archives.
After this operation, 36.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 229311 files and directories currently installed.)
Preparing to unpack .../docker-ce-cli_5%3a24.0.1-1~ubuntu.22.04~jammy_amd64.deb ...
Unpacking docker-ce-cli (5:24.0.1-1~ubuntu.22.04~jammy) ...
dpkg: error processing archive /var/cache/apt/archives/docker-ce-cli_5%3a24.0.1-1~ubuntu.22.04~jammy_amd64.deb (--unpack):
trying to overwrite '/usr/bin/docker', which is also in package podman-docker 3.4.4+ds1-1ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/docker-ce-cli_5%3a24.0.1-1~ubuntu.22.04~jammy_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also, i can’t even count on how many stupid issues i had when i was trying to install it on ARM.
Why can’t you make it right guys?
Why do i have to become expert in knowing every single dependency, even when trying to install in the most common environment as LTS Ubuntu is?