I think I know what's going on: Unpacking apport (2.19.1-0ubuntu2) ... Selecting previously unselected package policykit-1. Preparing to unpack .../policykit-1_0.105-11ubuntu1_amd64.deb ... Unpacking policykit-1 (0.105-11ubuntu1) ... Processing triggers for shared-mime-info (1.3-1) ... Processing triggers for man-db (2.7.4-1) ... Processing triggers for ureadahead (0.100.0-19) ... Processing triggers for systemd (225-1ubuntu9) ... Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
The systemd trigger does a "systemctl daemon-reload". But at this point policykit-1 is merely unpacked, but *not* configured yet. There is a /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf.dpkg-new, which isn't yet "active", so polkit has no D-Bus policy and can't start. This does not trigger with only installing policykit-1 as that has no /etc/init.d/* and thus does not activate systemd's package trigger. So this happens if you install policykit-1 together with some package which ships an /etc/init.d/ script. This will become much simpler once we can ship D-Bus policies in /usr. However, we need to wait with that until dbus 1.10 is in an LTS, i. e. we can rely on having "policies in /usr" support for an upgrade; otherwise we'll break upgrades. Until then, we need to disallow polkit startup while the package is unconfigured. This could happen by the preinst doing "ln -s /dev/null /run/systemd/system/polkitd.service" and the postinst removing that link again. ** Changed in: policykit-1 (Ubuntu) Importance: Medium => High ** Changed in: policykit-1 (Ubuntu Vivid) Importance: Medium => High ** Changed in: policykit-1 (Ubuntu) Status: Triaged => In Progress ** No longer affects: systemd (Ubuntu Vivid) ** No longer affects: systemd (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1447654 Title: installing policykit-1 hangs under systemd To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/1447654/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs