Closed Terae closed 3 years ago
You'll have to disable "minimal steps" so that dpkg hooks only run once. But this means that you might have to wait a long time when rebooting as it needs to finish installing all updates. See the config file for the concrete option.
Oh thank you very much, it works like a charm!
To resolve the issue, I changed a parameter in the file /etc/apt/apt.conf.d/50unattended-upgrades
:
Unattended-Upgrade::MinimalSteps "false";
In Debian 9, an
unattended-upgrades
run produced a uniqueapt-listchanges
summary mail because the/usr/bin/apt-listchanges --apt
script was called once during the update (DPkg::Pre-Install-Pkgs
variable on the file/etc/apt/apt.conf.d/20listchanges
).The behavior is a little bit different in Debian 10: running
unattended-upgrades
makes the/usr/bin/apt-listchanges --apt
script called once per package updated.I wish
unattended-upgrades
to update all packages at the same time as before to not be spammed byapt-listchanges
, is there any configuration parameter I missed?You can reproduce the N-times called
apt-listchanges
test with the following files:Then,
docker build -t apt-listchanges .
anddocker run -it apt-listchanges bash
opens a shell, you can typeunattended-upgrades -v
and count the lines in/tmp/apt-listchanges.log
(one line withdebian:stretch
, multiple lines withdebian:buster
)