Red Hat Bugzilla – Bug 454163
Importing GPG keys with non-ASCII userid fails
Last modified: 2014-01-21 18:03:41 EST
yum-3.2.16-2.fc9.noarch fails to import my GPG key due to Unicode decode error:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID a0adfbdf
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
File "/usr/share/yum-cli/yummain.py", line 241, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 193, in main
File "/usr/share/yum-cli/cli.py", line 366, in doTransaction
if self.gpgsigcheck(downloadpkgs) != 0:
File "/usr/share/yum-cli/cli.py", line 466, in gpgsigcheck
self.getKeyForPackage(po, lambda x, y, z: self.userconfirm())
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 2671, in
self.logger.critical(_('Importing GPG key 0x%s "%s" from %s') % (hexkeyid,
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 11: ordinal
not in range(128)
The userid in my key is "Ville Skyttä <firstname.lastname@example.org>".
A repo with which this can be reproduced is at http://cachalot.mine.nu/9/, repo
Can you try putting to_unicode() around the userid variable above?
Yes, that fixes it.
Ok, it should be fixed in 3.2.17 then when that comes out (probably this week).
yum-3.2.17-1.fc9 has been submitted as an update for Fedora 9
yum-3.2.17-1.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update yum'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-6301
yum-3.2.17-2.fc8 has been submitted as an update for Fedora 8
yum-3.2.17-2.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
yum-3.2.18-1.fc8 has been submitted as an update for Fedora 8
yum-3.2.19-1.fc8 has been submitted as an update for Fedora 8.
yum-3.2.19-3.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.