#1127783 apt-helper: properly wait for network (or not at all)

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Yuri Arabadji
Date:
2026-02-16 22:09:02 UTC
Severity:
normal
#1127783#5
Date:
2026-02-12 22:21:35 UTC
From:
To:
I don't like how it directly invokes `/lib/systemd/systemd-networkd-wait-online` on `systemd-networkd` systems. I believe a different approach should be chosen, e.g., `systemctl start systemd-networkd-wait-online.service` with a timer that would kill that forked child on timeout. Or with a `start --no-block` and then `is-active` in loop for a predetermined period.

The reason for my complaint is the second paragraph of my issue opened @ https://github.com/systemd/systemd/issues/40523

Or maybe let the user configure the invocation, e.g., allowing them to specify `--any` or maybe just any options they desire.

Thanks.

#1127783#10
Date:
2026-02-16 22:06:24 UTC
From:
To:
OR you could just go the full systemd way and just require the respective target. You already specify ordering, so why not do the req dep? And drop the `ExecStartPre` stuff.

apt-daily*.service:
After = network-online.target
Wants = network-online.target