"Google, Inc" cannot be used as a trusted origin
Bug #878901 reported by
Bruno Pereira
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
High
|
Michael Vogt |
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-
2011-10-11 18:03:23,292 INFO Allowed origins are: ['o=Ubuntu,
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.
Changed in unattended-upgrades (Ubuntu): | |
status: | New → Confirmed |
Changed in unattended-upgrades (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → In Progress |
assignee: | nobody → Michael Vogt (mvo) |
Changed in unattended-upgrades (Ubuntu): | |
status: | Incomplete → Fix Released |
To post a comment you must log in.
sudo unattended-upgrades --dry-run --debug:
<------ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---->
Using (as described in the source code readme file):
Unattended- Upgrade: :Allowed- Origins {
"${distro_ id} ${distro_ codename} -security" ; codename} -updates" ; codename} -proposed" ; codename} -backports" ;
"origin= Google\ , Inc.,suite=stable";
// "${distro_id} ${distro_
// "${distro_id} ${distro_
// "${distro_id} ${distro_
};
Output:
$sudo unattended-upgrade --dry-run --debug a=oneiric- security' , 'o=origin= Google\ \,,a=Inc. ,suite= aArchive' ] 'oneiric- updates' origin:'Ubuntu' label:'Ubuntu' site:'nl. archive. ubuntu. com' isTrusted:True>"]) unattended- upgrade" , line 770, in <module> unattended- upgrade" , line 577, in main allowed_ origin( pkg,allowed_ origins) ): unattended- upgrade" , line 263, in is_allowed_origin _string( allowed, origin): unattended- upgrade" , line 164, in match_whitelist _string ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---->
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,
Checking: alsa-utils (["<Origin component:'main' archive:
Traceback (most recent call last):
File "/usr/bin/
main(options)
File "/usr/bin/
is_
File "/usr/bin/
if match_whitelist
File "/usr/bin/
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" ; codename} -updates" ; codename} -proposed" ; codename} -backports" ;
// "${distro_id} ${distro_
// "${distro_id} ${distro_
// "${distro_id} ${distro_
"Google, Inc.:stable";
};
Output:
$sudo unattended-upgrade --dry-run --debug a=oneiric- security' , 'o=Google, Inc.,a=stable'] 'oneiric- updates' origin:'Ubuntu' label:'Ubuntu' site:'nl. archive. ubuntu. com' isTrusted:True>"]) unattended- upgrade" , line 770, in <module> unattended- upgrade" , line 577, in main allowed_ origin( pkg,allowed_ origins) ): unattended- upgrade" , line 263, in is_allowed_origin _string( allowed, origin): unattended- upgrade" , line 164, in match_whitelist _string
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,
Checking: alsa-utils (["<Origin component:'main' archive:
Traceback (most recent call last):
File "/usr/bin/
main(options)
File "/usr/bin/
is_
File "/usr/bin/
if match_whitelist
File "/usr/bin/
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 a=oneiric- security' , 'o=origin= Google\ \,,a=Inc. ,suite= stable' ]
Initial blacklisted packages:
Starting unattended upgrades script
Allowed origins are: ['o=Ubuntu,
pkgs that look like they should be upgraded:
Fetched 0 B in 0s (0 B/s)
blacklist:...