On Mon, Mar 02, 2026 at 02:27:38PM +0100, Julian Andres Klode wrote: > Control: reassign -1 systemd > > On Sun, Mar 01, 2026 at 09:32:42AM +0100, g1 wrote: > > > > Before invoking dpkg to perform the work, apt-get connects to DBUS in > > order to make the seat-manager inhibit shutdowns. > > > > If you don't have systemd-logind or elogind running (because e.g. you > > were forced to install elogind as a dependency, but you disabled > > it), this hangs for 25 seconds, until dbus reports timeout on > > org.freedesktop.login1. > > This sounds like a bug in systemd or dbus or something; but likely this > is not a supported system configuration. >
Perhaps unsupported in Ubuntu, not in Debian. I believe this to be a genuine issue in APT: systemd provided the rope, but apt used it to hang itself to a possibly stuck external daemon. Not a problem, if one knows how to work around it: please do add DPkg::Inhibit-Shutdown to the apt.conf(5) man page. A package manager should be able to operate even when the only working process in the system is init=/bin/sh. As far as I can tell other package managers avoid linking against libsystemd even in distributions that rely exclusively on systemd.

