[Jaunty] apport crashing with splashy installed

Bug #369670 reported by Thomas Ohms
102
This bug affects 10 people
Affects Status Importance Assigned to Milestone
splashy (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Jaunty by Thomas Ohms
Nominated for Karmic by Mike Pontillo

Bug Description

Binary package hint: apport

With latest security update from today for apport 1.0-0ubuntu5.2, update crashes while processing with the following errors:

 * Stopping automatic crash report generation: apport /etc/init.d/apport: 24: runlevel: not found
exit: 24: Illegal number: Stopping
invoke-rc.d: initscript apport, action "stop" failed.
dpkg: Warnung - altes pre-removal-Skript wurde mit Fehler-Status 2 beendet
dpkg - probiere stattdessen Skript aus dem neuen Paket ...
 * Stopping automatic crash report generation: apport /etc/init.d/apport: 24: runlevel: not found
exit: 24: Illegal number: Stopping
invoke-rc.d: initscript apport, action "stop" failed.

Revision history for this message
Thomas Ohms (tohms) wrote :

Hey guys, it's a security update we're talking about! I'd like to help, but don't know where those new error messages "Illegal number" are coming from and so don't know where to start debugging.

Thomas Ohms (tohms)
summary: - [Jaunty] Security update apport crashes during installation
+ [Jaunty] apport is not starting
Revision history for this message
Thomas Ohms (tohms) wrote :
Download full text (3.9 KiB)

Now I had a bit time to observe this bug deeper. Mentioned error is because apport isn't running. Well, no problem so far as I tried to start apport. But nothing - no message, no apport. Had a look into init script file - ok: there's a file under default which is originally set to disable apport (first matter! think of common users!). Right - I enabled to start apport, but got only the following error during start-up process:
 * Starting automatic crash report generation: apport /etc/init.d/apport: 24: runlevel: not found
exit: 24: Illegal number: Starting

What is that illegal number about to do?? What does it tell me? Where is it coming from?

Ok - if nothing helps one step usually always helps out: remove with apt-get and purge everything, than reinstall. But surprise:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
apt-get --purge remove apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  apport*
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
1 not fully installed or removed.
After this operation, 553kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: error processing apport (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 apport
E: Sub-process /usr/bin/dpkg returned an error code (1)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Damn - I was so close. Ok, dpkg wants me to reinstall and so I tried with no better result:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++
apt-get --reinstall install apport
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  apport-gtk apport-qt python-launchpadlib
The following packages will be upgraded:
  apport
1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
Need to get 0B/113kB of archives.
After this operation, 0B of additional disk space will be used.
Lese Changelogs... Fertig
(Reading database ... 268384 files and directories currently installed.)
Preparing to replace apport 1.0-0ubuntu5 (using .../apport_1.0-0ubuntu5.2_all.deb) ...
 * Stopping automatic crash report generation: apport /etc/init.d/apport: 24: runlevel: not found
exit: 24: Illegal number: Stopping
invoke-rc.d: initscript apport, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
 * Stopping automatic crash report generation: apport /etc/init.d/apport: 24: runlevel: not found
exit: 24: Illegal number: Stopping
invoke-rc.d: initscript apport, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/apport_1.0-0ubuntu5.2_all.deb (--unpack):
 subprocess new pre-removal ...

Read more...

Revision history for this message
Thomas Ohms (tohms) wrote : Re: [Jaunty] apport is not starting

Couldn't get a minute rest without having a solution and found the following which solved the bug (should be in next update!):

http://ubuntuforums.org/showpost.php?p=6847133&postcount=8

summary: - [Jaunty] apport is not starting
+ [Jaunty] lsb-base missing /sbin path
affects: apport (Ubuntu) → lsb (Ubuntu)
Changed in lsb (Ubuntu):
status: New → Fix Committed
Revision history for this message
Thomas Ohms (tohms) wrote : Re: [Jaunty] lsb-base missing /sbin path

Grabbed other bugs belonging to that one as duplicates so bug list will be clean and with right package where issue is coming from.

Revision history for this message
Thomas Ohms (tohms) wrote :

I'll figure out a patch.

Changed in lsb (Ubuntu):
assignee: nobody → Thomas Ohms (tohms)
status: Fix Committed → In Progress
Revision history for this message
Thomas Ohms (tohms) wrote :

The bug is inside lsb-base-logging.sh from splashy package.

affects: lsb (Ubuntu) → splashy (Ubuntu)
Revision history for this message
Thomas Ohms (tohms) wrote :

Preparing for sponsorship

summary: - [Jaunty] lsb-base missing /sbin path
+ [Jaunty] apport crashing with splashy installed
Changed in splashy (Ubuntu):
assignee: Thomas Ohms (tohms) → nobody
Revision history for this message
Thomas Ohms (tohms) wrote :

Ok, patch is finished and debdiff attached. For those not willing to wait: I uploaded the package to my PPA. Just will take a while, but as soon it's built I let you know.

Revision history for this message
Thomas Ohms (tohms) wrote :

Please review for sponsorship.

Revision history for this message
Thomas Ohms (tohms) wrote :

For all others not willing to wait: download from my PPA. Just put following into you apt sources file:

deb http://ppa.launchpad.net/tohms/bugfixes/ubuntu jaunty main
deb-src http://ppa.launchpad.net/tohms/bugfixes/ubuntu jaunty main

Update cache and than splashy. Be aware that version in PPA for compatibility reasons with later jaunty-proposed is: splashy - 0.3.13-3ubuntu1~ppa1

Revision history for this message
Thomas Ohms (tohms) wrote :

Sorry had a typo: package of course is: splashy - 0.3.13-3ubuntu2~ppa1

Revision history for this message
James Westby (james-w) wrote :

Hi,

bug 328089 is making it difficult to work on this package, as it's not
installable.

I don't know enough about the package to know if that is fixable, or
how.

Thanks,

James

Changed in splashy (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Thomas Ohms (tohms) wrote :

That's weird as I haven't had any problems with installing. But I had splashy already installed. Will try it on a clean install and take care of that bug, too.

Revision history for this message
Thomas Ohms (tohms) wrote :

Did any reporters from this bug had problems as mentioned in bug https://bugs.launchpad.net/bugs/328089??

Revision history for this message
Thomas Ohms (tohms) wrote :

If anyone installed from my PPA please send a message as there need to be fixed some small changes!!
Any others never had splashy installed can install latest version from my PPA splashy - 0.3.13-3ubuntu2~ppa4 or wait until official version is released.
As bug #328089 is more critical I will follow up there and set this one as duplicate, so please don't write comments in here anymore and use the other one.

Revision history for this message
Thomas Ohms (tohms) wrote :

Forgot other duplicates. BugControl maintainers: is there a way to get it closed cleanly?

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 369670] Re: [Jaunty] apport crashing with splashy installed

On Sun, 2009-05-10 at 18:21 +0000, Thomas Ohms wrote:
> Forgot other duplicates. BugControl maintainers: is there a way to get
> it closed cleanly?

You can leave this open, it's still a bug in its own right.

Thanks,

James

Revision history for this message
Thomas Ohms (tohms) wrote :

Please review for sponsorship.

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Can someone sponsor this for Karmic?

I was helping out in #ubuntu+1 and someone saw this problem. I patched splashy the same way that Thomas did before I realized that he had already done the work.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Please provide a debdiff for karmic and then resubscribe ubuntu-universe-sponsors.

Changed in splashy (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This bug was in jaunty, which has reached EOL, and so will not be fixed. In karmic, the 'runlevel' command is inside the 'upstart' package which is part of base files and so will always be present.

Given that, I am closing this bug as Fix Released.

Changed in splashy (Ubuntu):
status: Confirmed → 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.