LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-21-2009, 09:55 AM   #1
glowe
LQ Newbie
 
Registered: Jan 2006
Posts: 26

Rep: Reputation: 0
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base.


Hi All,

I'm getting these errors when trying to update my packages through yum on a Centos 5.2 box:

http://mirror.centos.org/centos/5/os...ta/repomd.xml: [Errno -1] Error importing repomd.xml for base: Damaged repomd.xml file
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


I've tried googling and looking at other people's similar problems. I have another box, a Centos 3.4 box that runs yum just fine.
 
Old 01-22-2009, 04:24 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
The address you have in your repo file is incorrect. You say you are running C5.2 but your repo file is pointing to C5. If that colon(on the end of the address above) is in your repo file it may also be causing problems.
 
Old 01-07-2010, 10:38 PM   #3
collo429
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Thumbs up Repo issue solved!

I find it neccessary to update this thread with a method I have just used to sort this issue.
1. Backup any repo file you have created incase you need it later, then run yum clear all (as an administrator/root), then create the cache file afresh with yum -y makecache
Restore your backed up repo files and you will be good to go. The Error should disappear.

I hope this will help you.

Emadau
 
Old 05-06-2010, 02:46 AM   #4
patmcclung
LQ Newbie
 
Registered: Jul 2006
Posts: 6

Rep: Reputation: 0
Here's how I fixed in Fedora 12 - it's an ipv6 problem

Would you believe it's an ipv6 problem?
I'm running F12 X86_64 upgraded from F11.
The Yum problem [Cannot retrieve repository metadata (repomd.xml)] began after the F12 update and after the first yum update (installed 78 packages and updated 1742 more). THEN the (repmod.xml) problem.
I'm running off a ipv4 router so, have ipv6 disabled (I thought). But, in F12 it's different than in F11, it seems. So, here's what I did that disabled ipv6, and fixed the YUM problem. You don't need to modify /etc/hosts and all that other stuff above that didn't work for me.
1. disable the ipv6 firewall service [ipv6tables]
2. keep it off - #/sbin/chkconfig ip6tables off
3. Create a file under /etc/modprobe.d (e.g. “blacklist-ipv6.conf”) with the following 2 lines, in the order shown:
install ipv6 /bin/true
blacklist ipv6
4. add the following line to /etc/sysconfig/network
NETWORKING_IPV6=no
(mine had IPV6=no - that don't work, but I left it in there, too)
5. reboot YUM should work fine.
---------------here's the "remove ipv6" reference-------------
http://eldapo.lembobrothers.com/2010...and-fedora-12/

Think normal human beings will ever be able to use Fedora?
 
Old 07-19-2010, 07:42 PM   #5
michael.reed
LQ Newbie
 
Registered: Aug 2009
Location: Milwaukee, WI Area
Distribution: Fedora13 (06-09); ZorinOS (09-present)
Posts: 3

Rep: Reputation: 2
this same problem still exists with Fedora13. I followed patmcclung's solution to the letter and it worked! Thanks pat.

The question I have, is how vulnerable is my firewall for normal internet invasion now that I have followed this remedy?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Cannot retrieve repository metadata (repomd.xml) for repository: atrpms. stioanid Linux - Software 3 12-13-2008 01:22 AM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 07:20 PM
update software in Fedora 9 can not retrieve repository metadata james2b Fedora 2 08-17-2008 11:12 AM
yum + Cannot open/read repomd.xml file for repository: update aeby Red Hat 1 12-19-2007 09:14 AM
Cannot open/read repomd.xml file for repository: crash-hat e_annoos_h Linux - General 1 09-09-2007 01:23 AM


All times are GMT -5. The time now is 08:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration