[Bug 878901] Re: "Google, Inc" cannot be used as a trusted origin

brunopereira81 brunopereira81 at gmail.com
Thu Oct 20 20:29:30 UTC 2011


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.

-- 
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/878901

Title:
  "Google, Inc" cannot be used as a trusted origin

Status in “unattended-upgrades” package in Ubuntu:
  Confirmed

Bug description:
  After adding "Google, Inc.:stable"; as one of the lines in my trusted
  origins in Ubuntu 11.10, I get a fault every time I run "unattended-
  upgrade --dry-run". If there are not updates available on the system
  the log from "unattended-upgrades" looks like this:

  2011-10-11 18:03:23,292 INFO Allowed origins are: ['o=Ubuntu,a
  =oneiric-security', 'o=Google, Inc.,a=stable']

  If there are packages available the "unattended-upgrade --dry-run"
  will exit with a fault. This is possibly because of the space in
  "Google, Inc" source.

  Any other way of solving this?

  This was tested on Ubuntu 11.04 and Ubuntu 11.10.

  On Ubuntu 11.10 package version is 0.73ubuntu1.

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




More information about the foundations-bugs mailing list