Score:0

How can I proceed if it is impossible to delete a (snap) readonly directory?

cn flag

I want to execute a similar command to the following command from this post

sudo rmdir /usr/share/ghostscript/9.25/iccprofiles

The actual command is

sudo rmdir /snap/gimp/367/usr/share/ghostscript/9.50/iccprofiles

When I execute the following command, I am encountering the following error:

rmdir: failed to remove '/snap/gimp/367/usr/share/ghostscript/9.50/iccprofiles': Read-only file system

How to delete the directory?


From comments, I came to know that I cannot delete the file.

I asked this question inorder to make my printer work. Printer is perfectly fine, but seems there are lot of issues with OS and hence it is behaving randomly. I tried with latest version of Ubuntu as well as Linux mint. So I read this and then this.

Now, I have no clue of how to proceed further. Do I need to report the issue? If yes, I am not expertise in finding the exact reason for issue such as the (wrong) file, (error)line etc.,

muru avatar
us flag
You can't delete a file from a snap. As it says, the snaps are read-only filesystems, designed not be modified.
hanugm avatar
cn flag
@muru Then is it impossible to work according to post? And how do the users execute it?
waltinator avatar
it flag
You can manipulate whole snaps, not components of snaps, with the `snap` command. Read `man snap`.
muru avatar
us flag
@hanugm People who did use it probably had it installed using `apt`, not as a snap. On the plus side, snaps are easier to update for the devs, so if you file a bug report for the broken file and get it fixed, the update is will reach you quicker.
N0rbert avatar
zw flag
Does this answer your question? [Cannot remove folder in Snap-directory](https://askubuntu.com/questions/1328180/cannot-remove-folder-in-snap-directory)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.