Installation issue: the repository https://download.docker.com/linux/debian focal Release does not have a Release file

Hi,

I have an AWS instance in Lightsail running on Ubuntu Environment. When I am running the following code

sudo apt update && sudo apt install docker-ce docker-ce-cli containerd.io

I have tried modifying this file:

vim /etc/apt/sources.list 

as per one of the suggested post. And now, I have eoan versus focal that is, it looks like this inside:

deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan stable
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu focal stable
deb [arch=amd64] https://download.docker.com/linux/debian focal stable

I am not sure why it is bugging. Can anyone please take a look at this? Thank you in advance.

Something is definitely wrong with your config. I would quote the part of the output which seems wrong, if you shared the output as text. Please, do it next time whenever you can copy the text.

In the output you have ubuntu and debian repositories, that is something you also shared as text in code block. But I can also see this:

https://download.docker.com/sudo apt-get Release

as if you have acidentally written “sudo apt-get” into the source list or a file in /etc/apt/sources.list.d

You should have only debian or ubuntu urls and try to clean your apt config files to remove commands.