Ubuntu/apt-daily

From Omnia
Revision as of 18:21, 3 November 2026 by Kenneth (talk | contribs) (Created page with "== Stuck on wait-online == <pre> systemd[1]: Starting apt-daily.service - Daily apt download activities... systemd-networkd-wait-online[1336808]: Timeout occurred while waiting for network connectivity. apt-helper[1336806]: E: Sub-process /lib/systemd/systemd-networkd-wait-online returned an error code (1) systemd[1]: apt-daily.service: Deactivated successfully. systemd[1]: Finished apt-daily.service - Daily apt download activities. </pre> Hack solution #1: * Edit /etc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Stuck on wait-online

systemd[1]: Starting apt-daily.service - Daily apt download activities...
systemd-networkd-wait-online[1336808]: Timeout occurred while waiting for network connectivity.
apt-helper[1336806]: E: Sub-process /lib/systemd/systemd-networkd-wait-online returned an error code (1)
systemd[1]: apt-daily.service: Deactivated successfully.
systemd[1]: Finished apt-daily.service - Daily apt download activities.

Hack solution #1:

  • Edit /etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
  • add "--timeout=5" to ExecStart:
    • ExecStart=/lib/systemd/systemd-networkd-wait-online --timeout=5
  • Reboot, and it should skip network check

Hack solution #2:

sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service

ref: