On Sat, 07 Feb 2026 09:01:37 +0100 Harald Dunkel <[email protected]> wrote:
Thats also the reason why the anacron upgrade to Debian 13 gets stuck withroot 55481 1 0 08:08 ? 00:00:01 sshd: root@pts/5 root 55488 55481 0 08:08 pts/5 00:00:00 \_ -bash root 56821 55488 0 08:14 pts/5 00:00:02 \_ apt dist-upgrade root 66570 56821 0 08:17 pts/6 00:00:00 \_ /usr/bin/dpkg --status-fd 40 --configure --pending root 66635 66570 0 08:17 pts/6 00:00:00 \_ /bin/sh /var/lib/dpkg/info/anacron.postinst configure 2.3-36 root 66697 66635 0 08:17 pts/6 00:00:00 \_ /usr/bin/perl /usr/bin/deb-systemd-invoke restart anacron.service anacron.timer root 66704 66697 0 08:17 pts/6 00:00:00 \_ systemctl --quiet --system restart anacron.service anacron.timer root 66705 66704 0 08:17 pts/6 00:00:00 \_ /usr/bin/systemd-tty-ask-password-agent --watch You have to kill the anacron.service for apt upgrade to proceed.
So I could not reproduce a hanging upgrade from Debian 12 (bookworm) to Debian 13 (trixie). anacron's jobs from the previous anacron.service are killed before the "apt dist-upgrade" anacron.service is started and the upgrade finished with anacron.service running.
I think systemd-tty-ask-password-agent waiting for a password is the hang which may occur from the daemon-reload [1] in your environment? Is there something different from a default install or permission changes?
[1] https://salsa.debian.org/debian/debhelper/-/blob/main/autoscripts/postinst-systemd-restart?ref_type=heads
-- Lance Lin GPG Fingerprint: 4A31 DB5A 1EE4 096C 8739 9880 9036 4929 4C33 F9B7
OpenPGP_0x903649294C33F9B7.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature

