Bug 622301 - UnicodeEncodeError after yum update
Summary: UnicodeEncodeError after yum update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 622843 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-08 19:31 UTC by Frank Thieme
Modified: 2014-01-21 23:16 UTC (History)
6 users (show)

Fixed In Version: yum-3.2.28-3.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-17 05:49:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Thieme 2010-08-08 19:31:23 UTC
Description of problem:
exact the same problem as written here: http://fedoraforum.org/forum/showthread.php?p=1388757
yum updated to 3.2.28-1 and after this yum cannot do any useful anymore. It ends in an UnicodeEncodeError while writing history. 
Usually I have LANG=de_DE.UTF-8, but even setting it to LANG=C doesn't help



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

How reproducible:
every time


Steps to Reproduce:
1. update yum to 3.2.28-1
2. yum install kdeedu-math-cantor-R
3.
  
Actual results:

[...]
Total size: 35 M
Installed size: 69 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 258, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 196, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 544, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 1336, in runTransaction
    self._store_config_in_history()
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 4718, in _store_config_in_history
    self.history.write_addon_data('config-repos', myrepos)
  File "/usr/lib/python2.6/site-packages/yum/history.py", line 613, in write_addon_data
    fo.write(data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 16569: ordinal not in range(128)

Expected results:

Normal install

Additional info:

as described in the forum entry, downgrading to 3.2.27-4 fixes the situation

Comment 1 seth vidal 2010-08-09 14:09:32 UTC
Can you test a simple patch?

Comment 2 Frank Thieme 2010-08-09 15:17:21 UTC
(In reply to comment #1)
> Can you test a simple patch?    

sure - where is it?

Comment 3 seth vidal 2010-08-09 15:28:19 UTC
http://fpaste.org/BO6w/

that's it - I tested it with random unicode garbage in my config file and it works.

Comment 4 Frank Thieme 2010-08-09 16:05:44 UTC
Seems to work...

Comment 5 Fedora Update System 2010-08-09 19:55:49 UTC
yum-3.2.28-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-3.2.28-2.fc12

Comment 6 Fedora Update System 2010-08-09 19:56:25 UTC
yum-3.2.28-2.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/yum-3.2.28-2.fc14

Comment 7 Fedora Update System 2010-08-09 19:56:52 UTC
yum-3.2.28-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-3.2.28-2.fc13

Comment 8 seth vidal 2010-08-10 15:03:13 UTC
*** Bug 622843 has been marked as a duplicate of this bug. ***

Comment 9 Fedora Update System 2010-08-10 21:45:56 UTC
yum-3.2.28-2.fc13 has been pushed to the Fedora 13 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/yum-3.2.28-2.fc13

Comment 10 Fedora Update System 2010-08-12 04:11:08 UTC
yum-3.2.28-2.fc12 has been pushed to the Fedora 12 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/yum-3.2.28-2.fc12

Comment 11 Fedora Update System 2010-08-12 19:58:46 UTC
yum-3.2.28-2.fc14 has been pushed to the Fedora 14 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/yum-3.2.28-2.fc14

Comment 12 Fedora Update System 2010-08-12 20:17:22 UTC
yum-3.2.28-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc12

Comment 13 Fedora Update System 2010-08-12 20:19:42 UTC
yum-3.2.28-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc13

Comment 14 Fedora Update System 2010-08-12 20:22:04 UTC
yum-3.2.28-3.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/yum-3.2.28-3.fc14

Comment 15 Fedora Update System 2010-08-17 05:47:26 UTC
yum-3.2.28-3.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2010-08-20 02:21:00 UTC
yum-3.2.28-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2010-08-24 01:38:37 UTC
yum-3.2.28-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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