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...
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 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.