Package: unattended-upgrades
Version: 1.15
Severity: normal
Dear Maintainer,
My motd currently reports:
7 updates could not be installed automatically. For more details,
see /var/log/unattended-upgrades/unattended-upgrades.log
(this is the output of
/usr/share/unattended-upgrades/update-motd-unattended-upgrades )
However, there is no useful information in that log file. Here is the
result of two manual invocations of "sudo unattended-upgrade" with no
flags. Note well, there is nothing reported in "Packages that are
kept back"
2019-11-29 09:09:45,219 INFO Initial blacklist:
2019-11-29 09:09:45,222 INFO Initial whitelist:
2019-11-29 09:09:45,222 INFO Starting unattended upgrades script
2019-11-29 09:09:45,223 INFO Allowed origins are: o=Debian,a=testing
2019-11-29 09:09:55,518 INFO Removing unused kernel packages:
linux-image-5.2.0-2-amd64
2019-11-29 09:10:42,322 INFO Packages that were successfully auto-removed:
linux-image-5.2.0-2-amd64
2019-11-29 09:10:42,323 INFO Packages that are kept back:
2019-11-29 09:10:42,902 INFO Packages that will be upgraded: gir1.2-ibus-1.0
libibus-1.0-5 libio-async-perl libv4l-0 libv4lconvert0 sensible-utils
2019-11-29 09:10:42,903 INFO Writing dpkg log to
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2019-11-29 09:11:41,873 INFO All upgrades installed
2019-11-29 09:14:19,581 INFO Initial blacklist:
2019-11-29 09:14:19,584 INFO Initial whitelist:
2019-11-29 09:14:19,585 INFO Starting unattended upgrades script
2019-11-29 09:14:19,585 INFO Allowed origins are: o=Debian,a=testing
2019-11-29 09:14:24,099 INFO Packages that will be upgraded:
However, there are packages that are failing to install. Here is "apt
full-upgrade -s"
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
fuse
The following NEW packages will be installed:
fuse3
The following packages will be upgraded:
gvfs gvfs-backends gvfs-common gvfs-daemons gvfs-fuse gvfs-libs sshfs
7 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Only after manually running "sudo unattended-upgrade -d" do I get
useful information in the log file. Here are some excerpts:
2019-11-29 09:14:52,719 DEBUG Checking: gvfs ([<Origin component:'main'
archive:'testing' origin:'Debian' label:'Debian' site:'deb.debian.org'
isTrusted:True>])
2019-11-29 09:14:52,957 DEBUG sanity check failed for:
{'gvfs-daemons=1.42.1-3', 'gvfs-fuse=1.42.1-3', 'gnome=1:3.30+2',
'gvfs-backends=1.42.1-3', 'gnome-core=1:3.30+2', 'gvfs-libs=1.42.1-3',
'gvfs=1.42.1-3', 'task-gnome-desktop=3.55', 'gvfs-common=1.42.1-3'} : pkg
gvfs-fuse is marked to be deleted
...
2019-11-29 09:14:54,563 DEBUG Checking: gvfs-fuse ([<Origin component:'main'
archive:'testing' origin:'Debian' label:'Debian' site:'deb.debian.org'
isTrusted:True>])
2019-11-29 09:14:54,780 DEBUG sanity check failed for: {'fuse=2.9.9-2',
'gvfs-daemons=1.42.1-3', 'gvfs-fuse=1.42.1-3', 'gvfs-backends=1.42.1-3',
'fuse3=3.7.0-1', 'gvfs-libs=1.42.1-3', 'gvfs=1.42.1-3', 'gvfs-common=1.42.1-3'}
: pkg fuse is marked to be deleted
* What outcome did you expect instead?
If packages are not being installed because other packages must be
deleted, that's fine. But the log file should explicitly state so,
including listing the affected packages.
It seems it would be a fairly simple matter to simply print out into
the log file the contents of /var/lib/unattended-upgrades/kept-back .
I also suspect that if the only reason packages are being held back is
because a failing sanity check, then there is a bug in earlier in the
unattended-upgrade script.
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.3.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages unattended-upgrades depends on:
ii debconf [debconf-2.0] 1.5.73
ii lsb-base 11.1.0
ii lsb-release 11.1.0
ii python3 3.7.5-1
ii python3-apt 1.8.4+b1
ii python3-dbus 1.2.14-1
ii python3-distro-info 0.22
ii ucf 3.0038+nmu1
ii xz-utils 5.2.4-1+b1
Versions of packages unattended-upgrades recommends:
ii anacron 2.3-29
ii cron [cron-daemon] 3.0pl1-135
ii systemd-sysv 243-8
Versions of packages unattended-upgrades suggests:
pn bsd-mailx <none>
pn default-mta | mail-transport-agent <none>
pn needrestart <none>
ii powermgmt-base 1.36
ii python3-gi 3.34.0-3
-- Configuration Files:
/etc/logrotate.d/unattended-upgrades changed:
/var/log/unattended-upgrades/unattended-upgrades.log
/var/log/unattended-upgrades/unattended-upgrades-dpkg.log
/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
{
rotate 999
monthly
missingok
notifempty
}
-- debconf information:
unattended-upgrades/enable_auto_updates: true