Bug#1129339: apt hangs for 25 seconds before acting if logind isn't running

Luca Boccassi luca.boccassi at gmail.com
Mon Mar 2 14:35:01 GMT 2026


Control: reassign -1 apt

On Mon, 2 Mar 2026 14:27:38 +0100 Julian Andres Klode <jak at debian.org> wrote:
> Control: reassign -1 systemd
>
> On Sun, Mar 01, 2026 at 09:32:42AM +0100, g1 wrote:
> > Package: apt
> > Version: 3.0.3
> > Severity: normal
> > X-Debbugs-Cc: g1pi at libero.it
> >
> > 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.

No, you are the caller, you decide your own timeouts. A component that
doesn't run on a system cannot work around your choice of timeouts,
obviously.



More information about the Pkg-systemd-maintainers mailing list