cannot remove directory rm: cannot remove ‘/opt/odoo/.gvfs’: Device or resource busy

I've created a system user using this command

sudo adduser --system --home=/opt/odoo --group odoo

and when I tried to remove it later using this command userdel -r odoo I got this error

userdel: error removing directory /opt/odoo

when I tried to remove it manually sudo rm -rvf /opt/odoo I got this

rm: cannot remove ‘/opt/odoo/.gvfs’: Device or resource busy

1 Answer

You can try below command then try to remove user:

sudo umount /run/user/root/gvfs
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like