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-release            10.2019051400
ii  python3                3.7.3-1
ii  python3-apt            1.8.4
pn  python3-dbus           <none>
pn  python3-distro-info    <none>
ii  ucf                    3.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                           <none>
pn  default-mta | mail-transport-agent  <none>
ii  needrestart                         3.4-5
pn  powermgmt-base                      <none>
pn  python3-gi                          <none>

Reply via email to