Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2007-10-22, 10:07 PM CDT
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 2007-10-22, 10:22 PM CDT
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 2,731
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
__________________
Mark in Laurel, MD USA Intel Q6600 ; Sony Vaio SZ730

Last edited by marko; 2007-10-22 at 10:26 PM CDT.
Reply With Quote
  #3  
Old 2007-10-22, 11:02 PM CDT
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 2007-10-23, 07:35 AM CDT
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 2,731
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
__________________
Mark in Laurel, MD USA Intel Q6600 ; Sony Vaio SZ730
Reply With Quote
  #5  
Old 2007-10-23, 10:10 AM CDT
Dangermouse's Avatar
Dangermouse Offline
Community Manager
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 44
Posts: 2,378
Hello unless you have already been messing with files, try 'yum clean all' it usually works.
Reply With Quote
  #6  
Old 2007-10-23, 12:19 PM CDT
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 2007-10-23, 01:16 PM CDT
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 2007-10-23, 01:33 PM CDT
Dangermouse's Avatar
Dangermouse Offline
Community Manager
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 44
Posts: 2,378
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 2007-10-23, 01:37 PM CDT
Dangermouse's Avatar
Dangermouse Offline
Community Manager
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 44
Posts: 2,378
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 2007-10-23, 03:55 PM CDT
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 2007-10-23, 04:26 PM CDT
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 2,731
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
__________________
Mark in Laurel, MD USA Intel Q6600 ; Sony Vaio SZ730
Reply With Quote
  #12  
Old 2007-10-23, 08:47 PM CDT
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 2007-12-10, 07:12 PM CST
Omnicloud's Avatar
Omnicloud Offline
Registered User
 
Join Date: Oct 2007
Location: Jersey
Age: 22
Posts: 198
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 2007-12-10, 07:26 PM CST
nyjetshead Offline
Registered User
 
Join Date: Oct 2007
Posts: 532
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 2007-12-10, 07:31 PM CST
Seve's Avatar
Seve Offline
Quasi-Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 51
Posts: 11,971
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

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 General Support 28 2009-10-22 02:24 AM CDT
Error: Cannot retrieve repository metadata (repomd.xml) for repository UK2 Installation Help 9 2009-06-26 11:05 PM CDT
yum run with error,Cannot retrieve repository metadata (repomd.xml) for repository xtcsin Software 1 2009-05-09 03:45 PM CDT
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Pleas tmick General Support 3 2008-08-24 12:52 PM CDT
Cannot retrieve repository metadata (repomd.xml) for repository: c5-media kpreston General Support 13 2008-07-23 01:11 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 06:01 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



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 | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Thanks to vBET you can enjoy automatic translations