Install Docker in Mint

Asked

Viewed 626 times

-1

I’m trying to install Docker on my Linux Mint 19 64-bit Cinamon laptop using this tutorial

Only when you reach that line

https://docs.docker.com/install/linux/docker-ce/ubuntu/

1. I have the following problems

sudo: curl: command not found
gpg: no valid OpenPGP data found.
  1. What if I try to install Curl using sudo apt-get install Curl

Give me that back

Você pode querer executar 'apt --fix-broken install' para corrigí-los.
Os pacotes a seguir têm dependências desencontradas:
 curl : Depende: libcurl4 (= 7.58.0-2ubuntu3.6) mas não será instalado
 mongodb-org-server : Depende: libcurl3 (>= 7.16.2) mas não será instalado
 warsaw : Depende: libcurl3 mas não será instalado ou
                   libcurl4 mas não será instalado
E: Dependências desencontradas. Tente 'apt --fix-broken install' sem nenhum pacote (ou especifique uma solução).
  1. If I try this apt --fix-broken install doesn’t work

  2. If I try like this sudo apt-get --fix-broken install the command works but does not solve. I have the following return

    The following Additional Packages will be installed: libcurl3 The following NEW packages will be installed: libcurl3 0 updated packages, 1 new installed packages, 0 to be removed and 0 not updated. You need to download 214 kB of files. After this operation, additional 644 kB of disk space will be used.

    Do you want to continue? [S/n] S Get:1 http://archive.ubuntu.com/ubuntu Bionic/Universe amd64 libcurl3 amd64 7.58.0-2ubuntu2 [214 kB] Downloaded 214 kB in 2s (134 kB/s)
    Selecting previously unchecked package libcurl3:amd64. (Reading database ... 333652 files and directories currently installed.) Preparing to unpack .../libcurl3_7.58.0-2ubuntu2_amd64.deb ... Unpacking libcurl3:amd64 (7.58.0-2ubuntu2) ... Setting up libcurl3:amd64 (7.58.0-2ubuntu2) ... Processing triggers to libc-bin (2.27-3ubuntu1) ..

If I try again in option 1, it starts all over again, errors. How can I get these problems to install Docker?

2 answers

3

Try removing the libs and installing manually:

apt remove -y libcurl4
apt install -y libcurl4 curl

and then try again to continue the installation process:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

... If Curl has not been installed correctly I suggest that you make sure that all the offices are installed, so use these commands:

sudo apt update
sudo apt-get install transport-https certificates curl gnupg-agent software-properties-common

And then continue the installation process:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

...


Another way to install the Docker is by using snap which is much simpler, first install the snap:

sudo apt update
sudo apt install snapd

Finally install the Docker:

sudo snap install docker

If you want to run Docker without using sudo or being logged in as superuser:

sudo groupadd docker
sudo usermod -aG $(whoami) docker

Restart the computer and to test do:

docker -v 

0

Try installing the Curl dependency manually:

apt-get update
apt-get install libcurl4

Browser other questions tagged

You are not signed in. Login or sign up in order to post.