invoke-rc.d needs systemd support

Bug #1318552 reported by dino99
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Utopic updates (i386)

get a broken package while trying to upgrade 0.2.25 -> 0.2.26

E: /var/cache/apt/archives/whoopsie_0.2.26_i386.deb: subprocess new pre-removal script returned error exit status 5

Preparing to unpack .../whoopsie_0.2.26_i386.deb ...
Failed to issue method call: Unit whoopsie.service not loaded.
invoke-rc.d: initscript whoopsie, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to issue method call: Unit whoopsie.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/whoopsie_0.2.26_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 5
Failed to issue method call: Unit whoopsie.service failed to load: No such file or directory. See system logs and 'systemctl status whoopsie.service' for details.
invoke-rc.d: initscript whoopsie, action "start" failed.

cleaning /var/cache ... or trying to purge or downgrade it also fail.

dino99 (9d9)
tags: added: systemd-boot utopic
Revision history for this message
Martin Pitt (pitti) wrote :

This is fixed with the generic systemd support addition to invoke-rc.d: https://launchpad.net/ubuntu/+source/sysvinit/2.88dsf-41ubuntu8

Unfortunately this is stuck in -proposed, we need to nudge this a bit.

summary: - [0.2.26] fail to upgrade
+ invoke-rc.d needs systemd support
affects: whoopsie (Ubuntu) → sysvinit (Ubuntu)
Changed in sysvinit (Ubuntu):
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

As a workaround, do dist-upgrades under upstart for now and then boot back to systemd.

Revision history for this message
dino99 (9d9) wrote :

sysvinit (2.88dsf-41ubuntu10) utopic; is now installed, but whoopsie is still broken.
(continue upgrading without reboot, as its not a show stopper)

dino99 (9d9)
description: updated
Revision history for this message
dino99 (9d9) wrote :

Feedback:

As new updates was not upgradable due to the whoopsie lock, i've forced its removal:

sudo rm /var/lib/dpkg/info/whoopsie.prerm
sudo dpkg --remove --force-remove-reinstreq whoopsie

Then whoopsie 0.2.26 has been reinstalled witout problem; and the other packages have been upgraded as usual.

So that problem is fixed after that tweak.

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

sysvinit (2.88dsf-41ubuntu8) utopic; urgency=medium

  * Backport systemd support for service and invoke-rc.d from current Debian
    version, to fix package install/upgrade failures when running with
    systemd.

 -- Martin Pitt <email address hidden> Mon, 12 May 2014 08:55:08 +0200

Changed in sysvinit (Ubuntu):
status: Fix Committed → 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.