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

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

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest