Tuesday, January 4, 2022

[SOLVED] How to remove a snap application (docker) completely

Issue

I made the mistake of installing Docker via Snap... Once I realised that snap hadn't permissions to run in my working directory (on a different partition), I removed it. Now I can't use docker after I've installed it via apt-get.

Please help.

I've done sudo snap remove docker but when I sudo apt install docker and run via docker, I get bash: /snap/bin/docker: No such file or directory


Solution

I had the same problem. This works for me.

Removing docker using snap

sudo snap remove docker

Try configuring unconfigured packages

sudo dpkg --configure -a

Update the contents of the repositories

sudo apt-get update

Try to fix missing dependencies:

sudo apt-get -f install


Answered By - BackdoorTech