[Bug 1680599] Re: unattended-upgrades crashes without writing to the log on invalid config file entries

Patrik Karisch patrik at karisch.guru
Tue May 9 16:18:56 UTC 2017


Ok, error is gone now. There were some open python updates. After
manually updating everything, it doesn't fail anymore.

But sill an error, when unattended-upgrade are supposed to update, but
can't update anymore because of an outstanding python update.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to unattended-upgrades in Ubuntu.
https://bugs.launchpad.net/bugs/1680599

Title:
  unattended-upgrades crashes without writing to the log on invalid
  config file entries

Status in unattended-upgrades package in Ubuntu:
  Confirmed

Bug description:
  If Unattended-Upgrade::Allowed-Origins in 50unattended-upgrades
  contains an invalid entry, such as "invalid", unattended-upgrades
  crashes without writing to /var/log/unattended-upgrades/unattended-
  upgrades.log.

  # unattended-upgrades --debug
  Traceback (most recent call last):
    File "/usr/bin/unattended-upgrades", line 1536, in <module>
      main(options)
    File "/usr/bin/unattended-upgrades", line 1202, in main
      allowed_origins = get_allowed_origins()
    File "/usr/bin/unattended-upgrades", line 343, in get_allowed_origins
      allowed_origins = get_allowed_origins_legacy()
    File "/usr/bin/unattended-upgrades", line 328, in get_allowed_origins_legacy
      (distro_id, distro_codename) = s.split()
  ValueError: not enough values to unpack (expected 2, got 1)

  0.92ubuntu1.2 on 16.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1680599/+subscriptions



More information about the foundations-bugs mailing list