Missing information in the documentation

Have been going through the docs trying to understand some things and noticed something that I think is unusual. Every bit of software that I have installed to date has had instructions for installing AND also instructions for how to remove said software from my system. Could someone point me to where the instructions for how to remove snapd from my system can be found?

sudo apt uninstall snapd in Debian-based distros

that would be sudo apt remove snapd or sudo apt purge snapd. note that this also removes all snaps and their configuration.

1 Like

Thank you @ogra!

I would have thought that but:
root@debianmemyself:/ # apt remove snapd
root@debianmemyself:/ # apt purge snapd
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 91577 files and directories currently installed.)
Purging configuration files for snapd (2.21-2+b1) …
rm: cannot remove ‘/var/snap/aaaaa’: Operation not permitted
rm: cannot remove ‘/var/snap/bbbbb’: Operation not permitted
rm: cannot remove ‘/var/snap/ccccc’: Operation not permitted
rm: cannot remove ‘/var/snap/ddddd’: Operation not permitted
dpkg: error processing package snapd (–purge):
subprocess installed post-removal script returned error exit
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

using rm -r also didn’t work - - - - so - - - how do I effect the removal?


snapd is just a package, you should be able to remove it just like any other package on your system. If something fails we will likely need more information (system logs, for example) to help you out

OK - - - - but as there are 20 discrete log files on my system I would help if I know I might find the files that would help resolve this issue.