Hi All,
Yesterday i installed my fresh system (RHEL5), now when ever i am using yum i am getting a unexpected error , first of all i thought i related with incorrect url which is mention in .repo file so i remove all the repos file from /etc/yum.repos.d directory then i again check it , but still i am getting a below error when i am using any yum command
[YUM]
[root@localhost ~]# yum list
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 229, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 38, in main
yum.misc.setup_locale(override_time=True)
File "/usr/lib/python2.4/site-packages/yum/misc.py", line 654, in setup_locale
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sy s.stdout)
File "/usr/lib/python2.4/codecs.py", line 752, in getwriter
return lookup(encoding)[3]
File "/usr/lib/python2.4/encodings/__init__.py", line 96, in search_function
globals(), locals(), _import_tail)
ValueError: bad marshal data
output of the installed yum pacakes
[root@localhost ~]# rpm -qa yum*
yum-metadata-parser-1.1.2-2.el5
yum-3.2.19-18.el5
yum-security-1.1.16-13.el5
yum-fastestmirror-1.1.16-13.el5
yum-rhn-plugin-0.5.3-30.el5
yum-updatesd-0.9-2.el5
yum-utils-1.1.16-13.el5
Out of the python pacakes
[root@localhost ~]# rpm -qa python*
python-iniparse-0.2.3-4.el5
python-elementtree-1.2.6-5
python-2.4.3-24.el5
python-devel-2.4.3-24.el5
python-numeric-23.7-2.2.2
python-virtinst-0.300.2-12.el5
python-sqlite-1.1.7-1.2.1
python-ldap-2.2.0-2.1
python-urlgrabber-3.1.0-5.el5
Please help me to fix this unexpected problem