Luckily I found an older machine I didn't fix manually today :)
[...]
check_conffile_prompt(/var/cache/apt/archives/gnupg2_2.2.4-1ubuntu1.2_all.deb)
found pkg: gnupg2
No conffiles in deb /var/cache/apt/archives/gnupg2_2.2.4-1ubuntu1.2_all.deb
(There is no member named 'conffiles')
blacklist: []
whitelist: []
Removing unused kernel packages: linux-modules-4.15.0-36-generic
linux-image-4.15.0-36-generic linux-headers-4.15.0-36-generic
linux-modules-extra-4.15.0-36-generic linux-headers-4.15.0-36
Keeping 5 auto-removable package(s) because it would also remove the following
packages which should be kept in this step: apt apt-transport-https apt-utils
avahi-autoipd avahi-daemon avahi-utils bind9-host chromium-browser
chromium-browser-l10n chromium-codecs-ffmpeg cups cups-bsd cups-client
cups-common cups-core-drivers cups-daemon cups-ipp-utils cups-ppdc
cups-server-common dnsutils file firefox firefox-locale-en gdm3 ghostscript
ghostscript-x gir1.2-gdm-1.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0
gir1.2-javascriptcoregtk-4.0 gir1.2-polkit-1.0 gir1.2-webkit2-4.0
gnome-bluetooth gnome-desktop3-data gnupg-agent gnupg2 gvfs gvfs-backends
gvfs-bin gvfs-common gvfs-daemons gvfs-fuse gvfs-libs initramfs-tools
initramfs-tools-bin initramfs-tools-core krb5-locales libapt-inst2.0
libapt-pkg5.0 libarchive13 libavahi-client3 libavahi-common-data
libavahi-common3 libavahi-core7 libavahi-glib1 libavahi-ui-gtk3-0 libbind9-160
libcaca0 libconfuse-common libconfuse2 libcups2 libcupscgi1 libcupsimage2
libcupsmime1 libcupsppdc1 libcurl3-gnutls libdns-export1100 libdns1100
libexiv2-14 libfreerdp-client2-2 libfreerdp2-2 libgd3 libgdm1
libgnome-bluetooth13 libgnome-desktop-3-17 libgs9 libgs9-common
libgssapi-krb5-2 libirs160 libisc-export169 libisc169 libisccc160 libisccfg160
libjavascriptcoregtk-4.0-18 libk5crypto3 libkrb5-3 libkrb5support0 libldb1
liblwres160 libmagic-mgc libmagic1 libnss-myhostname libnss-systemd libnss3
libpam-systemd libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0
libpoppler-glib8 libpoppler73 libraw16 libssl1.0.0 libssl1.1 libsystemd0
libtiff5 libu2f-udev libudev1 libvncclient1 libwavpack1 libwebkit2gtk-4.0-37
libwebkit2gtk-4.0-37-gtk2 libwinpr2-2 libzmq5 linux-firmware linux-generic
linux-generic-hwe-16.04 linux-headers-4.15.0-46 linux-headers-4.15.0-46-generic
linux-headers-generic linux-image-4.15.0-46-generic linux-image-generic
linux-libc-dev linux-modules-4.15.0-46-generic
linux-modules-extra-4.15.0-46-generic nplan openjdk-8-jdk
openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless openssl policykit-1
poppler-utils python-ldb python3-lxml snapd systemd systemd-sysv thunderbird
thunderbird-gnome-support thunderbird-locale-en thunderbird-locale-en-us tzdata
ubuntu-core-launcher udev
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1998, in <module>
sys.exit(main(options))
File "/usr/bin/unattended-upgrade", line 1798, in main
options.verbose or options.debug, options.dry_run)
File "/usr/bin/unattended-upgrade", line 1495, in do_auto_remove
if res:
UnboundLocalError: local variable 'res' referenced before assignment
Error in atexit._run_exitfuncs:
FileNotFoundError: [Errno 2] No such file or directory:
'/var/run/unattended-upgrades.pid'
Does that help already?
--
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