Home > Blockchain >  How to install docker correctly in ubuntu 22.04 is it possible at this time?
How to install docker correctly in ubuntu 22.04 is it possible at this time?

Time:05-30

I am following the docker installation tutorial in ubuntu: https://docs.docker.com/desktop/linux/install/ubuntu/

And when I try this step: sudo apt install ./docker-desktop-4.8.1-amd64.deb I am getting the next error: E: Unsupported file ./docker-desktop-4.8.1-amd64.deb given on commandline

Not sure what that means or if I am missing something.

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

I also tried with:

curl https://desktop-stage.docker.com/linux/main/amd64/74134/docker-desktop.deb --output docker-desktop.deb
sudo apt install ./docker-desktop.deb

And got the error:

E: Invalid archive signature
E: Internal error, could not locate member control.tar{.zst,.lz4,.gz,.xz,.bz2,.lzma,}
E: Could not read meta data from /home/rodolfo/docker-desktop.deb
E: The package lists or status file could not be parsed or opened.

Any ideas?

CodePudding user response:

Try moving the DEB file to HOME folder or Change the directory in terminal to the folder where the file is downloaded

CodePudding user response:

According to official documentation, and the steps I followed to install docker in Ubuntu 22.04 LTS

  1. Visit the following site https://docs.docker.com/engine/install/ubuntu/
  2. Scroll down until you find the Install using the convenience script section.
  3. You will find the following commands:

$ curl -fsSL https://get.docker.com -o get-docker.sh

$ DRY_RUN=1 sh ./get-docker.sh

  • the first command will install a shell script with the all needed commands and the other will run this shell script.
  1. You can test the installation by running these commands

$ sudo docker --version

$ sudo docker info

  1. If it looks fine you, you now have docker in your machine.
  2. Optional step is to download docker desktop for Ubuntu 22.04 https://docs.docker.com/desktop/linux/install/
  • MAKE SURE You already installed docker engine before installing docker desktop for Ubuntu
  • Related