I use linux-mint I am trying to install docker. I have followed the steps:
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
But at the moment of executing: sudo apt-get update
I get the error that I have put above.
It has almost no information so I guess the solution is very obvious but not for me. I am trying to install docker.
I've just cut and pasted, I understand where I could have gone wrong.
As you saw, you have to use Ubuntu-based repos and not debian-based ones (same package management, different release names).
Try deleting the file
/etc/apt/sources.list.d/docker.list
(with sudo) and then add the correct repo using something likeNOTE: Check that it
bionic
corresponds to your version! That's what itlsb_release
should tell you (and that's why it's used in the command you tried)There you should be able to do
sudo apt update
and thensudo apt install docker-ce docker-ce-cli containerd.io
P.S.
apt-get
it's old ;)