Why apt.systemd.daily always returns success?

Jakob Hasse <[email protected]> Sun, 5 Jul 2026 21:35:55 +0200
Newsgroups gmane.linux.debian.apt.devel
Message-ID <[email protected]>
Hello,

On Debian 13, I noticed that the daily update/upgrade script 
apt.systemd.daily always exists with success. E.g., when run with 
"update", following code is executed:

     if eval apt-get $XAPTOPT -y update $XSTDERR; then
         debug_echo "download updated metadata (success)."
         update_stamp $UPDATE_STAMP
         UPDATED=1
     else
         debug_echo "download updated metadata (error)"
     fi

Is this behavior intentional? On my Debian 13, this is run by systemd 
units which would happily report success, even if `apt-get` or 
`unattended-upgrade` fail. I believe without VERBOSE=2 as environment 
for the service, I won't even notice anything, which can lead to 
outdated system states slipping through (e.g., see here: 
https://askubuntu.com/questions/1529622/package-list-update-of-apt-daily-service-is-failing-silently-update-success-sta).

If there is no specific reason behind that behavior, would it be 
possible to accept a merge request that adds something like exit 1 or 
similar to signal errors to a caller of that script programmatically?

I'm not subscribed to the list, btw.

Thanks and All the Best,
Jakob