YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 58
  1. #1
    Join Date
    Nov 2004
    Location
    /dev/zero
    Posts
    39

    YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora

    I installed F11 from scratch on a desktop and now I have trouble using yum

    Code:
    # yum repolist all
    Loaded plugins: refresh-packagekit
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
    # yum info kernel
    Loaded plugins: refresh-packagekit
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
    # yum list installed
    Loaded plugins: refresh-packagekit
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
    I have been looking around but cannot find a solution.

    Hope someone can help me.

    Thanks,
    BB

  2. #2
    Join Date
    Nov 2004
    Location
    Milan - Italy - Europe
    Posts
    36
    I had your same problem just now, with a fresh install of Fedora 11 from KDE-Live CD.
    Googling I find out that that error depends on the fact that yum is not able to get the file from the repository.
    So, if your network connection is ok (like mine) the cause could be the fact that, due to traffic overload, yum can't get the mirror list from fedora server (that is its default conf on F11)
    So I commented in .repo definitions the mirrorlist line and I substituted it whith a baseurl to a speedy server near me; I'm in europe so I choose :
    baseurl=http://ftp.uni-kl.de/pub/linux/fedora/linux/releases/11/Everything/x86_64/os/

    I hope this could be of help for you.
    ciao
    Licia

  3. #3
    Join Date
    Nov 2004
    Location
    /dev/zero
    Posts
    39
    I commented the mirrorlist and uncommented the baseurl (see yum repo below) and

    Code:
    [fedora]
    name=Fedora $releasever - $basearch
    failovermethod=priority
    baseurl=ftp://ftp.cru.fr/pub/linux/fedora/releases/11/Everything/x86_64/os/
    #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
    this works but for livna and rpmfusion repositories, I can't make them work.

    For rpmfusion-free, i have:

    Code:
    [rpmfusion-free]
    name=RPM Fusion for Fedora $releasever - Free
    baseurl=http://fr2.rpmfind.net/linux/rpmfusion/free/fedora/releases/11/Everything/x86_64/os/
    #baseurl=http://download1.rpmfusion.org/free/fedora/releases/$releasever/Everything/$basearch/os/
    #mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-$releasever&arch=$basearch
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever-$basearch
    I get this error now. I have a connection and I can browse websites with firefox but yum still doesn't work properly:

    Code:
    # yum repolist all
    Loaded plugins: refresh-packagekit
    http://fr2.rpmfind.net/linux/rpmfusion/free/fedora/releases/11/Everything/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error [Errno -2] Name or service not known>
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-free. Please verify its path and try again
    If i open http://fr2.rpmfind.net/linux/rpmfusi...ata/repomd.xml in firefox, i get the xml file. So why does it say "name or service not known"?

    BB

  4. #4
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,735
    You can try
    Code:
    yum clean all
    and then
    Code:
    yum info kernel
    or any other yum command as a test. If that doesn't work you can try
    Code:
    yum clean all
    rm -f /var/lib/rpm/__db*
    rpm --rebuilddb
    then try any yum command again.

    Edit: The only file in the Livna repository is libdvdcss so once you get that file you don't need to have Livna enabled.
    Glenn
    The Bassinator

  5. #5
    Join Date
    Nov 2004
    Location
    /dev/zero
    Posts
    39
    Here is what you suggest.

    Code:
    # yum clean all
    Loaded plugins: refresh-packagekit
    Cleaning up Everything
    Code:
    # yum info kernel
    Loaded plugins: refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linux/releases/11/Everything/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error [Errno -2] Name or service not known>
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
    Code:
    # rm -rf __db.00* 
    # yum clean all
    Loaded plugins: refresh-packagekit
    Cleaning up Everything
    # rpm --rebuilddb
    # yum repolist
    Loaded plugins: refresh-packagekit
    http://download.fedoraproject.org/pub/fedora/linux/releases/11/Everything/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error [Errno -2] Name or service not known>
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
    I think this is related to ipv6 (see my post here: http://forums.fedoraforum.org/showthread.php?t=223585).
    I disabled ipv6 but still cannot resolve names.

  6. #6
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,735
    I didn't suggest this
    Code:
    rm -rf __db.00*
    It was this
    Code:
    rm -f /var/lib/rpm/__db*
    Glenn
    The Bassinator

  7. #7
    Join Date
    Jun 2006
    Posts
    1
    I have the same problem.
    When I changed the *.repo file in /etc/yum.repos.d,it works.
    "change all 'https' to 'http' in each *.repo file"
    such as:
    -------------------------------------------------------------
    [fedora]
    name=Fedora $releasever - $basearch
    failovermethod=priority
    baseurl=ftp://ftp.cru.fr/pub/linux/fedora/releases/11/Everything/x86_64/os/
    #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-$basearchthe
    --------------------------------------------------------------
    change is like this
    --------------------------------------------------------------
    "mirrorlist=https:"--->"mirrorlist=https:"

  8. #8
    Join Date
    Nov 2004
    Location
    /dev/zero
    Posts
    39
    I know using
    Code:
    baseurl=ftp://ftp.cru.fr/pub/linux/fedora/releases/11/Everything/x86_64/os/
    in fedora.repo works but for rpmfusion-free.repo, i get the same problem anyway:

    Code:
    # yum repolist
    Loaded plugins: refresh-packagekit
    http://fr2.rpmfind.net/linux/rpmfusion/free/fedora/releases/11/Everything/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: <urlopen error [Errno -2] Name or service not known>
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-free. Please verify its path and try again

  9. #9
    Join Date
    Nov 2004
    Location
    /dev/zero
    Posts
    39

    [SOLVED] YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository:

    It turned out that my local DNS server was the problem so I stopped it and added in /etc/hosts these 2 lines:
    Code:
    80.239.156.215          mirrors.fedoraproject.org
    213.129.242.84          mirrors.rpmfusion.org
    Doing so also solved the wget problem. (http://forums.fedoraforum.org/showthread.php?t=223585)

  10. #10
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    15,735
    Nice! I'll have to add that solution to my notes...
    Glenn
    The Bassinator

  11. #11
    Join Date
    Aug 2008
    Posts
    6
    Hi,
    thanks a lot to 'betsubetsu' .Now my yum is working perfectly.

  12. #12
    Join Date
    Apr 2006
    Location
    North West UK.
    Age
    38
    Posts
    531
    Quote Originally Posted by betsubetsu
    It turned out that my local DNS server was the problem so I stopped it and added in /etc/hosts these 2 lines:
    Code:
    80.239.156.215          mirrors.fedoraproject.org
    213.129.242.84          mirrors.rpmfusion.org
    Doing so also solved the wget problem. (http://forums.fedoraforum.org/showthread.php?t=223585)
    Good find, I just got this issue. Fix worked great.
    - Phanteks Enthoo Luxe, Intel Core i5 6600k @ 4.4ghz, 16GB DDR4, Asus Z170-A, Nvidia GTX 970 4GB running Fedora 24 and Win 10

  13. #13
    Join Date
    Jun 2009
    Posts
    2
    hi,

    I have the same problem, but i TURN OFF service NetworkManager ... and it work

  14. #14
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    81
    Quote Originally Posted by betsubetsu
    It turned out that my local DNS server was the problem so I stopped it and added in /etc/hosts these 2 lines:
    Code:
    80.239.156.215          mirrors.fedoraproject.org
    213.129.242.84          mirrors.rpmfusion.org
    Doing so also solved the wget problem. (http://forums.fedoraforum.org/showthread.php?t=223585)
    How do you stop it? Thanks.

  15. #15
    Join Date
    Jul 2009
    Posts
    1

    How Can I stop That?

    Quote Originally Posted by rastanja
    hi,

    I have the same problem, but i TURN OFF service NetworkManager ... and it work
    Hi, How can we stop that? thanks

Page 1 of 4 1 2 3 ... LastLast

Similar Threads

  1. Error: Cannot retrieve repository metadata (repomd.xml) for repository
    By UK2 in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 27th June 2009, 06:05 AM
  2. Replies: 1
    Last Post: 9th May 2009, 10:45 PM
  3. Replies: 3
    Last Post: 24th August 2008, 07:52 PM
  4. Net install error Cannot retrieve repository metadata(repomd.xml)
    By lizhi in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 23rd August 2008, 01:01 AM
  5. Error: Cannot retrieve repository metadata (repomd.xml)
    By apocalyptic in forum Using Fedora
    Replies: 10
    Last Post: 19th June 2008, 05:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •