Bug 6574 - Upgrading with apt-get fails if slimserver isn't running
: Upgrading with apt-get fails if slimserver isn't running
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 7.0
: PC Debian Linux
: P2 normal (vote)
: ---
Assigned To: Matt Wise
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-11 01:39 UTC by Me
Modified: 2008-12-18 11:12 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Me 2008-01-11 01:39:43 UTC
My upgrade from slimserver=7.0 to squeezecenter=7.0-16145 failed.  This is because the install script assumed that slimserver was already running, and failed miserably when it tried to stop it.  Below is a transcript of what happened (my locale is Norwegian, but I guess you get the general idea):


Hent:1 http://debian.slimdevices.com unstable/main squeezecenter 7.0-16145 [17,3MB]
Henta 17,3MB på 44s (392kB/s)                                                                                                                                                                            
(Leser database ... 47048 filer og kataloger er installerte.)
Fjerner slimserver ...
Stopping SqueezeCenter Audio Server
No slimserver_safe found running; none killed.
invoke-rc.d: initscript slimserver, action "stop" failed.
dpkg: Feil ved behandling av slimserver (--remove):
 underprosessen pre-removal script returnerte feilstatus 1
Starting SqueezeCenter Audio Server.
Det oppsto feil ved behandling av:
 slimserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
Det lyktes ikke å installere en pakke. Prøver å gjenopprette:
Comment 1 Mark Miksis 2008-01-13 09:09:08 UTC
Note that this is why the RPM scriptlets use a "|| :" to force a zero exit status.  I don't know whether this or a similar trick is common in the Debian world.
Comment 2 Blackketter Dean 2008-01-14 10:01:43 UTC
Matt: you fixed this, right?
Comment 3 Matt Wise 2008-01-18 09:15:44 UTC
This was a known issue with the old Debian package. Newer packages should not exhibit this behavior. I have adjusted the start-stop-daemon options to include -o, which means that whether or not the daemon was running, exit with status '0' so the script will continue. 
Comment 4 Chris Owens 2008-03-07 09:04:43 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.