Page 1 of 1

Failed uninstallation of Shairport-sync

Posted: Sat Jan 07, 2017 7:23 pm
by Sciamano
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! :)

Re: Failed uninstallation of Shairport-sync

Posted: Sat Jan 07, 2017 7:34 pm
by syl3nt
apt-get purge *package* ?

Re: Failed uninstallation of Shairport-sync

Posted: Sat Jan 07, 2017 7:43 pm
by Sciamano
I've already tried that. It errors out:

Code: Select all

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 :o

Re: Failed uninstallation of Shairport-sync

Posted: Sat Jan 07, 2017 8:02 pm
by Fourdee
Sciamano wrote:I've already tried that. It errors out:

Code: Select all

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

Re: Failed uninstallation of Shairport-sync

Posted: Sat Jan 07, 2017 11:33 pm
by Sciamano
Fourdee wrote:
Sciamano wrote:I've already tried that. It errors out:

Code: Select all

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 :o
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

Re: Failed uninstallation of Shairport-sync

Posted: Mon Jan 09, 2017 4:49 pm
by Fourdee
Sciamano wrote: 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:

Code: Select all

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:

Code: Select all

 [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


Re: Failed uninstallation of Shairport-sync

Posted: Mon Jan 09, 2017 5:08 pm
by Sciamano
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.