Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a snap application (docker) completely

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

like image 448
invisiblegaudi Avatar asked May 18 '20 18:05

invisiblegaudi


2 Answers

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
like image 71
BackdoorTech Avatar answered Sep 22 '22 08:09

BackdoorTech


The command you are looking for is:

sudo apt install docker.io

i.e it's docker.io not just docker

On Ubuntu, the package docker is described as a "System tray for KDE3/GNOME2 applications", which is probably not what you want!

like image 34
slonik Avatar answered Sep 23 '22 08:09

slonik