Docker Desktop installation Error: Unsupported file ./docker-desktop-amd64.deb given on commandline

Hello all,

I am trying to get docker desktop installed, but I get this error:

E: Unsupported file ./docker-desktop-amd64.deb given on commandline

Anyone know where to go from here?

just double click on the deb or the command is

dpkg -i docker-desktop-amd64.deb
1 Like

OK, I did that and got this:

dpkg: error: cannot access archive 'docker-desktop-amd64.deb': No such file or directory

you need to open terminal in the folder you had downloaded the deb file

1 Like

You properly have downloaded into your Downloads folder. You need to switch directory in the terminal.

cd Downloads
sudo dpkg -i docker-desktop-amd64.deb
2 Likes

Hi Nourpon and Storm, many thanks for your help!

You are both correct, the issue was with the file download step and the apt repository set up.

So here's the fix:

Set up Docker's apt repository.

Add Docker's official GPG key:

sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

Add the repository to Apt sources:

sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: Index of linux/ubuntu/
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

sudo apt update

Once you do this, you can proceed to installing it, and it works :grinning_face:

This is not really a fix, it's just another way to install Docker, the deb file you downloaded does exactly the same in one command if you are in the right folder of the downloaded file in termianl

sudo dpkg -i docker-desktop-amd64.deb