My apt doesn't have that option (yet?) Instead I used:
# apt-get --dry-run autoremove | grep ^Remv Remv ccnet [6.1.5-1] Remv libccnet0 [6.1.5-1] Remv libseafile0 [6.1.8-1240~ubuntu16.04.1] Remv libsearpc1 [3.0.8.3-138~ubuntu16.04.1] Remv linux-headers-4.15.0-36-generic [4.15.0-36.39] Remv linux-headers-4.15.0-36 [4.15.0-36.39] Remv linux-modules-extra-4.15.0-36-generic [4.15.0-36.39] Remv linux-image-4.15.0-36-generic [4.15.0-36.39] Remv linux-modules-4.15.0-36-generic [4.15.0-36.39] Remv python-searpc [3.0.8-1] -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1795696 Title: /usr/bin/unattended-upgrade:UnboundLocalError:/usr/bin/unattended- upgrade@1991:main:do_auto_remove To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1795696/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
