LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   YUM Error (https://www.linuxquestions.org/questions/linux-general-1/yum-error-725843/)

zion_rulz 05-14-2009 12:39 AM

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.

chrism01 05-14-2009 01:18 AM

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.


All times are GMT -5. The time now is 02:01 PM.