Thinking about this some more, we don't actually want to query/use polkit when calling systemctl from maintainer scripts. These always run as root, and it's not expected at all that they (potentially) ask interactively for authentication. So we can call systemctl with --no- ask-password to disable querying of polkit which will not only avoid these warnings, but also avoid triggering polkit at all, which robustifies package installation as there are fewer moving parts.
This needs to be done in init-system-helpers as well as systemd's package trigger. ** Patch added: "proposed init-system-helpers patch" https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1565617/+attachment/4622853/+files/0001-Call-systemctl-with-no-ask-password-to-avoid-queryin.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1565617 Title: "polkitd.service is masked" warnings on package install while policykit-1 is unpacked but not yet configured To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/init-system-helpers/+bug/1565617/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs