Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 10 down vote accepted

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

sudo umount /run/user/root/gvfs
share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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