Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd October 2007, 05:07 AM
sutra's Avatar
sutra Offline
Registered User
 
Join Date: Oct 2007
Location: Hong Kong
Posts: 16
Question Cannot retrieve repository metadata

I was trying to access yum to see whether an mplayer plugin was available but I can't get in.
It asks me to file a bug, but I suspect that there's a simple solution and I am posting it here in the hope that some of you can spot the problem in an instant. Suggestions much appreciated. I'm running 2.6.22.9-91.fc7.

Quote:
Component: pirut
Summary: TB8f5a3431 yumRepo.py:749:_getRepoXML:RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

Traceback (most recent call last):
File "/usr/sbin/pirut", line 441, in <module>
main()
File "/usr/sbin/pirut", line 434, in main
pm = PackageManager(options.config, options.onlyrepo)
File "/usr/sbin/pirut", line 61, in __init__
GraphicalYumBase.__init__(self, False, config)
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 124, in __init__
self.reset()
File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 223, in reset
self.doTsSetup()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 64, in doTsSetup
return self._getTs()
File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 78, in _getTs
self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 521, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 381, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.5/site-packages/yum/repos.py", line 239, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 142, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 199, in _check_db_version
if repo.repoXML.repoData.has_key(mdtype):
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 753, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.5/site-packages/yum/yumRepo.py", line 749, in _getRepoXML
raise Errors.RepoError, (msg)
RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

Local variables in innermost frame:
msg: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
self: fedora
e: Cannot find a valid baseurl for repo: fedora
Just how do I verify the path?
Reply With Quote
  #2  
Old 23rd October 2007, 05:22 AM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
Look in /etc/yum.repos.d/fedora.repo

and confirm that the "baseurl=" entry is commented in
and points to the valid place for the fedora repository.
my "fedora.repo" has the baseurl at:
Quote:
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
yum repositories are really just web pages, so try the url:

(note I've replaced the releasever and basearch variables with their
respective values: "7" for Fedora 7 and i386 for 386 instead of x86-64
which are my values)

http://download.fedora.redhat.com/pu...thing/i386/os/

Usually when a yum baseurl makes sense, you will land in a web page
containing a directory called "repodata" that has a file called repomd.xml

Note, if baseurl is used, then mirrorlist should not be used
and vis versa.

Mark

Last edited by marko; 23rd October 2007 at 05:26 AM.
Reply With Quote
  #3  
Old 23rd October 2007, 06:02 AM
sutra's Avatar
sutra Offline
Registered User
 
Join Date: Oct 2007
Location: Hong Kong
Posts: 16
Thanks marko - yes, that does get me to the same web page when I specify the variables, so that seems to be in order, no?
The file looks like this:
Quote:
[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]...
[fedora-source]...
Reply With Quote
  #4  
Old 23rd October 2007, 02:35 PM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
You're using the mirrorlist and not the baseurl, as a test, reverse that and make the file like this:
Quote:
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
then retry the yum command.

Mark
Reply With Quote
  #5  
Old 23rd October 2007, 05:10 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,860
Hello unless you have already been messing with files, try 'yum clean all' it usually works.
Reply With Quote
  #6  
Old 23rd October 2007, 07:19 PM
sutra's Avatar
sutra Offline
Registered User
 
Join Date: Oct 2007
Location: Hong Kong
Posts: 16
Thumbs up

Yes, Mark, that's done it. Many thanks.
Am I right in assuming that the same change is required for the [fedora-debuginfo] and [fedora-source] portions of the same file?
All very curious - I've not been fiddling with that file at all...

Dangermouse - since Mark's suggestion has put things right I haven't tried 'yum clean all' but I appreciate your help all the same.
Reply With Quote
  #7  
Old 23rd October 2007, 08:16 PM
JakeK23 Offline
Registered User
 
Join Date: Oct 2007
Posts: 2
I have been having this problem too.

I tried Dangermouse's suggestion and now pirut won't even show.
Reply With Quote
  #8  
Old 23rd October 2007, 08:33 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,860
JakeK23 my suggestion just cleans the cache, you will need to provide more information about your problem, when you say wont start, do you mean hang etc, and does yum work ? any error messages etc.
Reply With Quote
  #9  
