package apport 1.17.1-0ubuntu3 failed to install/upgrade: invoke-rc.d: initscript apport, action "start" failed.

Bug #707971 reported by hcmeyer
494
This bug affects 64 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Invalid
High
Martin Pitt
Natty
Invalid
High
Martin Pitt
upstart (Ubuntu)
Fix Released
Critical
Steve Langasek
Natty
Fix Released
Critical
Steve Langasek

Bug Description

Binary package hint: apport

running apt-get update after doing apt-get install quickly

Workaround:
Open a terminal and run:
$ sudo stop apport
$ sudo apt-get upgrade

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: apport 1.17.1-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic i686
Architecture: i386
Date: Wed Jan 26 08:13:57 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101204)
PackageArchitecture: all
SourcePackage: apport
Title: package apport 1.17.1-0ubuntu3 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Related branches

Revision history for this message
hcmeyer (hcmeyer) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

I reproduce it in Natty with the latest update. The error is:

Setting up apport (1.17.1-0ubuntu3) ...
start: Job is already running: apport
invoke-rc.d: initscript apport, action "start" failed.
dpkg: error processing apport (--configure):
 subprocess installed post-installation script returned error exit status 1

Changed in apport (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

This is because of the following line in apport.postinst
invoke-rc.d apport start

which fails if apport is already running.

As a workaround you can run the following commands in a terminal:
$ sudo stop apport
$ sudo apt-get update

summary: - package apport 1.17.1-0ubuntu3 failed to install/upgrade: subprocess
- installed post-installation script returned error exit status 1
+ package apport 1.17.1-0ubuntu3 failed to install/upgrade: invoke-rc.d:
+ initscript apport, action "start" failed.
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Oh, btw this report has been reported by apport but contains no tags, weird.

description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

That's due to the recent debhelper change (http://launchpadlibrarian.net/62684664/debhelper_8.0.0ubuntu1_8.0.0ubuntu2.diff.gz) which did:

- # start fails if already running
- start #JOB# || :
+ invoke-rc.d #JOB# start || #ERROR_HANDLER#

and similar. Apparenlty the #ERROR_HANDLER# results in "exit $?" instead of ":" as it should be.

affects: apport (Ubuntu) → debhelper (Ubuntu)
Changed in debhelper (Ubuntu):
assignee: nobody → Steve Langasek (vorlon)
importance: High → Critical
milestone: none → natty-alpha-2
Revision history for this message
Martin Pitt (pitti) wrote :

Actually, we need an apport task as welll, as we need to rebuild it against a fixed debhelper.

Changed in apport (Ubuntu Natty):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → High
milestone: none → natty-alpha-2
status: New → Triaged
Revision history for this message
Steve Langasek (vorlon) wrote :

The change in debhelper is deliberate. This is not a bug in debhelper, but a bug in /lib/init/upstart-job which mishandles jobs that are 'start/running' with no pid. Reassigning to upstart and marking a duplicate of 603934.

affects: debhelper (Ubuntu Natty) → upstart (Ubuntu Natty)
Revision history for this message
Steve Langasek (vorlon) wrote :

oh, marking this a duplicate is non-trivial due to the duplicates. Well, we'll just pretend I did that then. :)

Revision history for this message
hcmeyer (hcmeyer) wrote : workaround

workaround is:

sudo stop apport
sudo apt-get upgrade

Carl

Steve Langasek (vorlon)
Changed in apport (Ubuntu Natty):
status: Triaged → Invalid
Revision history for this message
Carlos (tux-infocms) wrote : Re: [Bug 707971] workaround

thanks.

Carlos Souza

2011/1/26 hcmeyer <email address hidden>

> workaround is:
>
> sudo stop apport
> sudo apt-get upgrade
>
> Carl
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (707956).
> https://bugs.launchpad.net/bugs/707971
>
> Title:
> package apport 1.17.1-0ubuntu3 failed to install/upgrade: invoke-rc.d:
> initscript apport, action "start" failed.
>
> Status in “apport” package in Ubuntu:
> Invalid
> Status in “upstart” package in Ubuntu:
> Triaged
> Status in “apport” source package in Natty:
> Invalid
> Status in “upstart” source package in Natty:
> Triaged
>
> Bug description:
> Binary package hint: apport
>
> running apt-get update after doing apt-get install quickly
>
> Workaround:
> Open a terminal and run:
> $ sudo stop apport
> $ sudo apt-get upgrade
>
> ProblemType: Package
> DistroRelease: Ubuntu 11.04
> Package: apport 1.17.1-0ubuntu3
> ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
> Uname: Linux 2.6.37-12-generic i686
> Architecture: i386
> Date: Wed Jan 26 08:13:57 2011
> ErrorMessage: subprocess installed post-installation script returned error
> exit status 1
> InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101204)
> PackageArchitecture: all
> SourcePackage: apport
> Title: package apport 1.17.1-0ubuntu3 failed to install/upgrade:
> subprocess installed post-installation script returned error exit status 1
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/apport/+bug/707971/+subscribe
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package upstart - 0.6.7-5

---------------
upstart (0.6.7-5) natty; urgency=low

  * debian/upstart-job: properly handle jobs that are in state 'start/running'
    with no PID, by checking only if the goal is 'start'. LP: #603934,
    #707971.
 -- Steve Langasek <email address hidden> Wed, 26 Jan 2011 14:05:43 -0800

Changed in upstart (Ubuntu Natty):
status: Triaged → Fix Released
To post a comment you must log in.