Comment 22 for bug 1624644

Revision history for this message
Brian Murray (brian-murray) wrote : Re: By default settings unattended-upgrade is unable to automatically remove packages that become unused in conjunction with updating by other software.

I found the description somewhat confusing because 'Unattended-Upgrade::Remove-New-Unused-Dependencies "true"; doesn't actually exist in /etc/apt/apt.conf.d/50unattended-upgrades, rather that's the default setting in unattended-upgrades since 0.90. Regardless, I was able to recreate the issue on an Ubuntu 16.04 system via the following procedure.

1) Use apt-get install to install a new kernel (linux-image-generic)
2) Run unattended-upgrades (observe "no pending auto-removals")

However, running 'sudo apt autoremove' does want to remove an old kernel.