Failed uninstallation of Shairport-sync

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Failed uninstallation of Shairport-sync

Post 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! :)
syl3nt

Re: Failed uninstallation of Shairport-sync

Post by syl3nt »

apt-get purge *package* ?
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Failed uninstallation of Shairport-sync

Post 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
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Failed uninstallation of Shairport-sync

Post 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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Failed uninstallation of Shairport-sync

Post 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
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Failed uninstallation of Shairport-sync

Post 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

If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Failed uninstallation of Shairport-sync

Post 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.
Post Reply