Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker installation on Linux Mint 19.2 doesn't work [closed]

Just got a fresh Linux mint 19.2 installed, i needed docker so i went to the docker doc and followed the process.

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

everything went well until step 4 of the repository set up.

on the 4 step it says "Malformed input, repository not added."

I've changed "$(lsb_release -cs)" to "tina" and "tara" still doesn't work.

the 4th step to set up the repository:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

like image 937
Xen Siva Avatar asked Aug 07 '19 22:08

Xen Siva


People also ask

Does Docker desktop work on Linux Mint?

Docker can be installed from the official repository of Linux Mint using the Docker snap and the . deb package of Docker.

Do you need Linux to install Docker?

To install Docker, we need to follow the steps given below. Step 1 − Before installing Docker, you first have to ensure that you have the right Linux kernel version running. Docker is only designed to run on Linux kernel version 3.8 and higher.


2 Answers

sudo nano /etc/apt/sources.list.d/additional-repositories.list

add the following line in the file

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

then,

sudo apt update

you know the rest of the steps. Good luck!

like image 78
LeoZ Avatar answered Sep 19 '22 15:09

LeoZ


Leo's answer is very widely accepted but for some reason his solution doesn't work in my machine which is run by Linux Mint 19.3 Chinamon. So after doing some research I came out with this solution.

First Run this

echo -e "\ndeb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee -a /etc/apt/sources.list

and then update the package index.

sudo apt-get update
like image 40
Shubho Shaha Avatar answered Sep 16 '22 15:09

Shubho Shaha