Yum issue,who can help me?
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.usermain(sys.argv[1:], exitcode=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(removeonly)
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
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 = repocachefunction(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:
But follow this link, I cannot find the libxml2-cvs-snapshot.tar.gz
on
Any one have encounter this same issue . Or anyone have solve this issue . Please give me a powerful help hand. Thanks.
2 Replies
try unsetting the LDLIBRARYPATH environment variable
try getting the official libxml2 packages from CentOS 5.5 and installing them with rpm -Uvh
try getting the latest yum from CentOS 5.5 and installing it with rpm -Uvh
@Alucard:
try 'yum clean all'
try unsetting the LDLIBRARYPATH environment variable
try getting the official libxml2 packages from CentOS 5.5 and installing them with rpm -Uvh
try getting the latest yum from CentOS 5.5 and installing it with rpm -Uvh
Thanks for Alucard, I'll try late.