The file /etc/init.d/pulseaudio . How do can I recover the original file ?

Asked by articdisappearing on 2010-03-17

Binary package hint: pulseaudio

The file /etc/init.d/pulseaudio is filed with garbage resulting in an error at every upgrade. How do I recover the original file ?

See the summary; please let me know what to do>>I'm trying to learn!!

ProblemType: Package
Architecture: i386
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/midiC0D0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D2p', '/dev/snd/midiC0D1', '/dev/snd/hwC0D2', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1c', '/dev/snd/pcmC0D2c', '/dev/snd/pcmC0D3p', '/dev/snd/midiC0D2', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer', '/dev/sequencer2'] failed with exit code 1:
 Card hw:0 'Live'/'SB Live! [SB0105] (rev.7, serial:0x806b1102) at 0x1400, irq 18'
   Mixer name : 'SigmaTel STAC9708,11'
   Components : 'AC97a:83847608'
   Controls : 224
   Simple ctrls : 45
Date: Wed Mar 17 11:33:15 2010
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 127
NonfreeKernelModules: nvidia
Package: pulseaudio 1:0.9.19-0ubuntu4.1
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: pulseaudio
Title: package pulseaudio 1:0.9.19-0ubuntu4.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 127
Uname: Linux 2.6.31-20-generic i686

Question information

English Edit question
Ubuntu pulseaudio Edit question
No assignee Edit question
Last query:
Last reply:
articdisappearing (enviropond) said : #1

Thanks for your report.

The relevant error is
Setting up pulseaudio (1:0.9.19-0ubuntu4.1) ...
update-rc.d: warning: /etc/init.d/pulseaudio missing LSB information
update-rc.d: see <>
/etc/init.d/pulseaudio: 1: not found
invoke-rc.d: initscript pulseaudio, action "start" failed.
dpkg: error processing pulseaudio (--configure):
 subprocess installed post-installation script returned error exit status 127

It looks like /etc/init.d/pulseaudio is corrupted. This is the same issue you reported in bug 529463. It is not a bug with the package but with your system being corrupted. Could you please ask a support channel a support channel (#ubuntu or an ubuntu forum) how to recover from this error. Thanks

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at if you are uncertain if they are bugs. For help on reporting bugs, see

Here is my file from Lucid if it helps:

#!/bin/sh -e
# Provides: pulseaudio esound
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Should-Start: udev NetworkManager
# Should-Stop: udev NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: Start the PulseAudio sound server
# Description: System mode startup script for
# the PulseAudio sound server.


test -x $DAEMON || exit 0

. /lib/lsb/init-functions

test -f /etc/default/pulseaudio && . /etc/default/pulseaudio
if [ "$PULSEAUDIO_SYSTEM_START" != "1" ]; then
 log_warning_msg "PulseAudio configured for per-user sessions"
 exit 0

pulseaudio_start () {
 log_daemon_msg "Starting system PulseAudio Daemon"
 if [ ! -d $PIDDIR ]; then
  mkdir -p $PIDDIR
 start-stop-daemon -x $DAEMON -p $PIDFILE --start -- --system --daemonize --high-priority --log-target=syslog --disallow-module-loading=$DISALLOW_MODULE_LOADING
 if [ -e /var/run/pulse/.esd_auth ]; then
  chown pulse:pulse-access /var/run/pulse/.esd_auth
  chmod 640 /var/run/pulse/.esd_auth
 if [ -e /var/run/pulse/.pulse-cookie ]; then
  chown pulse:pulse-access /var/run/pulse/.pulse-cookie
  chmod 640 /var/run/pulse/.pulse-cookie
 log_end_msg ${status}

pulseaudio_stop () {
 log_daemon_msg "Stopping system PulseAudio Daemon"
 start-stop-daemon -p $PIDFILE --stop --retry 5 || echo -n "...which is not running"
 log_end_msg $?

case "$1" in
  if [ -s $PIDFILE ] && kill -0 $(cat $PIDFILE) >/dev/null 2>&1; then
  killall pulseaudio || true
  sleep 2
  killall -9 pulseaudio || true
  status_of_proc -p $PIDFILE "$DAEMON" "system-wide PulseAudio" && exit 0 || exit $?
  echo "Usage: /etc/init.d/pulseaudio {start|stop|force-stop|restart|reload|force-reload|status}"
  exit 1

exit 0

You could always boot to a karmic live CD and copy the file from there too if the one I gave dowsnt work. Even though your file is bad, back it up

Can you help with this problem?

Provide an answer of your own, or ask articdisappearing for more information if necessary.

To post a message you must log in.