Bug 468602 - rpm failes to install with gnome-open due to UnicodeDecodeError in yumBackend
rpm failes to install with gnome-open due to UnicodeDecodeError in yumBackend
Product: Fedora
Classification: Fedora
Component: PackageKit (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Robin Norwood
Fedora Extras Quality Assurance
: 460913 468674 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2008-10-26 13:13 EDT by Sergey Kurtsev
Modified: 2009-03-26 15:38 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-10-27 09:02:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sergey Kurtsev 2008-10-26 13:13:47 EDT
Description of problem:
.rpm file located in cyrillic directories can not be installed with gnome-open either from nautilus or from any other application due to 'exceptions.UnicodeDecodeError'

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Relocate any .rpm file into cyrillic (or I suppose any other non-english) directory
2. Open directory in nautilus 
3. Either run .rpm file from nautilus or execute 'gnome-open some.rpm' from console
Actual results:
Fails to install rpm. Displays error window with the following stacktrace:
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Value: 'ascii' codec can't decode byte 0xd0 in position 54: ordinal not in range(128)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2150, in <module>
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2147, in main
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 599, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 512, in dispatch_command
self.install_files(trusted, files_to_inst)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1337, in install_files
self.error(ERROR_LOCAL_INSTALL_FAILED, "Can't install $s" $ inst_file)
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 87, in error
print "error\t$s\t$s" $ (err, description)
File : /usr/lib/python2.5/codecs.py, line 303, in write
data, consumed = self.encode(object, self.errors)
Comment 1 Sergey Kurtsev 2008-10-26 13:18:28 EDT
This bug is not hard to bump in, because when after Fedora installation user switches to his own language and later manually downloads any .rpm into default Downloads folder (which is called 'Загрузки' in Russian) - the user won't be able to install it (from any of the following: Nautilus, Opera, Firefox) without going to console.
Comment 2 Richard Hughes 2008-10-26 14:09:40 EDT
*** Bug 460913 has been marked as a duplicate of this bug. ***
Comment 3 Richard Hughes 2008-10-27 04:03:14 EDT
I've fixed this upstream in:

commit 50cc67b36d2eb71fec08995c31373b5b4d31065f
Author: Richard Hughes <richard@hughsie.com>
Date:   Sun Oct 26 18:10:40 2008 +0000

    yum: handle utf8 error values to fix non English locales. Fixes rh#468602

I switched my system language to French and then created a Загрузки directory
with an rpm in it. This now works. I'll upload a new version to rawhide on

Are there any other operations you've noticed that fail in a non-English
locale? Thanks.
Comment 4 Sergey Kurtsev 2008-10-27 05:24:06 EDT
Thank you. If I find any other failures - I'll let you know.
Comment 5 Richard Hughes 2008-10-27 09:00:50 EDT
*** Bug 468674 has been marked as a duplicate of this bug. ***
Comment 6 Alexey 2009-03-26 15:38:49 EDT
fc10 in russian language it remains actual problem.


Note You need to log in before you can comment on or make changes to this bug.