I can't delete files blow /snap with root, all the files is read-only

Ubuntu17.10 .

root@S2:/snap/yd/2/bin ll
-rwxr-xr-x 1 root root 218 3 23 2017 yd*

I can not delete yd.
I install yd in app store,but it does not work , so I want to remove it . I found Those file can not be removed .

I tried lsattr and chattr
lsattr: Inappropriate ioctl for device While reading flags on yd

I found a related key word snap
but snap remove core does not work as well

I uninstall the snapd
dpkg -P snapd
then all is clear

1 Like