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. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to powerd in Ubuntu. https://bugs.launchpad.net/bugs/1411972 Title: systemd service blocks upgrade on desktop Status in powerd package in Ubuntu: Confirmed 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/powerd/+bug/1411972/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp