LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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: 27

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: 172Reputation: 172
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: 1
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?
 
1 members found this post helpful.
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: 6

Rep: Reputation: 5
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?
 
Old 01-13-2016, 04:50 AM   #6
anandkulkarni
LQ Newbie
 
Registered: Jan 2016
Location: Pune India
Posts: 2

Rep: Reputation: Disabled
Smile Disabling IPV6 works for me

patmcclung : You saved my day ....
Disabling IPV6 works for me. I have installed fresh Fedora 14 (32 bit), and problem starts here. i googled up lots of things,
added mirror IPs in /etc/hosts file -- didn't work
Commenting/uncommenting the baseurl and mirrorlist line in files under /etc/yum.repos.d/ -- didn't work

Thank you

Last edited by anandkulkarni; 01-13-2016 at 04:51 AM.
 
Old 01-13-2016, 02:24 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Posts: 16,264

Rep: Reputation: Disabled
Quote:
Disabling IPV6 works for me. I have installed fresh Fedora 14 (32 bit), and problem starts here. i googled up lots of things,
you do know that 14 has been UNSUPPORTED for many many many YEARS!!!!!

install the current Fedora 23
yes you are NINE VERSIONS AND 4 YEARS out of date


Quote:
Commenting/uncommenting the baseurl and mirrorlist line in files under /etc/yum.repos.d/ -- didn't work
that is because 14 is 9 VERSIONS out of date
the repos for 14 moved or were deleted YEARS AGO


14 is unsupported
-- DO NOT USE ---

Quote:
added mirror IPs in /etc/hosts file -- didn't work
??? Why ????

none of the guides or instructions nor any of the documentation tell you to edit THAT file to set locations for yum


or

install the currently supported CentOS 6.7 if this is OLD hardware

Last edited by John VV; 01-13-2016 at 02:26 PM.
 
Old 01-13-2016, 10:30 PM   #8
anandkulkarni
LQ Newbie
 
Registered: Jan 2016
Location: Pune India
Posts: 2

Rep: Reputation: Disabled
Quote:
14 is unsupported
-- DO NOT USE ---
Yes, its out of date but it's a specific requirement to run a legacy software [in house developed] on that version of fedora. No other intention to install outdated version of fedora. By the way i installed it as a virtual machine.

Quote:
??? Why ????
It didn't work for me.

Quote:
none of the guides or instructions nor any of the documentation tell you to edit THAT file to set locations for yum
What i googled up, i didn't find that info.
 
Old 01-13-2016, 10:55 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Posts: 16,264

Rep: Reputation: Disabled
the old and NOT updated and missing all the last 4.5 years of security updates
old fedora 14 rpms are in the historical archive

https://archives.fedoraproject.org/p...x/releases/14/

the very LAST updates are
https://archives.fedoraproject.org/p...ux/updates/14/

mind you this is only for the BASE fedora repo
there are NO!!!! thirdparty archives

you need to set the repo files in /etc/yum/repos.d to use the historical archive

BUT
Warning:
they have not been updated since Dec. 2011
and are missing the last 4 years of security updates
 
1 members found this post helpful.
  


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 12:05 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration