Permision to delete any file

There are two files in my Ubuntu 18.04, left after uninstallation od MyChrome app, I am not able to delete without change of permissions,as:

/var/lib/snapd/desktop/applications/mychrome_chrome.desktop
/var/lib/snapd/sequence/mychrome.json

There is no options to change permissions for that files. How to delete them?

1

1 Answer

The files are probably owned by the root user so your regular user is not allowed to remove them. You should be able to open a terminal and then type sudo rm -f /var/lib/snapd/desktop/applications/mychrome_chrome.desktop to remove the file.

If thay won't work, the file might be immutable (unlikely, but possible). Try sudo chattr -i /var/lib/snapd/desktop/applications/mychrome_chrome.desktop and then again sudo rm -f /var/lib/snapd/desktop/applications/mychrome_chrome.desktop.

1

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