Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 31, 2010 10:16 pm 
Offline
Newbie

Joined: Tue Mar 09, 2010 10:06 pm
Posts: 2
WLM: duanyu1988@hotmail.com
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.


Top
   
 Post subject:
PostPosted: Mon May 31, 2010 10:26 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
try 'yum clean all'
try unsetting the LD_LIBRARY_PATH 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


Top
   
PostPosted: Tue Jun 01, 2010 10:07 pm 
Offline
Newbie

Joined: Tue Mar 09, 2010 10:06 pm
Posts: 2
WLM: duanyu1988@hotmail.com
Alucard wrote:
try 'yum clean all'
try unsetting the LD_LIBRARY_PATH 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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group