systemd service blocks upgrade on desktop
| 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-
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)
ProcVersionSign
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
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-02-10
- Ubuntu Phablet Team: Pending requested 2015-02-10
-
Diff: 10 lines (+3/-0)1 file modifieddebian/rules (+3/-0)
| Edwin Pujols (edwinpm5) wrote : | #1 |
| Changed in powerd (Ubuntu): | |
| importance: | Undecided → High |
| status: | New → Confirmed |
| Martin Pitt (pitti) wrote : | #2 |
| Martin Pitt (pitti) wrote : | #3 |
MP sent.
| Changed in powerd (Ubuntu): | |
| status: | Confirmed → In Progress |
| importance: | High → Low |
| Martin Pitt (pitti) wrote : | #4 |
This just became a whole lot more urgent as this is now blocking tests like ubuntu-
| Changed in powerd (Ubuntu): | |
| importance: | Low → High |
| status: | In Progress → Fix Committed |
| assignee: | nobody → Martin Pitt (pitti) |
| Launchpad Janitor (janitor) wrote : | #5 |
This bug was fixed in the package powerd - 0.16+15.
---------------
powerd (0.16+15.
* 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 |


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.