[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#834414: apt-daily.service fails permanently and quietly as it runs before network is up



Nicolas LE [2016-12-26 16:39:08+01] wrote:

> Confirming.

Confirming too on Debian 9 (Stretch) and apt version 1.4.6.

Systemd service apt-daily-upgrade.service can't do its job because it
tries to run on boot before network connection. The associated timer is
scheduled to run on

    [Timer]
    OnCalendar=*-*-* 6:00
    RandomizedDelaySec=60m
    Persistent=true

and because my computer is usually off at that moment the
Persistent=true rule makes the timer run the service immediately at
boot. That fails because network is not configured yet.

Here are the last two entries from the log
journalctl -u apt-daily-upgrade.service -o short-iso

-- Reboot --
2017-06-21T08:15:56+0300 mithlond systemd[1]: Starting Daily apt upgrade and clean activities...
2017-06-21T08:16:02+0300 mithlond apt.systemd.daily[1323]: An error occurred: 'Temporary failure resolving 'security.debian.org''
2017-06-21T08:16:02+0300 mithlond apt.systemd.daily[1323]: The URI 'http://security.debian.org/pool/updates/main/g/glibc/libc6-dev_2.24-11+deb9u1_amd64.deb' failed to download, aborting
2017-06-21T08:16:02+0300 mithlond systemd[1]: Started Daily apt upgrade and clean activities.
-- Reboot --
2017-06-22T07:42:06+0300 mithlond systemd[1]: Starting Daily apt upgrade and clean activities...
2017-06-22T07:42:13+0300 mithlond apt.systemd.daily[984]: An error occurred: 'Temporary failure resolving 'deb.debian.org''
2017-06-22T07:42:13+0300 mithlond apt.systemd.daily[984]: The URI 'http://deb.debian.org/debian-security/pool/updates/main/g/glibc/libc6-dev_2.24-11+deb9u1_amd64.deb' failed to download, aborting
2017-06-22T07:42:13+0300 mithlond systemd[1]: Started Daily apt upgrade and clean activities.

Attachment: signature.asc
Description: PGP signature


Reply to: