Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1061844: /usr/lib/apt/apt.systemd.daily: misleading comment about reporting by mail

5 views
Skip to first unread message

u...@net9.cf

unread,
Jan 29, 2024, 4:10:04 PM1/29/24
to
Package: apt
Version: 2.6.1
Severity: normal

$ grep -B 1 -A 5 mail /usr/lib/apt/apt.systemd.daily
# APT::Periodic::Verbose "0";
# - Send report mail to root
# 0: no report (or null string)
# 1: progress report (actually any string)
# 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
# 3: + trace on
#

I increased the verbosity, but no mail was recieved. I can't see any mail
command in /usr/lib/apt/apt.systemd.daily. Does the script actually written
to send a report by email? I can see the increased verbosity in the system
journal. Perhaps the

# - Send report mail to root

comment was written with cron job in mind?

--
u34

u...@net9.cf

unread,
Jan 31, 2024, 6:50:05 PM1/31/24
to
Control:found 1061844 2.7.10
Control:thanks

See https://salsa.debian.org/apt-team/apt/-/blob/2845127968cda30be8423e1d3a24dae0e797bcc8/debian/apt.systemd.daily#L74-80
At the time of writing, The blob was at
https://salsa.debian.org/apt-team/apt/-/blob/main/debian/apt-daily.service?ref_type=heads
At least, change line 75 (#L75)
# - Send report mail to root
into:
# - Send report mail to root with old style cron job.
# - When run by systemd timer, verbose output can be read by journalctl --unit apt-daily

--
u34
0 new messages