LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-31-2011, 05:57 PM   #1
tron_thomas
Member
 
Registered: May 2004
Posts: 217

Rep: Reputation: 30
Cannot retrieve metalink for repository: fedora with yum after Fedora 15 upgrade


I upgraded an Intel Core 2 Duo system to the 64-bit version of Fedora 15, and now yum will not work properly.

Quote:
yum repolist
Loaded plugins: langpacks, presto, refresh-packagekit
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again

yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
What can be done to resolve these issues so that yum can update the system?
 
Old 07-31-2011, 06:41 PM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Hello,

I have come across many users getting this error after upgrading. Have you checked your system wide proxy settings? That is the biggest issue when it comes to this error. Have a look here - http://forums.fedoraforum.org/showthread.php?t=224988 and here also - http://forums.fedoraforum.org/showthread.php?t=266923

Hope this helps!

Cheers,

Josh
 
Old 07-31-2011, 10:27 PM   #3
tron_thomas
Member
 
Registered: May 2004
Posts: 217

Original Poster
Rep: Reputation: 30
I think I already saw one of those posting when I researched the problem before posting. Niether one of them seem to mention how to change any proxy settings that I could tell. I don't believe I'm using a proxy server or anything like that, so I'm not sure that is my problem. If it is, I am not sure how someone is supposed to modify their settings and what changes they need to make.
 
Old 08-01-2011, 09:10 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Have a look at your yum.conf configuration within /etc/ and make sure that the proxy settings don't have anything different than the settings in the system wide proxy settings, located within your preferences.
 
Old 08-01-2011, 11:12 PM   #5
tron_thomas
Member
 
Registered: May 2004
Posts: 217

Original Poster
Rep: Reputation: 30
Here's the contents of my yum.conf file:

Quote:
[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

# 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
I don't see anything about proxy settings, so I'm not sure what insight this offers to the problem.
 
Old 08-02-2011, 12:00 AM   #6
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
After staring at your configuration, I think I know what the problem is.... See where it says "Cannot retrieve repository metadata (repomd.xml) for repository: fedora"? Well that's it right there - the fedora repository is "down"..... Can you post the contents of your fedora.repo file located within /etc/yum.repos.d/ for me?
 
Old 08-03-2011, 11:34 PM   #7
tron_thomas
Member
 
Registered: May 2004
Posts: 217

Original Poster
Rep: Reputation: 30
I'm not sure my problem is that the fedora repository is down. I have another Intel system I also upgraded to Fedora 15, and it looks like it can access the repository fine. This is the output I get on that system when I execute yum repolist:

Quote:
Loaded plugins: presto, refresh-packagekit
adobe-linux-i386 | 951 B 00:00
rpmfusion-free-updates | 2.7 kB 00:00
rpmfusion-free-updates/primary_db | 163 kB 00:01
rpmfusion-nonfree-updates | 2.7 kB 00:00
rpmfusion-nonfree-updates/primary_db | 59 kB 00:01
Could not get metalink https://mirrors.fedoraproject.org/me...-f15&arch=i386 error was
14: curl#6 - "Couldn't resolve host"
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated 18
fedora Fedora 15 - i386 19,365
rpmfusion-free RPM Fusion for Fedora 15 - Free 370
rpmfusion-free-updates RPM Fusion for Fedora 15 - Free - Updates 292
rpmfusion-nonfree RPM Fusion for Fedora 15 - Nonfree 160
rpmfusion-nonfree-updates RPM Fusion for Fedora 15 - Nonfree - Updates 145
updates Fedora 15 - i386 - Updates 3,535
repolist: 23,885
This is what I get when I execute yum repolist on the system with the problem:
Quote:
Loaded plugins: langpacks, presto, refresh-packagekit
rpmfusion-free-updates | 2.7 kB 00:00
rpmfusion-nonfree-updates | 2.7 kB 00:00
rpmfusion-nonfree-updates/primary_db | 50 kB 00:00
Error: Cannot retrieve metalink for repository: fedora. Please verify its path and try again
One difference is that the system that seems to works is 32-bit and the system with the problem is 64-bit. I don't know how significant that is. I checked and both machines have the same fedora.repo file, so I'm not sure there's any problem with that file. Here are the contents of the fedora.repo file:
Quote:
[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=https://mirrors.fedoraproject.org/metalink?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=https://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
 
Old 08-04-2011, 10:53 AM   #8
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
I wasn't meaning that it was actually down, just that your configuration might have been jacked. I did notice something else though.... Try manually switching mirrors before you go any further, I had a very similar problem a while back, and that was the fix to change mirrors.
 
Old 08-06-2011, 04:11 PM   #9
tron_thomas
Member
 
Registered: May 2004
Posts: 217

Original Poster
Rep: Reputation: 30
It looks like I was able to get things to work by added the following line to /etc/hosts:
80.239.156.215 mirrors.fedoraproject.org
 
Old 08-06-2011, 05:53 PM   #10
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995Reputation: 995
Glad to hear you have resolved your issue. Please mark your thread as solved if you can, thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. glowe Linux - Newbie 4 07-19-2010 07:42 PM
[SOLVED] Cannot retrieve repository metadata in Fedora 11 varunkrishna Fedora 6 05-06-2010 02:48 AM
yum fails with error: Cannot retrieve repository metadata (repomd.xml) for repository dmendonsa Fedora 6 02-10-2010 07:23 PM
update software in Fedora 9 can not retrieve repository metadata james2b Fedora 2 08-17-2008 11:12 AM
Redhat 5.1 Yum Repository vs Fedora x.x Yum Repository lead2gold Linux - Software 1 05-22-2008 02:19 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration