package acpid 1.0.6-9ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #430121 reported by Shomeir
160
This bug affects 43 people
Affects Status Importance Assigned to Milestone
upstart (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: acpid

Failed to install

ProblemType: Package
Architecture: amd64
Date: Tue Sep 15 08:44:31 2009
DistroRelease: Ubuntu 9.10
ErrorMessage: subprocess installed post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: acpid 1.0.6-9ubuntu6
ProcVersionSignature: Ubuntu 2.6.31-10.32-generic
SourcePackage: acpid
Title: package acpid 1.0.6-9ubuntu6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Uname: Linux 2.6.31-10-generic x86_64

Revision history for this message
Shomeir (shomeir) wrote :
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks for your bug report. I can confirm that this happens when upgrading from a pre-upstart version.

 Setting up acpid (1.0.6-9ubuntu6) ...
 * Stopping Hardware abstraction layer hald
   ...done.
acpid start/running, process 21054
 * Starting Hardware abstraction layer hald
invoke-rc.d: initscript hal, action "start" failed.
dpkg: error processing acpid (--configure):
 subprocess installed post-installation script returned error exit status 1

The reason is that hal has already been restarted (by upstart?) when the acpi.postinst tries to restart it.

Changed in acpid (Ubuntu):
status: New → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

invoke-rc.d is not supposed to be failing in these circumstances - policy documents that the 'start' option to an init script is supposed to return success when the job is already started. And since this bug was first filed, upstart-job has been fixed (in upstart 0.6.3-4) to implement this behavior.

So I think this bug is already fixed elsewhere, and in any case ignoring errors from invoke-rc.d would be the wrong thing to do here - anything causing invoke-rc.d to fail is a bug somewhere else that needs to be located and fixed.

Revision history for this message
Tormod Volden (tormodvolden) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

Tormod's log confirms that the upgrade failure happened with the old upstart, so I'm marking this as fixed in upstart. Changelog for the fixing version of the package:

upstart (0.6.3-4) karmic; urgency=low

  [ Scott James Remnant ]
  * Reduce the priority of the stopped by/continued by messages so that
    they are only shown when --verbose on the kernel command-line.
    LP: #401333.
  * Add a hack to look for /dev/.initramfs/*.pid files on startup and
    "fake" start jobs of those names. Basically this means that "status"
    and "stop" work for things like bootchart and usplash.
  * Implement a "reload" command in initctl that retrieves the current pid
    of the job and sends it the HUP signal. LP: #433544.

  [ Steve Langasek ]
  * debian/upstart-job:
    - give proper policy-compliant behavior of the start command: detect if
      the job is already running using upstart status, and if so return success.
    - same for the stop command: return success if the job is already stopped.
    - when $DPKG_MAINTSCRIPT_PACKAGE is set, don't spit warnings out because
      it's not the user's fault - we're being invoked by a maintainer script.

affects: acpid (Ubuntu) → upstart (Ubuntu)
Changed in upstart (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Is that the same for "start"? Is start xx || : also undesirable?

Revision history for this message
shalom.elkin (shalom-elkin) wrote :

So what Do I do? Ignore it? Or do something else?

Revision history for this message
Tormod Volden (tormodvolden) wrote :

shalom, it should not be a problem now that a newer package will be candidate for installation.

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

Other bug subscribers

Remote bug watches

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