Old 23rd October 2007, 08:37 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,860
sutra glad its fixed, but it does seem very strange since you have not fiddled with any files, and am curious as to what caused it.
Reply With Quote
  #10  
Old 23rd October 2007, 10:55 PM
JakeK23 Offline
Registered User
 
Join Date: Oct 2007
Posts: 2
Dangermouse - Beforehand, when I ran pirut, I would get the same error as sutra. The program would give me that error then terminate. I did the 'yum clean all' and now when i run pirut, nothing happens. yum still works.
Reply With Quote
  #11  
Old 23rd October 2007, 11:26 PM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,488
Quote:
Originally Posted by sutra
Yes, Mark, that's done it. Many thanks.
Am I right in assuming that the same change is required for the [fedora-debuginfo] and [fedora-source] portions of the same file?
All very curious - I've not been fiddling with that file at all...

Dangermouse - since Mark's suggestion has put things right I haven't tried 'yum clean all' but I appreciate your help all the same.
sutra
For general use, you really want to use the mirrorlist for each
repository because it's fairer at distributing the load of
people installing software. I was just suggesting trying the
baseurl because sometimes what happens is they update the
base server and then it takes a good while for the mirrors to sync
up. Until things sync up you can get these metadata errors.
So a quick hack is to point at the base server, just make
sure to switch it back. To answer the question about fedora-debuginfo
and fedora-source, most people don't even really use them.
But unless you have a problem with them, leave them on mirrorlist.

Mark
Reply With Quote
  #12  
Old 24th October 2007, 03:47 AM
sutra's Avatar
sutra Offline
Registered User
 
Join Date: Oct 2007
Location: Hong Kong
Posts: 16
I see. Thanks again.
Having put yum to use again I have got mplayer to deal with streaming radio and it now takes over jobs that Real Player is supposed to do. That's the fun with Fedora - the very minute you've figured out one thing, the next issue comes up...
Reply With Quote
  #13  
Old 11th December 2007, 02:12 AM
Omnicloud's Avatar
Omnicloud Offline
Registered User
 
Join Date: Oct 2007
Location: Jersey
Age: 26
Posts: 202
http://linuxdownload.adobe.com/linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (104, 'Connection reset by peer')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again
[root@localhost Habibi]#


Ok...this is the error I got when trying to use yum? Fix? and what caused it? I read a few users say there adobe is down as well...is this a bug?

Either way, how to i get my yum to work again?

Also, my Compiz is acting all haywire as well...
Reply With Quote
  #14  
Old 11th December 2007, 02:26 AM
nyjetshead Offline
Registered User
 
Join Date: Oct 2007
Posts: 627
Happen to me this evening.
I think something either changed at Adobe or the server is down
I deselected the Adobe repository in add/ remove software (gui version of yum) after receiving the error.
I then used yum from the comand line and all was fine.
My guess is its their server so I hope to just set it back on when its sorted out.
Reply With Quote
  #15  
Old 11th December 2007, 02:31 AM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,371
Quote:
Originally Posted by Omnicloud
http://linuxdownload.adobe.com/linux...ta/repomd.xml: [Errno 4] IOError: <urlopen error (104, 'Connection reset by peer')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again
[root@localhost Habibi]#


Ok...this is the error I got when trying to use yum? Fix? and what caused it? I read a few users say there adobe is down as well...is this a bug?

Either way, how to i get my yum to work again?

Also, my Compiz is acting all haywire as well...
Hello:
Please do not cross / double post.
http://forums.fedoraforum.org/showth...=174537&page=2

See: FedoraForum.org guidelines

Also, you should start a new thread for your topic as it differs from that of the Original thread topic.

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
Reply

Tags
metadata, repository, retrieve

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
YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora betsubetsu Using Fedora 50 15th October 2011 09:25 PM
Error: Cannot retrieve repository metadata (repomd.xml) for repository UK2 Installation 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
Cannot retrieve repository metadata (repomd.xml) for repository: c5-media kpreston Using Fedora 13 23rd July 2008 08:11 PM


Current GMT-time: 02:39 (Wednesday, 19-06-2013)

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