You Are Here: Home » Articles » How-To » Linux » OS

How to fix the “Cannot retrieve repository metadata (repomd.xml)” error in Fedora?

By on June 17th, 2009     

Update: This problem has now been resolved by the Fedora Community. But you may still not be able to download the updates properly from the mirrors due to the busy network and rush.

fedora logo

The recently released Fedora 11 Leonidas has some issues with it's regular update process. Many users are getting a strange error which complains about the inability of the update system to retrieve the repository metadata, namely repomd.xml. You can see the error as attached in this inlet below:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

When we tried to install Fedora 11 for the first time, we also faced a similar problem. A quick twitter search brought us to a conclusion that we were not alone. But a little tweaking of a few system files brought us back on track. In this article we tell you, how to go about resolving the problem in case you face it too.

  • You need to edit two of your repository files: /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo. Now un-comment all the lines that start with  the term baseurl and place a comment before all lines that start with mirrorlist. This should be done for both the above files.
  • Now edit your /etc/hosts file and append the following to it's contents:
    80.239.156.215          mirrors.fedoraproject.org
    213.129.242.84          mirrors.rpmfusion.org

Now try updating your system or installing any software via Yum. You will see, the error is now resolved and the error message is not shown anymore.




         Submit to Reddit     Stumble


Related Posts by Tags: , , ,



  • Amir

    It does not let me save the changes in any of the edited file.

    • http://digitizor.com The Digitizor

      You need to have administrator access in order to be able to save the changes to the /etc/hosts file.

      • Noreply

        for me, it was my time was way off. FC12 didn’t like that.

  • gibsjr

    where are the repository files, explain from start how to edit the two of your repository files to remove the meta" error

    • http://intensedebate.com/people/debjitsaha87 The Digitizor

      Both the repository files are located in the /etc/yum.repos.d directory.

  • Pingback: [Fedora] Yum inside the lancsngfl (cleo)

  • mark.87

    How to get administrator access to change files in fedora?

  • Pierre MacKay

    The repomd.xml problem is still showing up. I have followed the instructions above, but the problem is with the addresses in /etc/yum.repos.d/emacs.repo, which points you at http://people.redhat.com/coldwell
    for various subdirectories. Either http://people.redhat.com/coldwell no longer exists, or it is unreadable. No alternative mirrors are suggested in repo.d
    (Fedora Core 10 is wanted, and none of the text files in the google list for repomd.xml seems to be for FC10.)

  • stone

    This worked for me.

    THANK!

  • nbensa

    Do you have an ip address? Does your /etc/resolv.conf point to valid DNS servers?

    I just got this problem, and a simple:

    # dhclient eth0

    fixed it.

    • http://digitizor.com The Digitizor

      Thanks, for bringing this to our notice.

  • Albertinux

    Yes change works fine!!!

  • jordan

    Still having the original problem after following your clear instructions on modifying /etc/yum.repos.d/fedora.repo, /etc/yum.repos.d/fedora-updates.repo, and /etc/hosts.

    The specific error is now:

    # yum update
    Loaded plugins: refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linux/releases/11/Everything/i386/os/repodata/repomd.xml: [Errno 4] IOError:
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    Does my current issue have something to do with IPv4 and IPv6?

    I had to set:

    network.dns.disableIPv6;true

    in the firefox web-browser to access webpages.

    I cannot ftp into an FTP-site from the command-line, but now I can from the web-browser…

    If I use wget without options, it is unable to resolve a host name, but if I use ‘wget -4′ it is, where -4 forces connecting to IPv4 addresses.

    If this is my problem, how to force yum to use IPv4 addresses?

    Ciao, jordan

    • wudao

      i have the same problem. but i stillnot resolve it when i do the following instructions on modifying /etc/yum.repos.d/fedora.repo, /etc/yum.repos.d/fedora-updates.repo, and /etc/hosts.

      how to do?

      sudo yum install yum-presto
      载入插件: refresh-packagekit
      尝试其他镜像.
      错误: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

      • dani

        thanks a lot man

    • http://infoqueue.wordpress.com Balachandar

      Hi,
      if you are using a proxy server to access net then try this

      [root@sathya etc]# http_proxy=172.16.42.200:3128
      [root@sathya etc]# export http_proxy

      This fixed my problem.

  • Ice Uck

    Wow – this was driving me crazy. I installed Fedora 11 in VirtualBox, and immediately ran into this problem when I tried to install the Guest Additions.

    In case anyone’s having the same problem (or just curious), the other issues were:

    1. Setting up ‘http_proxy=’ variable in the environment (http://www.fedoraforum.org/forum/showthread.php?s=&threadid=742)

    2. Adding required packages for VirtualBox Guest Additions (http://fedorasolved.org/Members/realz/VB_Guest_Addition)

    Thanks Very Much!

  • imafidon

    am still expirencing the same Error after following ur steps on…Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

  • imafidon

    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
    still occurring

  • http://www.prl.res.in/~awasthi arun

    it really works.lot of thanks. without yum update,things become unimaginably tough while installing any software in linux.

  • Twisted

    Have the same problem. Failure still occurs.
    How to fix?

  • http://iprog.com/ tm

    as mentioned above, running ‘dhclient eth0′ did the trick for me. everything else was unnecessary.

  • MikeG

    Problem still exists in Fedora 12 but this fix worked. For those who still have an issue, I did as well. I ran ‘service network restart’ and it worked after that.

    • pranam

      Thanks MikeG…I was struggling with this error all afternoon. However a simple service network restart did the trick!

    • TomM

      This was really helpful. The service network restart did not work for me initially. However, I was running in a VM, and switched from NAT to bridge, and then ran service network restart, and now it works. Thanks!

  • Bhavesh Choudhary

    Hi,

    I did all the above suggestion but I am still not able to fix this problem. I am running FC12. FOllowing is the message which pops up in every 5 minutes:

    Cannot retrieve repository metadata (repomd.xml) for repository: core. Please verify its path and try again

    I am getting this error after I ran the updates from the GUI updater.

    Please give me some more hints on this. Or how can I revert to the old updates i.e restoring the system.

    Thanks,
    Bhavesh

  • Ed Elkin

    The recommended edits to the 3 files (fedora.repo, fedora-updates.repo, and hosts) were done. Using Fedora 12. Not able to get gcc using the command “yum install gcc*”

    [root@localhost etc]# yum install gcc*
    Loaded plugins: presto, refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linux/releases/12/Everything/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 – “”
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    I am going via a proxy, so I made the following edit to yum.conf. But I get the same error message.
    proxy=http://…

    Suggestions?

    Thanks

  • sandeep

    Hi,
    With Freshly involved Fedora12, I was seeing same issue. After modifying fefora.repo and fedora-updates.repo and /etc/hosts file , now the following problem occoured

    [root@l002-0015 yum.repos.d]# yum install gcc
    Loaded plugins: presto, refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linu… [Errno 14] PYCURL ERROR 7 – ""
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    please suggest.
    Thanks

  • xas

    Worked great! Thanks a lot for a great post :-)

  • curious

    I was getting the similar to sandeep but i edited the yum.conf file and put proxy=ip:host; and now the error i get this:

    # yum update
    Loaded plugins: presto, refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linu… [Errno 14] HTTP Error 407 : http://download.fedoraproject.org/pub/fedora/linu
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    Can anybody figure out what is causing the issue. I'm behing a network proxy at my work place and that is the proxy i put in yum.conf file.

    • Cristian

      Hi, guys!

      Sometimes I’m under a proxy either. When I’m under it, it works fine; when I’m out of proxyies, I had to comment (‘#’) the proxy configuration lines at /etc/yum.conf to make it works. It’s fine now!!

  • Serge

    I have another part of the question. I have the same message of the error that is specified by you, but instead fedora there is ASPLinux-Media in the message. What must I do to repair a behaviour of the program? I think it is a reason to make disable pulseaudio.

    • http://digitizor.com The Digitizor

      Are you using ASPLinux?

  • Hasib Skh

    hi,I was facing same problem on my FC11 Desktop.My Laptop also has Linux FC11.simply I copied my “.repo ” files from laptop to desktop /etc/yum.repos.d/ directory and its working fine.
    Following are the list of .repo I copied . rpmfusion is new repo downloaded from http://www.rpmfusion.org ,they maintain repos for third party applications,so you need not look “.repo” for every third party application.

    fedora-rawhide.repo
    fedora.repo
    fedora-updates.repo
    fedora-updates-testing.repo
    rpmfusion-free-rawhide.repo
    rpmfusion-free.repo
    rpmfusion-free-updates.repo
    rpmfusion-free-updates-testing.repo

  • rauf

    thanx guys.
    i got fixed my problem.

  • CharlL

    Thanks Guys! it worked for me. I just had to enable my ethernet after I changed the files.
    Cheers,

    CharlL

  • http://www.tshravan.co.cc Shravan

    Man… really you saved my life.. Thanks a LOT for this wonderful artcile. :)

  • Ali

    Thanks this is configuration its work .
    Thanks a lot

    • Anonymous

      Hi, I am facing same problem after installing fedora 12. Please can you send the following files:
      fedora-rawhide.repo
      fedora.repo
      fedora-updates.repo
      fedora-updates-testing.repo
      rpmfusion-free-rawhide.repo
      rpmfusion-free.repo
      rpmfusion-free-updates.repo
      rpmfusion-free-updates-testing.repo

      Thanks
      mozaff DOT afaque AT gmail DOT com

  • Rich

    Thanks for the post! You fixed my yum problem :)

    ~Rich

  • http://digitizor.com The Digitizor

    Hey Rich! Glad We were of some help to you :-)

  • kanwar sandhu

    Thanks man.

    You are a life saviour.

    you saved my whole day.

  • Anonymous

    Yes! It worked!! I thought it hadn’t and then I realized I misread the directions above to place a comment before the lines that start with mirror, not one a line before that line.

    • Anonymous

      Glad it helped!

  • Anonymous

    I have the repomd.xml file on my unix machine but it says that is unable to locate it. How can I get the repomd.xml file to be install on my unix machine? I have tried other options and i really need to get this problem taken care of because it is holding me back from completing other projects. I really need help

    • Anonymous

      Could you send us a screenshot of the error?

  • Thanks you did it

    Thaaaaaaaaaanks coooooooool, you did it. I solved my problem with Fedora. :)

    • Anonymous

      glad!

  • Spulip01

    I am tryint to install wine on my linux system. fedora 12. Linux Molmod 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux
    I have modified the files. fedora.repo & fedora-updated.repo.

    bash-4.0# grep “mirrorlist” fedora.repo
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
    bash-4.0# grep “mirrorlist” fedora-updates.repo
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
    ——————————————
    bash-4.0# grep “baseurl” /etc/yum.repos.d/fedora.repo
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
    bash-4.0# grep “baseurl” /etc/yum.repos.d/fedora-updates.repo
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/

    ———————————-
    Then I have updated the /etc/hosts file:
    hostname Molmod added to /etc/hosts by anaconda
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 Molmod
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 Molmod
    80.239.156.215 mirrors.fedoraproject.org
    213.129.242.84 mirrors.rpmfusion.org

    ————————
    Ran the cammond: # yum install wine.
    The result is:
    bash-4.0# yum install wine
    Loaded plugins: presto, refresh-packagekit
    Repository updates is listed more than once in the configuration
    Repository updates-debuginfo is listed more than once in the configuration
    Repository updates-source is listed more than once in the configuration
    Repository fedora is listed more than once in the configuration
    Repository fedora-debuginfo is listed more than once in the configuration
    Repository fedora-source is listed more than once in the configuration
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    ===============

    Now please suggest me what to do in this case. I need to solve this urgently so quick suggestions are of great help.

    THanks.
    Sravan.

  • Rak

    I have done the changes as suggested by no Luck :-(
    i have a FC6 box and its having the error like below when i do anything with yum

    —————————————————————–
    -bash-3.1# yum install httpd
    Loading “installonlyn” plugin
    Setting up Install Process
    Setting up repositories
    http://download.fedora.redhat.com/pub/fedora/linux/releases/6/Everything/i386/os/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Mon, 26 Jul 2010 18:12:48 GMT
    Server: Apache
    Content-Length: 264
    Connection: close
    Content-Type: text/html; charset=iso-8859-1

    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: fedora
    ——————————————————————-

    My /etc/yum.repos.d/ files are as below

    -rw-r–r– 1 root root 1541 May 25 2007 fedora-development.repo
    -rw-r–r– 1 root root 1096 Jul 26 23:38 fedora.repo
    -rw-r–r– 1 root root 1006 Jul 26 23:38 fedora-updates.repo
    -rw-r–r– 1 root root 1084 May 25 2007 fedora-updates-testing.repo
    ——————————–

    I made the changes as suggested on fedora.repo & fedora-updates.repo files as below–

    Fedora.repo
    —————————————————
    [fedora]
    name=Fedora $releasever – $basearch
    baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

    [fedora-debuginfo]
    name=Fedora $releasever – $basearch – Debug
    baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-debug-$releasever&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

    [fedora-source]
    name=Fedora $releasever – Source
    baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-source-$releasever&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    —————————————————–

    fedora-updates.repo

    —————————
    [updates]
    name=Fedora $releasever – $basearch – Updates
    baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

    [updates-debuginfo]
    name=Fedora $releasever – $basearch – Updates – Debug
    baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/$basearch/debug/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-debug-f$releasever&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

    [updates-source]
    name=Fedora $releasever – Updates Source
    baseurl=http://download.fedora.redhat.com/pub/fedora/linux/updates/$releasever/SRPMS/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-source-f$releasever&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
    ——————————————————

    Added the entry on /etc/hosts files as mentioned ….But Alas its not working again

    Can anyone help me in this
    Its a mess..please

    Thanks in advance
    Rak

    • Anonymous

      make sure your sources files are correct.

  • Pingback: Setting up Fedora 13 for basic development / tools « Floating Points

  • Pingback: setting up yum « Meet BRP

  • Piztol

    I am using Fedora 13, I have this error too, I fixed this problem like this:
    download all files in this dir to /var/cache/yum/i386/13/InstallMedia/ : http://mirror.aarnet.edu.au/pub/fedora/linux/releases/13/Everything/i386/os/repodata/

  • elneilo

    Thanks a lot! this solved my yum problem after a fresh install of fedora 13 (Graphic Desktop)

    To anyone out there that is still having the problem even after editing the 3 files -
    Make sure your internet connection is working first!

    I know it’s silly I kept running into the same problem even after editing the 3 files and it’s all because I didn’t bother to check that my internet was down. After my internet was back up yum worked fine!

    • Neil Lupsic

      Yes. Ensure DNS is configured also. I configured /etc/hosts with those 2 entries and configured my resolv.conf and all was fine. Upstream firewall was already permitting.

  • Chris

    The hint about heavy load on the standard-servers did it for me, I edited the repo-files and just modified the base-url to use the mirror closest to me.
    The original error-message was the same. Now works for me

  • Denny

    I’ve got the same problem here. pls help what does “un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist” means? I’m kindalinux newbie here.tks

  • sufyan

    cannot retrieve repository metadata repomd xml error in fedora-12.i have tired the above things but still getting the same error…plz if some one can help me

  • syed

    not solved,… still having same error..
    any thing else to do? :(

  • :G

    useful thanks!

    • Anonymous

      Glad, you liked it.

  • Pingback: FIX A BUG OF YUM/F11 HANG PROBLEM WHEN USING PROXY | MSN Space Archive

  • Vimalrajsharma89

    BIG THANKS

  • M_oud_swing

    i did all what you say but the problem is not resolved
    Erreur : Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

  • Magicg

    Many Thankx :)

  • Pingback: Fedora tidak mau update dan install paket « Tulisan Pendek

  • Balachandran K

    Loaded plugins: presto, refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linux/releases/12/Everything/i386/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 – “”
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

  • Rajeshwar

    Big Thanks

  • Zro8942

    cn u show exmple..? need hlp.. :(

    • Anonymous

      Screenshots are included.

  • Srijitdutt

    I just installed fedora 14.
    I am working behind a proxy so I set up the yum.conf file
    then I got
    Cannot retrieve repository metadata (repomd.xml) error
    so I followed the steps, now I am getting

    yum update
    Loaded plugins: langpacks, presto, refresh-packagekit
    Adding en_US to language list
    http://download.fedoraproject.org/pub/fedora/linux/releases/14/Everything/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 5 – “”
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    Plz help!

  • Santy12386

    I can not able to solve the following problem by using the solution given.
    [root@sh128 ~]# yum install hdf5-1.8.5-patch1-linux-shared.tar.gz
    Loading “installonlyn” plugin
    Setting up Install Process
    Parsing package install arguments
    http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Everything/i386/os/repodata/repomd.xml: [Errno 12] Timeout:
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: fedora

  • bumba

    How to instal f77 compiler in Fedora 12 ????????

    • Anonymous

      f77 compiler is not required in the above tutorial.

  • Murali

    how to edit those files?
    when iam trying to edit it needs administrator permission. i know my root password but iam not able to login as root. but through terminal iam able to login as roon by making Su command. but there i dont know how to edit these files from terminal. plz help me. Iam using fedora 14.

    • Mmartincal

      you can edit the files using sudo vi filename in the terminal window. Once you do that, type “i”, and you’ll be able to modify it. Once you finish, type esc and “:wq”; that will change the file

  • Gurukatagi

    Hi.. i have installed fedora 13 in my desktop
    have followed the above mentioned things as root., however i get the following error:

    [root@ganga dynamics]# yum update
    Loaded plugins: presto, refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linux/releases/13/Everything/i386/os/repodata/repomd.xml: [Errno 12] Timeout on http://download.fedoraproject.org/pub/fedora/linux/releases/13/Everything/i386/os/repodata
    /repomd.xml: (28, ”)
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

    my /etc/yum.repos.d/fedora.repo is follows :
    [fedora]
    name=Fedora $releasever – $basearch
    failovermethod=priority
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
    enabled=1
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-debuginfo]
    name=Fedora $releasever – $basearch – Debug
    failovermethod=priority
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/debug/
    #mirrorlist=http://mirrors.fedoraproject.org/metailink?repo=fedora-debug-$releasever&arch=$basearch
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [fedora-source]
    name=Fedora $releasever – Source
    failovermethod=priority
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
    #mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
    enabled=0
    metadata_expire=7d
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    and my /etc/yum.repos.d/fedora-updates.repo is as follows :
    [root@ganga dynamics]# more /etc/yum.repos.d/fedora-updates.repo
    [updates]
    name=Fedora $releasever – $basearch – Updates
    failovermethod=priority
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [updates-debuginfo]
    name=Fedora $releasever – $basearch – Updates – Debug
    failovermethod=priority
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/$basearch/debug/
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    [updates-source]
    name=Fedora $releasever – Updates Source
    failovermethod=priority
    baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

    and /etc/yum.conf
    root@ganga etc]# more yum.conf
    [main]
    cachedir=/var/cache/yum/$basearch/$releasever
    keepcache=0
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    installonly_limit=3
    color=never

    # This is the default, if you make this bigger yum won’t see if the metadata
    # is newer on the remote and so you’ll “gain” the bandwidth of not having to
    # download the new metadata and “pay” for it by yum not having correct
    # information.
    # It is esp. important, to have correct metadata, for distributions like
    # Fedora which don’t keep old packages around. If you don’t like this checking
    # interupting your command line usage, it’s much better to have something
    # manually check the metadata once an hour (yum-updatesd will do this).
    # metadata_expire=90m

    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d

    and also when i ping the addresss 80.239.156.215 and 213.129.242.84
    $ping 80.239.156.215
    PING 80.239.156.215 (80.239.156.215) 56(84) bytes of data.
    ^C
    — 80.239.156.215 ping statistics —
    3 packets transmitted, 0 received, 100% packet loss, time 2099ms

    So .. can anybody please look i into it..
    i understabd that many peapole have tried to resove this, but i am still struck.
    kindly look into it and reply

    Guru

  • Mardoqueu

    Thanks guy. It resolved my problems.

  • Pranith1988

    Could not open location ‘file:///root/Desktop’
    No application is registered as handling this file

    this is da error message when i try to open anything like desktop,downloads etc from places … i m usin RHEL6 …plz mail me da solution .. pranith1988@gmail.com

  • Praniht1988

    helo i am using RHEL6 … i tried to install adobe flash player 10 … but the error says its already installed … but i cld not find any installed programs .. help me out … i don know how to uninstall the programs and reintalll them ..

  • Andresa

    Thanks! It solved my problem. Now I can start the Firebird 1.5.

    • Anonymous

      Glad, we were of help :-)

  • Rupendrachoudhary

    un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist. ..thats not required solution of the problem..i m facing repos prb..tat tym..i tried ur sol..bt still unsceed to install packages through yum….plz gv an appropriate sol…txs..

  • Neto_poma

    Thank you very much. Solve my problem completly

  • Ron

    Thanks you fixed my problem :)

  • Satiseven

    tanks solved

  • Sssssssss

    No… this didn’t work for me. Fedora15

  • Chantiya Chowhai

    it is still not working..  i made the changes  given above..

  • Pingback: Fedora折腾笔记 | Reborn

  • Pingback: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. | Marcelo Oliveira



How to fix the “Cannot retrieve repository metadata (repomd.xml)” error in Fedora? was originally published on Digitizor.com on June 17, 2009 - 8:24 pm (Indian Standard Time)