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.
Check file content of /etc/apt/sources.list.d/docker.list
In my case it was:
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] Index of linux/debian/ focal stable
Changed debian to ubuntu, it’s working. see, if helps