Red Hat Bugzilla – Bug 480440
UnicodeDecodeError when updating package with zh_CN locale
Last modified: 2009-04-14 11:55:34 EDT
+++ This bug was initially created as a clone of Bug #477158 +++
--- Additional comment from email@example.com on 2009-01-15 08:47:40 EDT ---
It said no package is marked as updated, then I download inkscape-0.46-6.fc10.1 directly from a fedora repository mirror, but encountered the following error when I installing the rpm package:
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Value: 'ascii' codec can't decode byte 0xe6 in position 57: ordinal not in range(128)
File : /usr/lib/python2.5/site-packages/yum/rpmtrans.py, line 376, in callback
self._instProgress( bytes, total, h )
File : /usr/lib/python2.5/site-packages/yum/rpmtrans.py, line 457, in _instProgress
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2151, in event
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2144, in _showName
self.base.package(package_id, status, self.curpkg.summary)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 235, in package
PackageKitBaseBackend.package(self, package_id, status, summary)
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 109, in package
print >> sys.stdout, "package\t$s\t$s\t$s" $ (status, package_id, summary)
--- Additional comment from firstname.lastname@example.org on 2009-01-15 16:49:53 EDT ---
You can install the package from command line: rpm -Uvh "downloaded-file.rpm"
I'm still interested in how did you get the above backtrace. Which tool did you try to use to install the package? Can you reproduce the issue?
--- Additional comment from email@example.com on 2009-01-15 16:56:13 EDT ---
Also, I'm wondering which locale (language setting) do you use? Obtain it with:
--- Additional comment from firstname.lastname@example.org on 2009-01-16 07:37:38 EDT ---
I successfully installed the package "inkscape-0.46-6.fc10.1" by command line，and it works fine now.
the backtrace above is displayed when I double click the file "inkscape-0.46-6.fc10.1.rpm" in desktop and after a few step, the error message is displayed in a dialog, I guess this is outputed by yum. I am curious about what's the difference between double click a rpm package to install it and type rpm xxx command in a terminal to install it.
as for may locale:
What version PackageKit? Thanks.
rpm -qa | grep PackageKit
it seems this usually happens when the full path of the RPM contains non-ascii characters, e.g., by putting the RPM to the Desktop when using Chinese locale (the directory name is in Chinese in this case).
Author: Richard Hughes <email@example.com>
Date: Mon Feb 16 16:07:23 2009 +0000
yum: don't backtrace with an internal error when the filename is not unicode. Fixes rh#480440
I'll do a new upstream release of PackageKit on Monday, and push an update to F10.
*** Bug 484288 has been marked as a duplicate of this bug. ***
PackageKit-0.3.15-1.fc10 has been submitted as an update for Fedora 10.
PackageKit-0.3.15-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.