Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
43
rated 0 times [  43] [ 0]  / answers: 1 / hits: 45940  / 2 Years ago, tue, may 10, 2022, 12:01:47

I am trying to install docker-desktop from here. I downloaded the .deb package with:


sudo dpkg -i docker-desktop-4.8.1-amd64.deb

but I got a couple of missing dependencies problems:


(Reading database ... 422535 files and directories currently installed.)
Preparing to unpack docker-desktop-4.8.1-amd64.deb ...
Unpacking docker-desktop (4.8.1-78998) over (4.8.1-78998) ...
dpkg: dependency problems prevent configuration of docker-desktop:
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) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Errors were encountered while processing:
docker-desktop


I Have tried to install the missing dependencies using:


sudo apt-get -f install

But it still returns the same error message as above.


More From » apt

 Answers
6

You can fix this by running the following commands:



  1. Update and install dependencies


    sudo apt-get update
    sudo apt-get install ca-certificates curl gnupg lsb-release


  2. Set up the Docker repository


    sudo mkdir -p /etc/apt/keyrings
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null


  3. Install the docker engine


    sudo apt update
    sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin


  4. Install Docker Desktop (You must download the deb package first from step 2 from the following document: Install Docker Dekstop)


    sudo apt-get install ./docker-desktop-<version>-<arch>.deb



More info here:



[#490] Tuesday, May 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
Tue, Nov 30, 21, 05:52, 2 Years ago
;