Comment 1 for bug 878901

Revision history for this message
Bruno Pereira (brunopereira81) wrote :

sudo unattended-upgrades --dry-run --debug:

<--------------------------------------------------------------------------------------->
Using (as described in the source code readme file):

Unattended-Upgrade::Allowed-Origins {
        "${distro_id} ${distro_codename}-security";
// "${distro_id} ${distro_codename}-updates";
// "${distro_id} ${distro_codename}-proposed";
// "${distro_id} ${distro_codename}-backports";
        "origin=Google\, Inc.,suite=stable";
};

Output:

$sudo unattended-upgrade --dry-run --debug
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=origin=Google\\,,a=Inc.,suite=aArchive']
Checking: alsa-utils (["<Origin component:'main' archive:'oneiric-updates' origin:'Ubuntu' label:'Ubuntu' site:'nl.archive.ubuntu.com' isTrusted:True>"])
Traceback (most recent call last):
  File "/usr/bin/unattended-upgrade", line 770, in <module>
    main(options)
  File "/usr/bin/unattended-upgrade", line 577, in main
    is_allowed_origin(pkg,allowed_origins)):
  File "/usr/bin/unattended-upgrade", line 263, in is_allowed_origin
    if match_whitelist_string(allowed, origin):
  File "/usr/bin/unattended-upgrade", line 164, in match_whitelist_string
    for s in token.split("=")]
ValueError: too many values to unpack
<--------------------------------------------------------------------------------------->

<--------------------------------------------------------------------------------------->
Using previous reported configuration line:

Unattended-Upgrade::Allowed-Origins {
        "${distro_id} ${distro_codename}-security";
// "${distro_id} ${distro_codename}-updates";
// "${distro_id} ${distro_codename}-proposed";
// "${distro_id} ${distro_codename}-backports";
        "Google, Inc.:stable";
};

Output:

$sudo unattended-upgrade --dry-run --debug
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=Google, Inc.,a=stable']
Checking: alsa-utils (["<Origin component:'main' archive:'oneiric-updates' origin:'Ubuntu' label:'Ubuntu' site:'nl.archive.ubuntu.com' isTrusted:True>"])
Traceback (most recent call last):
  File "/usr/bin/unattended-upgrade", line 770, in <module>
    main(options)
  File "/usr/bin/unattended-upgrade", line 577, in main
    is_allowed_origin(pkg,allowed_origins)):
  File "/usr/bin/unattended-upgrade", line 263, in is_allowed_origin
    if match_whitelist_string(allowed, origin):
  File "/usr/bin/unattended-upgrade", line 164, in match_whitelist_string
    for s in token.split("=")]
ValueError: need more than 1 value to unpack

These are tested on 11.10 with updates pending after running apt-get update.

After running apt-get upgrade and getting them all installed this is the output:

Using readme file method:

$sudo unattended-upgrade --dry-run --debug
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=origin=Google\\,,a=Inc.,suite=stable']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
blacklist: []
InstCount=0 DelCount=0 BrokenCout=0
No packages found that can be upgraded unattended

Using "Google, Inc.:stable"; instead:
$sudo unattended-upgrade --dry-run --debug
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,a=oneiric-security', 'o=Google, Inc.,a=stable']
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
blacklist: []
InstCount=0 DelCount=0 BrokenCout=0
No packages found that can be upgraded unattended

No faults, still doesn't work as predicted.