Problems updating (Misuse)

Hello everyone in the community. I need help because, once again, I ran into trouble while trying to install Docker. I followed a tutorial to install Docker via the terminal and used these commands.

sudo apt update
sudo apt install ca-certificates curl
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg
| sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg]
Index of linux/debian/ $(lsb_release -cs) stable"
| sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
wget https://desktop.docker.com/linux/main/amd64/docker-desktop-latest-amd64.deb
sudo apt install ./docker-desktop-latest-amd64.deb

Besides not working, it's giving an error message when trying to update. This happens both through the update app and the device itself.



I apologize for once again damaging my system due to curiosity and carelessness!

1. Update your system

sudo apt update && sudo apt upgrade -y

2. Install required packages

sudo apt install apt-transport-https ca-certificates curl software-properties-common -y

3. Add Docker’s official GPG key

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc

sudo chmod a+r /etc/apt/keyrings/docker.asc

4. Add Docker APT repository

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
1 Like

I need to restart the machine because running "docker version" still doesn't find it.

sudo apt install docker io

Do you have rustdesk instaled?
for remote support

1 Like

you can go to software updates and remove all those docker repos in double
leave one from each needed from the original

1 Like

Thank you, friend, and welcome. I managed to install and resolve the problems with the update apps. I even checked for duplicate entries. However, as in the image, there is a message: "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.50/version": dial unix /var/run/docker.sock: connect: permission denied
" I don't have RustDesk....

Maybe this guide can help you:

2 Likes

Thank you all very much, it was just a matter of user configuration. Now everything is in order. @VBtech

2 Likes