Installing Docker Desktop on Pop_OS! 22.04

When trying to install Docker Desktop on Linux the other day using the .deb file and Eddy, I got this generic error code 100 (Sorry, I forgot to take a screenshot). And I could not figure out what it was.

This is my first real time at attempting to use a Linux distro as a workstation, and just assumed that there was no way I could get this to work for Pop!_OS. I then proceeded to install virt-manager.

However, today I tried again and attempted to install it using the terminal, which yielded more helpful results. I got this dependency error…

docker-desktop : Depends: docker-ce-cli but it is not installable

Now, you don’t have to install docker-ce-cli, because the docker-desktop package should install it for you. But you do have to add the Docker package repository to your system. Afterwards, the .deb file installs as expected.

First install the Docker GPG key, following Docker’s guide. Notice that apt-key is depreciated and no longer recommended.

sudo mkdir -p /etc/apt/keyrings
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgCode language: JavaScript (javascript)

Then add the repository.

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullCode language: PHP (php)

Finally, update the package lists.

sudo apt update

Now, you should be able to install the Docker Desktop .deb package without issues.

Install on Ubuntu | Docker Documentation




3 responses to “Installing Docker Desktop on Pop_OS! 22.04”

  1. Andy Avatar

    After sudo apt update I got these error messages:

    E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (URI)
    E:The list of sources could not be read.

    I just copied and pasted the commands that you gave. Any clue what’s going on? I have the latest version of Pop!_OS and I updated it before trying to get docker.

    1. Brennan Avatar

      Hi Andy, sorry for the late reply. Hopefully you were able to figure this out. Turns out I had accidentally entered a newline in the middle of the repo string and this is what was causing the malformed source. This page has been fixed.

  2. Matheus Cardoso Avatar
    Matheus Cardoso

    Thank you! Worked perfectly.

Leave a Reply

Your email address will not be published. Required fields are marked *