Hi,guys. I have encounter a Yum issue on my Centos5.3 64bit VPS. The day before yesterday, when I try to use yum to install a sw. Then I found the yum cannot work. such like this:
Use the "yum install" or "yun update" only get the following output:
[root@li72-114 ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.usf.edu
* base: mirrors.netdna.com
* extras: mirrors.netdna.com
* rpmforge: apt.sw.be
* updates: centos.omnispring.com
addons | 951 B 00:00
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 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 178, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 345, in doCommands
self._getTs(needTsRemove)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 101, in _getTs
self._getTsInfo(remove_only)
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 112, in _getTsInfo
pkgSack = self.pkgSack
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 661, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 260, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 190, in populate
dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.4/site-packages/sqlitecachec.py", line 42, in getPrimary
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
---------------------------------------
I have googled this issue. Some post suggest reinsatll the libxml2. Such like this website:
http://webhostingneeds.com/Yum_error_Ty ... _not_found
But follow this link, I cannot find the libxml2-cvs-snapshot.tar.gz
on
ftp://xmlsoft.org/ . So I install a libxml2-2.7.2 . But it cannot solve the issue.
Any one have encounter this same issue . Or anyone have solve this issue . Please give me a powerful help hand. Thanks.