Yum issue,who can help me?

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.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 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 = 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:

http://webhostingneeds.com/Yum_error_Ty … _not_found">http://webhostingneeds.com/YumerrorTypeErrorParsingprimary.xmlerrorStarttagexpectednotfound

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.

2 Replies

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

@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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct