
Peter Wolf via luv-beginners wrote:
I am trying to delete a "doc" folder on my computer but have been unable to do so.How do I delete it?
Some output below should give an indication of what I have tried.
peter@FLYQB8M9RETO9JA05LY0A3QPQB6OXGXZ0QOC0QN9:~/.cache$ ls -l ls: cannot access 'doc': Permission denied total 236 drw------- 2 root root 4096 Jan 17 23:32 dconf d????????? ? ? ? ? ? doc
This is pretty suspicious.
peter@FLYQB8M9RETO9JA05LY0A3QPQB6OXGXZ0QOC0QN9:~/.cache$ sudo ls -l doc total 0 dr-x------ 2 root root 0 Jan 1 1970 by-app peter@FLYQB8M9RETO9JA05LY0A3QPQB6OXGXZ0QOC0QN9:~/.cache$ sudo rm -r doc rm: cannot remove 'doc/by-app': Function not implemented
This is the smoking gun. It looks like ~/.cache/doc is some kind of fuse filesystem, and the driver is a bit stupid. OK two things: 1. do not run GUI apps as root. You have done so in the past, which is why things like ~peter/.cache/dconf are now owned by root. This breaks all kinds of things. 1a. To fix this you might try something like sudo find ~peter -xdev '(' -owner root -o -group root ')' -ls sudo find ~peter -xdev '(' -owner root -o -group root ')' -exec echo chown -h peter:peter {} + If the output looks sensible, run it without the "echo" to actually apply it. 2. re your ~/.cache/doc tree, I guess run "mount" or "cat /proc/self/mountinfo" and try to work out WTF it is. Depending what it is, you might umount it, or fix the fuse driver, or just uninstall/disable it. You might need to do a full reboot to clear it, if it's super buggy.