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 Touch seeded packages, which is subscribed to unattended-upgrades in Ubuntu. https://bugs.launchpad.net/bugs/1795696 Title: /usr/bin/unattended-upgrade:UnboundLocalError:/usr/bin/unattended- upgrade@1991:main:do_auto_remove Status in unattended-upgrades package in Ubuntu: Fix Released Status in unattended-upgrades source package in Bionic: Confirmed Bug description: The Ubuntu Error Tracker has been receiving reports about a problem regarding unattended-upgrades. This problem was most recently seen with package version 1.1ubuntu1.18.04.5, the problem page at https://errors.ubuntu.com/problem/651a7b7a070dd794d8cf2f5ea8e974614fdedb8e contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports. If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1795696/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

