Red Hat Bugzilla – Bug 450826
yum fails to uninstall kernel-xen
Last modified: 2014-01-21 18:03:02 EST
Description of problem:
When I try to uninstall kernel-xen I get an error (in German here)
FEHLER mit rpm_check_debug gegen depsolve:
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 377, in doTransaction
File "/usr/lib64/python2.5/codecs.py", line 303, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal
not in range(128)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum remove kernel-xen
Selected packages should be uninstalled.
This is very suspicious as python shouldn't be generating these messages ...
but can you try this patch (added upstream, the file is /usr/share/yum-cli/cli.py):
diff --git a/cli.py b/cli.py
index ff24ac6..cb16e76 100644
@@ -45,7 +45,7 @@ from yum.rpmtrans import RPMTransaction
-from yum.misc import to_unicode
+from yum.misc import to_unicode, to_utf8
def sigquit(signum, frame):
""" SIGQUIT handler for the yum cli. """
@@ -374,7 +374,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
print _('ERROR with rpm_check_debug vs depsolve:')
for msg in msgs:
- print msg
+ print to_utf8(msg)
return 1, [_('Please report this error in bugzilla')]
I applied the patch manually because I get a "malformed" error. The error
message still comes up.
What locale are you running in?
I don't know what's changed in the meanwhile, but I could successfully remove
the kernel now.
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
I was able to siccesfully install and remove kernel-xen with new
# LANG="de_DE.utf8" yum remove kernel-xen
According the comment #5 you do not have this problem now right?
(In reply to comment #8)
> According the comment #5 you do not have this problem now right?
I have no more problems with yum-3.2.17-1.fc9. I did a
yum install kernel-xen
yum remove kernel-xen
without any problem.
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.