package pulseaudio 1:0.9.14-0ubuntu16 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1

Bug #357201 reported by Mark Nevill
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
Medium
Daniel T Chen

Bug Description

Binary package hint: pulseaudio

/etc/init.d/pulseaudio contains the line
start-stop-daemon -p $PIDFILE --stop --retry TERM/3 --oknodo || status=$?
the || results in status only begin set when its non-0 -> log_end_msg exists with status 1 -> script "fails" -> update "fails". the correct version is simply to move "status=$?" onto a new line or use ";" instead of "||".

$ lsb_release -rd
Description: Ubuntu jaunty (development branch)
Release: 9.04

Revision history for this message
Mark Nevill (nevillm) wrote :

The log from the failed update attempt:

Log started: 2009-04-07 19:54:41
(Reading database ... 452462 files and directories currently installed.)
Preparing to replace pulseaudio 1:0.9.14-0ubuntu16 (using .../pulseaudio_1%3a0.9.14-0ubuntu17_amd64.deb) ...
 * Stopping system PulseAudio Daemon invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
 * Stopping system PulseAudio Daemon No process in pidfile `/var/run/pulse/pid' found running; none killed.
invoke-rc.d: initscript pulseaudio, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/pulseaudio_1%3a0.9.14-0ubuntu17_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
 * Starting system PulseAudio Daemon ^M[ OK ]
Errors were encountered while processing:
 /var/cache/apt/archives/pulseaudio_1%3a0.9.14-0ubuntu17_amd64.deb
Log ended: 2009-04-07 19:54:43

Daniel T Chen (crimsun)
Changed in pulseaudio (Ubuntu):
assignee: nobody → crimsun
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Daniel T Chen (crimsun) wrote :

Please test my PPA version (when available).

Changed in pulseaudio (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:0.9.14-0ubuntu19

---------------
pulseaudio (1:0.9.14-0ubuntu19) jaunty; urgency=low

  [ Daniel T Chen ]
  * debian/pulseaudio.init:
    - Fix inane stop() syntax (LP: #357201)
  * Update backported (from git HEAD) fixes:
    - 0091_workaround_alsa_horkage.patch
  * Add new fixes:
    - 0049_fix_sampling_rate_not_beyond_pa-rate-max.patch

 -- Luke Yelavich <email address hidden> Thu, 09 Apr 2009 07:29:24 +1000

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.