Whenever I type a command which is similar to sudo apt-get install or anything like this I get this kind of error:

$ sudo su
# exit
rm: cannot remove `/run/user/root/gvfs': Is a directory

How can I resolve it?

  • Please, could you paste the whole output and possibly the command that produces the error? Thanks! – Andrea Corbellini Dec 28 '12 at 16:12
  • A very simple command,: kbkb@Abood:~$ sudo su root@Abood:/home/kbkb# exit exit rm: cannot remove `/run/user/root/gvfs': Is a directory. I'm sorry because i don't know how paste it like a code here – Abood Mount Dec 28 '12 at 16:16
  • GVFS is the GNOME Virtual File System. Does it help to unmount gvfs? Use gvfs-mount -l or gvfs-mount -li to get a list of mounted resources and gvfs-mount -u URI to unmount a given resource, where URI is the mounted resource. – user8290 Dec 28 '12 at 16:40
  • I don't actually know where this problem comes from, i don't know what do i have to do, i need a help please. – Abood Mount Dec 28 '12 at 16:45

Open your terminal (Ctrl+Alt+T) and run this:

sudo umount /run/user/root/gvfs
| improve this answer | |
  • 2
    I ran umount /run/user/root/gvfs and it worked thanks. – Abood Mount Dec 28 '12 at 16:50
  • If you are already a root already, you can run this command without sudo umount /run/user/root/gvfs. – Gediminas Jeremiah Gudelis Jul 25 '13 at 6:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.