Your message dated Mon, 12 Aug 2019 14:45:30 +0200
with message-id 
<cak0odpyacxfumd6wvr4julm4ocu+5ow+juzxv_jf+tmv2n4...@mail.gmail.com>
and subject line Re: Bug#934454: Exception: 'NoneType' object has no attribute 
'dependencies' if a package is disabled by pinning
has caused the Debian Bug report #934454,
regarding Exception: 'NoneType' object has no attribute 'dependencies' if a 
package is disabled by pinning
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
934454: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934454
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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>

--- End Message ---
--- Begin Message ---
Control: fixed -1 1.13

Hi Gianluigi,

Gianluigi Tiesi <[email protected]> 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

--- End Message ---

Reply via email to