I recently came back to using my raspi 400 after a break of almost a year. I also re-flashed the SD card to take advantage of the newer Bookworm release of raspbian and for the most part everything works as I remeber except for the "rm" trminal command.
I would like to remove an unwanted "snap" directory which remained after removal of the snap-store package.
I Googled for information on how to remove an unwanted directory in Debian linux and the pages I have read describe variants of the rm command which I have been trying.
I open a terminal window, navigate to the "/" directory and then attempt to remove the unwanted "snap" directory using
Code: Select all
sudo rm -r snap
Code: Select all
rm: cannot remove 'snap/core22/867/usr/lib/aarch64-linux-gnu/libzstd.so.1.4.8': Read-only file system
Code: Select all
sudo chmod +rwx snap
Code: Select all
sudo rm -r snap
I could just re-flash but thats the cowards way out and I wont learn anything from my mistakes

After a year away from using terminal commands I have become very rusty and suspect I am missing something here and would appreciate some pointers as to which terminal command I should be using to delete an unwanted directory

Pipuppy