I have been having issues with Sonarr not launching the GUI, so I’ve decided to wipe the installation and start again.
However upon running the dietpi-software uninstaller, I get the following error
Purging configuration files for sonarr (3.0.10) ...^M
│ rm: cannot remove '/mnt/dietpi_userdata/sonarr/sonarr.db-shm': Is a
│ directory^M
│ dpkg: error processing package sonarr (--purge):^M
│ installed sonarr package post-removal script subprocess returned error exit
│ status 1^M
│ Errors were encountered while processing:^M
│ sonarr^M
│ E: Sub-process /usr/bin/dpkg returned an error code (1)
I cannot figure out how to completely wipe sonarr from the device and do a fresh install. I deleted all the files I could from “/mnt/Media/dietpi_userdata/sonarr” however it will not let me delete ‘sonarr.db-wal’ file and ‘sonarr.db-shm’ directory, even with rm -rf.
Dietpi-software still thinks sonarr is installed so I cannot run a fresh install until it’s completely removed.
Did you mount the card on a windows system and removed the files there? The ^M indicating this (it’s the Linux representation for the Windows carriage return. But I wonder why they appear in the script output.
Do you have a backup of your system before you made any changes?
Could this be related to the dietpi_userdata being located on an external hdd that is running samba?
The Dietpi userdata is located at /mtn/Media/dietpi-userdata
rm: cannot remove '/mnt/Media/dietpi_userdata/sonarr/sonarr.db-shm/': No such file or directory
It’s like the folder is there, but also isn’t at the same time…
I’ve tried all the rm commands including rm -rf etc, never had luck removing these files…