Bug#934454: Exception: 'NoneType' object has no attribute 'dependencies' if a package is disabled by pinning
Hi, +1 to Birger's question. I just upgraded to buster (unattended-upgrades 1.11.2) and this bug surprised me as well. In the meantime, I patched locally with this: grep -q 'if not pkg.candidate' /usr/bin/unattended-upgrade || sed -i 's/for dep in pkg.candidate.dependencies:/if not pkg.candidate: return acc\n\0/' /usr/bin/unattended-upgrade Thanks!
Bug#934454: Exception: 'NoneType' object has no attribute 'dependencies' if a package is disabled by pinning
Hi, the Fix is in 1.13. Buster still has 1.11.2. Will this be fixed in Buster as well? Cheers Birger
Bug#934454: Exception: 'NoneType' object has no attribute 'dependencies' if a package is disabled by pinning
Control: fixed -1 1.13 Hi Gianluigi, Gianluigi Tiesi ezt írta (időpont: 2019. aug. 11., V, 10:00): > > Package: unattended-upgrades > Version: 1.11.2 > Severity: important > > I've just upgraded to buster and /usr/bin/unattended-upgrade now fails with > an error: > > Exception: 'NoneType' object has no attribute 'dependencies' > > > the problem is in transitive_dependencies(): > > for dep in pkg.candidate.dependencies: > > > pkg.candidate is None when the package is systemd (uninstalled). > > I have /etc/apt/preferences.d/systemd as follow: > > Package: systemd > Pin: release * > Pin-Priority: -1 > > version in stretch of the package was working fine > > > I've added: > > if pkg.candidate is None: > return acc Thanks, it is already fixed in almost the same way. Cheers, Balint
Bug#934454: Exception: 'NoneType' object has no attribute 'dependencies' if a package is disabled by pinning
Package: unattended-upgrades Version: 1.11.2 Severity: important I've just upgraded to buster and /usr/bin/unattended-upgrade now fails with an error: Exception: 'NoneType' object has no attribute 'dependencies' the problem is in transitive_dependencies(): for dep in pkg.candidate.dependencies: pkg.candidate is None when the package is systemd (uninstalled). I have /etc/apt/preferences.d/systemd as follow: Package: systemd Pin: release * Pin-Priority: -1 version in stretch of the package was working fine I've added: if pkg.candidate is None: return acc before the for-loop Regards -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-9-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages unattended-upgrades depends on: ii debconf [debconf-2.0] 1.5.73 ii lsb-base 10.2019051400 ii lsb-release10.2019051400 ii python33.7.3-1 ii python3-apt1.8.4 pn python3-dbus pn python3-distro-info ii ucf3.0038+nmu1 ii xz-utils 5.2.4-1 Versions of packages unattended-upgrades recommends: ii cron [cron-daemon] 3.0pl1-134 Versions of packages unattended-upgrades suggests: pn bsd-mailx pn default-mta | mail-transport-agent ii needrestart 3.4-5 pn powermgmt-base pn python3-gi