I prevously removed snapd
, however, the /snap
directory is still there, and consumes a lot of space. How to remove it?
I tried sudo rm -rf /snap
, but that says
rm: cannot remove '/snap/path/to/file': Read-only file system
for all files in the directory.
I really did not understand why I could not delete those files even as a superuser, despite snapd
already being uninstalled.
/snap
was mounted as a small loop device which uses squashfs. And squashfs is read-only filesystem. Related to my comment: Small snap loop devices visible in gnome-disk-utility OR what is the function of snap ubuntu-core – Kulfy Jun 23 '20 at 05:20