I had a quick glance at /usr/bin/unattended-upgrade, and it looks like
that Unattended-Upgrade::Remove-Unused-Dependencies only autoremoves
dependancies that have become auto-removeable during *this* very run of
unattended-upgrade! Anything that had already been auto-removeable
before invokation of /usr/bin/unattended-upgrade will not get
autoremoved by unattended-upgrade.

(See lists "pkgs_auto_removable" set in line 706, "now_auto_removable"
set in line 817, and only their difference being autoremoved in line
819)

Is that correct?


If this is the intended functionality of 
Unattended-Upgrade::Remove-Unused-Dependencies, then this is not a bug with 
unattended-upgrade, but with its documentation. 
/etc/apt/apt.conf.d/50unattended-upgrades says

    // Do automatic removal of new unused dependencies after the upgrade
    // (equivalent to apt-get autoremove)
    Unattended-Upgrade::Remove-Unused-Dependencies "true";

But it's actually only equivalent to apt-get autoremove if there was
nothing to be autoremoved beforehand. That should be clarified.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1267059

Title:
  "Unattended-Upgrade::Remove-Unused-Dependencies" does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1267059/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to