Hello,
I have uninstalled shairport-sync via dietpi-software a few days ago.
Today Iβve launched htop and noticed that shairport-sync is still running!
If I go to dietpi-software it is not marked as installedβ¦
How can I do to remove it completely?
Thanks!
apt-get purge package ?
Iβve already tried that. It errors out:
dpkg: warning: while removing shairport-sync-dietpi, directory '/usr/local/share' not empty so not removed
I donβt see why purging this should try to remove /usr/local/share
Not sure what dpkg is doing there.
/usr/local/share/man/man7/shairport-sync.7.gz is all that is installed in that directory via the .deb, and all that will be removed.
Which device did you install/uninstall shairport-sync on? Iβll see if we can replicate and resolve it.
I manually removed the (empty) subdirectories in /usr/local/share and apt-get purged again, this time it worked without errors. I still donβt understand what went wrong, though.
Anyway all this is installed on a Raspberry Pi 1 Model B

I manually removed the (empty) subdirectories in /usr/local/share and apt-get purged again, this time it worked without errors. I still donβt understand what went wrong, though.
Anyway all this is installed on a Raspberry Pi 1 Model B
Hi,
Thanks for the additional info.
I ran a test on RPi-Zero and was able to replicate the following warning:
dpkg: warning: while removing shairport-sync-dietpi, directory '/usr/local/share' not empty so not removed
I believe the cause is due to the .deb only have 1 file contained within /usr/local/share/man/*.
So during uninstall of the .deb, dpkg possibly believes that the only file that existed has been removed and needs to check, so it flags to remove the subfolders /usr/local/share, then gives a warning because its not empty.
I think this is generally how dpkg operates, and is harmless.
Although, shairport-sync did uninstall for me fully, so unless this occurs again (please let me know) and we can run some further tests on the culprit system, iβll mark this as resolved:
[Ok] Uninstalling Shairport Sync: airplay audio player with multiroom sync
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'shairport-sync-dietpi' for regex 'shairport-sync*'
The following packages will be REMOVED:
shairport-sync-dietpi*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 168 kB disk space will be freed.
(Reading database ... 21297 files and directories currently installed.)
Removing shairport-sync-dietpi (1-1) ...
dpkg: warning: while removing shairport-sync-dietpi, directory '/usr/local/share' not empty so not removed
Processing triggers for systemd (215-17+deb8u5) ...
DietPi-Software
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Mode: Removing packages that are no longer required
Please wait...
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
DietPi-Services
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Mode: start
Please wait...
[Ok] cron
[Ok] avahi-daemon
DietPi-Process_Tool
βββββββββββββββββββββββββββββββββββββββββββββββββββββ
Mode: Apply
Please wait...
Avahi Daemon (5594)
[Ok] Nice 0
[Ok] Affinity 0
[Ok] Scheduler SCHED_OTHER 0
Cron (5589)
[Ok] Nice 0
[Ok] Affinity 0
[Ok] Scheduler SCHED_OTHER 0
OpenSSH Server (387)
[Ok] Nice 0
[Ok] Affinity 0
[Ok] Scheduler SCHED_OTHER 0
OpenSSH Server (1385)
[Ok] Nice 0
[Ok] Affinity 0
[Ok] Scheduler SCHED_OTHER 0
[Ok] DietPi-Process Tool | Completed
I tried uninstalling shairport-sync on my OPi PC earlier today, and I had the same result as yours, including the correct uninstallation of shairport-sync.
So either itβs a problem with the raspberry pi version, or itβs been some kind of one time thing.
Iβll try again on the RPi and see if I can replicate the bug.