LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-14-2009, 01:39 AM   #1
zion_rulz
LQ Newbie
 
Registered: May 2009
Location: India
Distribution: kubuntu-8.04.2
Posts: 12

Rep: Reputation: 0
YUM Error


I am a Linux novice & have messed up with my yum. yum gives me the following error

[root@9005LTPGEN0142 ~]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in <module>
import yummain
File "/usr/share/yum-cli/yummain.py", line 33, in <module>
import cli
File "/usr/share/yum-cli/cli.py", line 31, in <module>
import output
File "/usr/share/yum-cli/output.py", line 41, in <module>
from yum.i18n import utf8_width, utf8_width_fill, utf8_text_fill
ImportError: cannot import name utf8_width


How do I uninstall and reinstall yum if required? Any help to fix this will be appreciated.
 
Old 05-14-2009, 02:18 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Well, this should tell you what's installed for yum:
Code:
 rpm -qa|grep -i yum
Theoretically you could make a note of all those, try

rpm -e yum*

-e = erase

and make notes if it says its going to remove dependencies as well. You'll need to re-install every rpm mentioned in one cmd.

You could also look at

rpm -V yum

first, to see what it says. See man rpm.
 
  


Reply

Tags
yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error timeout: <urlopen error timed out> when using yum on centos5.2 dadidudedo Linux - General 9 05-01-2009 05:21 AM
yum error linuxguy08 Linux - Server 2 03-02-2009 02:54 PM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 06:48 AM
"HELP!!" yum error [Errno 14] HTTP Error 401: Unauthorized chennavarri Fedora 2 05-14-2008 11:29 AM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 03:03 AM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration