Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th June 2009, 04:28 PM
betsubetsu Offline
Registered User
 
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
Reply With Quote
  #2  
Old 11th June 2009, 10:10 PM
IloChab Offline
Registered User
 
Join Date: Nov 2004
Location: Milan - Italy - Europe
Posts: 28
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
Reply With Quote
  #3  
Old 12th June 2009, 08:04 AM
betsubetsu Offline
Registered User
 
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
Reply With Quote
  #4  
Old 12th June 2009, 10:56 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
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 © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 12th June 2009, 11:29 AM
betsubetsu Offline
Registered User
 
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.
Reply With Quote
  #6  
Old 12th June 2009, 11:36 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
I didn't suggest this
Code:
rm -rf __db.00*
It was this
Code:
rm -f /var/lib/rpm/__db*
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #7  
Old 12th June 2009, 11:36 AM
stallenlu Offline
Registered User
 
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:"
Reply With Quote
  #8  
Old 12th June 2009, 12:18 PM
betsubetsu Offline
Registered User
 
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
Reply With Quote
  #9  
Old 12th June 2009, 04:13 PM
betsubetsu Offline
Registered User
 
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)
Reply With Quote
  #10  
Old 12th June 2009, 04:15 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,730
Nice! I'll have to add that solution to my notes...
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #11  
Old 14th June 2009, 10:21 PM
pooanaji Offline
Registered User
 
Join Date: Aug 2008
Posts: 6
Hi,
thanks a lot to 'betsubetsu' .Now my yum is working perfectly.
Reply With Quote
  #12  
Old 19th June 2009, 11:46 PM
YeOK Offline
Registered User
 
Join Date: Apr 2006
Location: North West UK.
Age: 34
Posts: 527
Quote:
Originally Posted by betsubetsu View Post
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.
__________________
“When one is writing a letter, he should think that the recipient will make it into a hanging scroll.”
― Yamamoto Tsunetomo.
Reply With Quote
  #13  
Old 22nd June 2009, 10:27 PM
rastanja Offline
Registered User
 
Join Date: Jun 2009
Posts: 2
hi,

I have the same problem, but i TURN OFF service NetworkManager ... and it work
Reply With Quote
  #14  
Old 4th July 2009, 12:13 PM
alexuk Offline
Registered User
 
Join Date: Aug 2008
Location: London, UK
Posts: 69
Quote:
Originally Posted by betsubetsu View Post
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.
Reply With Quote
  #15  
Old 10th July 2009, 12:27 AM
manojm Offline
Registered User
 
Join Date: Jul 2009
Posts: 1
How Can I stop That?

Quote:
Originally Posted by rastanja View Post
hi,

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

Tags
error, fedora, metadata, repomdxml, repository, retrieve, 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
Error: Cannot retrieve repository metadata (repomd.xml) for repository UK2 Installation, Upgrades and Live Media 9 27th June 2009 06:05 AM
yum run with error,Cannot retrieve repository metadata (repomd.xml) for repository xtcsin Using Fedora 1 9th May 2009 10:45 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Pleas tmick Using Fedora 3 24th August 2008 07:52 PM
Net install error Cannot retrieve repository metadata(repomd.xml) lizhi Installation, Upgrades and Live Media 7 23rd August 2008 01:01 AM
Error: Cannot retrieve repository metadata (repomd.xml) apocalyptic Using Fedora 10 19th June 2008 05:31 AM


Current GMT-time: 14:18 (Wednesday, 01-10-2014)

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