Package: polkitd
Version: 126-2
Severity: important
On a fresh Debian 13 (trixie) install, installing libvirt/KVM pulls in
polkitd. dbus-daemon reloads its configuration (via inotify and again via
the dbus dpkg trigger) before polkitd's postinst creates the "polkitd"
system user, so the policy in org.freedesktop.PolicyKit1.conf is ignored:
dbus-daemon: Unknown username "polkitd" in message bus configuration file
The dbus trigger runs before "configure polkitd" (see dpkg.log below),
and nothing reloads dbus after the user is created. As a result polkitd
cannot own org.freedesktop.PolicyKit1 ("Lost the name ... - exiting"),
activation times out, and libvirt reports "Authorization not available"
even for root.
Workaround: systemctl reload dbus && systemctl restart polkit
Suggested fix: create the user in preinst, or reload dbus at the end
of postinst.
dpkg.log:
2026-12-01 09:54:45 install polkitd:amd64 <none> 126-2
2026-12-01 09:54:45 status half-installed polkitd:amd64 126-2
2026-12-01 09:55:11 status half-configured dbus:amd64 1.16.2-2
2026-12-01 09:55:11 status installed dbus:amd64 1.16.2-2
2026-12-01 09:55:11 configure polkitd:amd64 126-2 <none>
2026-12-01 09:55:11 status half-configured polkitd:amd64 126-2
2026-12-01 09:55:12 status installed polkitd:amd64 126-2
journalctl -u dbus: Dec 01 09:54:46 kvm.domain.com dbus-daemon[1413]:
[system] Reloaded configuration
Dec 01 09:54:46 kvm.domain.com dbus-daemon[1413]: Unknown username
"polkitd" in message bus configuration file
Dec 01 09:54:46 kvm.domain.com dbus-daemon[1413]: Unknown username
"polkitd" in message bus configuration file
Dec 01 09:54:46 kvm.domain.com dbus-daemon[1413]: [system] Reloaded
configuration
Dec 01 09:55:11 kvm.domain.com dbus-daemon[1413]: Unknown username
"polkitd" in message bus configuration file
Dec 01 09:55:11 kvm.domain.com dbus-daemon[1413]: Unknown username
"polkitd" in message bus configuration file
Dec 01 09:55:11 kvm.domain.com dbus-daemon[1413]: [system] Reloaded
configuration
--
WBR
Oleksii Opaliev