systemd service blocks upgrade on desktop

Bug #1411972 reported by Edwin Pujols on 2015-01-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powerd (Ubuntu)
High
Martin Pitt

Bug Description

When powerd is installed on the desktop, upgrading it fails given that `lxc-android-config.service` doesn't exist: dpkg aborts the upgrade on the final steps since it cannot restart `lxc-android-config`.

I had powerd installed because I recognized that some Unity 7 packages suggested it (I installed from a mini iso).

Description: Ubuntu Vivid Vervet (development branch)
Release: 15.04

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: powerd (not installed)
ProcVersionSignature: Ubuntu 3.18.0-9.10-generic 3.18.2
Uname: Linux 3.18.0-9-generic x86_64
ApportVersion: 2.15.1-0ubuntu2
Architecture: amd64
Date: Sat Jan 17 08:41:24 2015
SourcePackage: powerd
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Edwin Pujols (edwinpm5) wrote :
Changed in powerd (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Martin Pitt (pitti) wrote :

I recommend to call dh_installinit with --no-start. This won't harm the phone or the boot, but will prevent this failure when you try to install the package on a machine without android. Note that on a desktop with upstart it seems to work:

Setting up powerd (0.16+15.04.20150120-0ubuntu1) ...
powerd start/running, process 1802

but it's not running, and dmesg shows:

[ 333.993882] init: powerd main process ended, respawning
[ 334.145907] init: powerd main process (1864) killed by ABRT signal
[ 334.145922] init: powerd respawning too fast, stopped

i. e. as upstart doesn't treat this as a failure (even though startup fails), the package install happens to work. But that's not true under systemd.

Martin Pitt (pitti) wrote :

MP sent.

Changed in powerd (Ubuntu):
status: Confirmed → In Progress
importance: High → Low
Martin Pitt (pitti) wrote :

This just became a whole lot more urgent as this is now blocking tests like ubuntu-system-settings-online-accounts.

Changed in powerd (Ubuntu):
importance: Low → High
status: In Progress → Fix Committed
assignee: nobody → Martin Pitt (pitti)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powerd - 0.16+15.04.20150219-0ubuntu2

---------------
powerd (0.16+15.04.20150219-0ubuntu2) vivid; urgency=medium

  * Don't start powerd at package installation. (LP: #1411972)
 -- Martin Pitt <email address hidden> Wed, 04 Mar 2015 22:53:57 +0100

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

Other bug subscribers

Bug attachments