Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th January 2006, 05:05 PM
ice99 Offline
Registered User
 
Join Date: Jan 2006
Posts: 3
yum problem (//var/cache/yum/base/primary.xml.gz:1: parser error : Document is empty)

I have a little problem here, and i hope that someone will help me to resolve this issue. When i run 'yum update' i got the following error.

[root@host2 /]# yum update
Repository updates-released already added, not adding again
Repository base already added, not adding again
Setting up Update Process
Setting up Repos
base 100% |=========================| 1.1 kB 00:00
updates-released 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
//var/cache/yum/base/primary.xml.gz:1: parser error : Document is empty
^¿½

I try removing it
rm -vf /var/cache/yum/base/primary.*

I have also remove the whole /var/cache/yum/ directory and still nothing. I have also try to reinstall yum, and still the problem is here.

Also try :

# rpm –rebuilddb
# yum clean all
# yum update

And still nothing. The problem i still here.

Can someone tell me what is the problem and how can i fix it?

Thanks in advance.
Reply With Quote
  #2  
Old 4th January 2006, 05:37 PM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
Quote:
Repository updates-released already added, not adding again
Repository base already added, not adding again
just a stab in the dark here, but this indicates a problem with your repo files. you didn't modify yum with any command line options so you've got something in /etc/yum.repos.d that is trying to add multiples of the same repository. it ignored them so that specifically shouldnt be a problem, but it does mean that they have been changed from their original states.

i would go through all of the .repo files inidvidually and find out where the dupe is coming from, eliminate the un-needed files and make sure the syntax was correct in the ones that are left. short of that i would empty out /etc/yum.repos.d completely and copy back over the default repo files from the fedora CD's, but off habd i am not sure where they would be on the install cd's.

hth,
joseph
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #3  
Old 4th January 2006, 05:57 PM
ice99 Offline
Registered User
 
Join Date: Jan 2006
Posts: 3
thanks for your help but i also try to do that and still nothing.
Reply With Quote
  #4  
Old 4th January 2006, 06:22 PM
bytesniper's Avatar
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 35
Posts: 1,158
well, if its a problem with the yum binaries themselves (which i doubt) you can try reinstalling yum. since nothing is dependent on yum it's pretty easy.

1) download the yum rpm from here.

2) execute: rpm -e `rpm -qa | grep yum` which will remove yum.

3) remove a) /etc/yum.conf b) /etc/yum.repos.d/* c) /var/cache/yum. i dont know how much of that uninstalling yum will remove, but i would make sure they are gone nontheless.

4) cd into the dir you saved the downloaded yum rpm into and type rpm -ivh yum-2.4.1-1.fc4.noarch.rpm

try to yum update and see what happens.
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #5  
Old 5th January 2006, 12:52 PM
ice99 Offline
Registered User
 
Join Date: Jan 2006
Posts: 3
Thank you for your reply. About 20 minutes ago, I found the problem. We
had upgraded libxml2 from 2.6.16 to 2.6.22 some time back for our compile of
PHP5. This seem to have caused python (and subsequently yum) to be unable
to read from an XML file (which yum's repository is stored in). There
appears to be a known "issue" in yum (based on the code comments I found)
that throw yum into an infinite loop when the repository XML cannot be read.
This is what caused the CPU to get pegged.

I've reinstalled libxml2 version 2.6.16 on one of our servers and yum seems
to be working now. Of course, I can't recompile PHP, but I can deal with
that

Thanks,


Quote:
Originally Posted by bytesniper
well, if its a problem with the yum binaries themselves (which i doubt) you can try reinstalling yum. since nothing is dependent on yum it's pretty easy.

1) download the yum rpm from here.

2) execute: rpm -e `rpm -qa | grep yum` which will remove yum.

3) remove a) /etc/yum.conf b) /etc/yum.repos.d/* c) /var/cache/yum. i dont know how much of that uninstalling yum will remove, but i would make sure they are gone nontheless.

4) cd into the dir you saved the downloaded yum rpm into and type rpm -ivh yum-2.4.1-1.fc4.noarch.rpm

try to yum update and see what happens.
Reply With Quote
Reply

Tags
document, error, parser, problem, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
YUM Error? primary.xml.gz does not match checksum smudge Using Fedora 4 8th October 2008 08:10 PM
Parser Configure Error with me-tv, want to record dvb winterequinox Using Fedora 1 6th July 2008 12:06 AM
Blank document on error Zurke Using Fedora 1 11th July 2005 06:35 PM
No base repos and yum.conf.d empty jsmaye Using Fedora 3 10th April 2005 12:30 AM
How to empty the DNS cache? gertdesmet Servers & Networking 2 12th January 2005 09:29 PM


Current GMT-time: 12:40 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat