I'm running a raspberry pi (Raspbian 10 -- buster) with unattended-upgrades installed and configured. Today I got a mail report with the following content:
Unattended upgrade result: All upgrades installed
Packages with upgradable origin but kept back:
linux-libc-dev
Goal: To configure unattended-upgrades
so that it does not send me notifcations (daily) because of held back packages. It could either install them by itself or refrain from sending a mail-report. Setting Unattended-Upgrade::MailOnlyOnError
to true
is not an option for me because I want to be notified about successful upgrades.
My config is as follows:
/etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Origins-Pattern {
"origin=Debian,codename=${distro_codename},label=Debian";
"origin=Debian,codename=${distro_codename},label=Debian-Security";
};
Unattended-Upgrade::Package-Blacklist {
};
Unattended-Upgrade::Mail "MYMAILADDRESS";
Unattended-Upgrade::Sender "SENDERADDRESS";
Unattended-Upgrade::Remove-Unused-Dependencies "true";
Unattended-Upgrade::Automatic-Reboot "true";
Edit:
Output of apt-cache policy linux-libc-dev
linux-libc-dev:
Installed: 4.18.20-2+rpi1
Candidate: 1:1.20210430-2
Version table:
1:1.20210430-2 500
500 http://archive.raspberrypi.org/debian buster/main armhf Packages
5.10.28-1+rpi1 -1
-1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
*** 4.18.20-2+rpi1 500
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
100 /var/lib/dpkg/status
Output of apt-get -d install linux-libc-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
linux-libc-dev
1 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
Need to get 1.011 kB of archives.
After this operation, 54,3 kB disk space will be freed.
Get:1 http://archive.raspberrypi.org/debian buster/main armhf linux-libc-dev armhf 1:1.20210430-2 [1.011 kB]
Fetched 1.011 kB in 0s (3.006 kB/s)
Download complete and in download only mode
So far I only found articles explaining how you can prevent packages from being updated by putting them into the Package-Blacklist field. That, however, is empty in my config. So why is the package linux-libc-dev held back from being upgraded? Is there another configuration that I'm not aware of and which might cause this? Does it relate to the Origins-Pattern that I've configured?
Thanks for any advice in advance!
apt-get -d install linux-libc-dev
), or maybe just checking available versionsapt-cache policy linux-libc-dev
(are you using backports?)apt list --upgradable
that it says that an upgrade forlinux-libc-dev
is available from Debian Testing (linux-libc-dev/testing 1:1.20210430-2 armhf [upgradable from: 4.18.20-2+rpi1]
). Also, as far as I know, I don't use any backports.