The mirrorlist entry in my Fedora-11 /etc/yum.repos.d/fedora-update.repo reads: mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released- f$releasever&arch=$basearch
As far as I can see, this means that yum is looking for the file metalink at mirrors.fedoraproject.org ?
If I try "sudo yum update" I get: ----------------------------------- [tim@elizabeth ~]$ sudo yum update Loaded plugins: aliases, allowdowngrade, auto-update-debuginfo, basearchonly, changelog, downloadonly, fastestmirror, filter- : data, keys, list-data, merge-conf, post-transaction-actions, presto, priorities, protect-packages, : protectbase, refresh-packagekit, refresh-updatesd, remove- with-leaves, rpm-warm-cache, security, show-leaves, : tsflags, upgrade-helper, verify, versionlock Loading mirror speeds from cached hostfile Error: Cannot retrieve metalink for repository: updates. Please verify its path and try again ----------------------------------- Adding --noplugins does not help: ----------------------------------- [tim@elizabeth ~]$ sudo yum --noplugins update Error: Cannot retrieve repository metadata (repomd.xml) for repository: updates. Please verify its path and try again -----------------------------------
Trying to get the file with wget: ----------------------------------- [tim@elizabeth ~]$ wget https://mirrors.fedoraproject.org/metalink --2009-07-17 13:04:41-- https://mirrors.fedoraproject.org/metalink Resolving mirrors.fedoraproject.org... 209.132.176.122 Connecting to mirrors.fedoraproject.org|209.132.176.122|:443... connected. ERROR: certificate common name `fedoraproject.org' doesn't match requested host name `mirrors.fedoraproject.org'. To connect to mirrors.fedoraproject.org insecurely, use `--no-check- certificate'. Unable to establish SSL connection. ----------------------------------- Adding --no-check-certificate does not seem to help: ----------------------------------- [tim@elizabeth ~]$ wget --no-check-certificate https://mirrors.fedoraproject.org/metalink --2009-07-17 13:06:22-- https://mirrors.fedoraproject.org/metalink Resolving mirrors.fedoraproject.org... 209.132.176.122 Connecting to mirrors.fedoraproject.org|209.132.176.122|:443... connected. WARNING: certificate common name `fedoraproject.org' doesn't match requested host name `mirrors.fedoraproject.org'. HTTP request sent, awaiting response... 404 Not Found 2009-07-17 13:06:23 ERROR 404: Not Found. -----------------------------------
When I look at the http traffic on my server with wireshark the file-request seems to be properly sent, but the file is not found.
The symptoms seem to me (no http expert) to suggest that there is some condition for seeing this file that my system is not fulfilling.
Any and all suggestions gratefully received.
On Fri, Jul 17, 2009 at 01:14:26PM +0100, Timothy Murphy wrote:
The mirrorlist entry in my Fedora-11 /etc/yum.repos.d/fedora-update.repo
[...]
Any and all suggestions gratefully received.
This is a list for CentOS, not Fedora. You'll get better help if you post to the right lists :-)
Stephen Harris wrote:
On Fri, Jul 17, 2009 at 01:14:26PM +0100, Timothy Murphy wrote:
The mirrorlist entry in my Fedora-11 /etc/yum.repos.d/fedora-update.repo
[...]
Any and all suggestions gratefully received.
This is a list for CentOS, not Fedora. You'll get better help if you post to the right lists :-)
Sorry, I should have said that my server is running Centos-5.3. If there is a problem on my system, it is at the server. I ran wget on the server, and got the same result. I also get the same result for EPEL: --------------------------------- [tim@helen ~]$ sudo yum update Loaded plugins: downloadonly, fastestmirror, priorities, protect-packages, protectbase Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 error was [Errno 14] HTTP Error 404: Not Found Error: Cannot find a valid baseurl for repo: epel --------------------------------- using the mirrorlist line in /etc/yum.repos.d/epel.repo : mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearchkk
Also wget fails similarly: --------------------------------- [tim@helen ~]$ wget http://mirrors.fedoraproject.org/mirrorlist --14:43:39-- http://mirrors.fedoraproject.org/mirrorlist Resolving mirrors.fedoraproject.org... 209.132.176.122 Connecting to mirrors.fedoraproject.org|209.132.176.122|:80... connected. HTTP request sent, awaiting response... 404 Not Found 14:43:39 ERROR 404: Not Found. --------------------------------- This machine is running x86_64 CentOS: --------------------------------- [tim@helen ~]$ cat /etc/redhat-release CentOS release 5.3 (Final) ---------------------------------
On 17 Jul 2009, at 3:48 PM, Timothy Murphy wrote:
Stephen Harris wrote:
On Fri, Jul 17, 2009 at 01:14:26PM +0100, Timothy Murphy wrote:
The mirrorlist entry in my Fedora-11 /etc/yum.repos.d/fedora- update.repo
[...]
Any and all suggestions gratefully received.
This is a list for CentOS, not Fedora. You'll get better help if you post to the right lists :-)
Sorry, I should have said that my server is running Centos-5.3. If there is a problem on my system, it is at the server. I ran wget on the server, and got the same result. I also get the same result for EPEL:
[tim@helen ~]$ sudo yum update Loaded plugins: downloadonly, fastestmirror, priorities, protect- packages, protectbase Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 error was [Errno 14] HTTP Error 404: Not Found Error: Cannot find a valid baseurl for repo: epel
using the mirrorlist line in /etc/yum.repos.d/epel.repo : mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearchkk
Also wget fails similarly:
[tim@helen ~]$ wget http://mirrors.fedoraproject.org/mirrorlist --14:43:39-- http://mirrors.fedoraproject.org/mirrorlist Resolving mirrors.fedoraproject.org... 209.132.176.122 Connecting to mirrors.fedoraproject.org|209.132.176.122|:80... connected. HTTP request sent, awaiting response... 404 Not Found 14:43:39 ERROR 404: Not Found.
This machine is running x86_64 CentOS:
[tim@helen ~]$ cat /etc/redhat-release CentOS release 5.3 (Final)
It does work for me i get the mirrorlist when i request the url in a browser. Try a different host (from the ip's below) as that is a round robin address
mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 80.239.156.215 wildcard.fedoraproject.org has address 152.46.7.222 wildcard.fedoraproject.org has address 209.132.176.120
-- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College Dublin
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Andrew Colin Kissa wrote:
It does work for me i get the mirrorlist when i request the url in a browser. Try a different host (from the ip's below) as that is a round robin address
mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 80.239.156.215 wildcard.fedoraproject.org has address 152.46.7.222 wildcard.fedoraproject.org has address 209.132.176.120
Thanks for trying to help. I'm afraid I get the same response from all these IP addresses. My firefox browser says "The requested URL /mirrorlist was not found on this server. Apache/2.2.3 (Red Hat) Server at admin.fedoraproject.org Port 443" while wget says ----------------------------------------- [tim@helen tmp]$ wget http://66.35.62.166/mirrorlist --16:17:01-- http://66.35.62.166/mirrorlist Connecting to 66.35.62.166:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://admin.fedoraproject.org/mirrorlist [following] --16:17:02-- https://admin.fedoraproject.org/mirrorlist Resolving admin.fedoraproject.org... 209.132.176.120, 152.46.7.222, 66.35.62.166, ... Connecting to admin.fedoraproject.org|209.132.176.120|:443... connected. HTTP request sent, awaiting response... 404 Not Found 16:17:03 ERROR 404: Not Found. -----------------------------------------
Hi,
On Fri, Jul 17, 2009 at 08:14, Timothy Murphygayleard@eircom.net wrote:
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released- f$releasever&arch=$basearch
[tim@elizabeth ~]$ wget https://mirrors.fedoraproject.org/metalink ERROR: certificate common name `fedoraproject.org' doesn't match requested host name `mirrors.fedoraproject.org'.
Does it work if you use http:// instead of https:// with the same URL?
HTH, Filipe
Filipe Brandenburger wrote:
Does it work if you use http:// instead of https:// with the same URL?
No, I get exactly the same error: --------------------------------------- [tim@helen tmp]$ sudo yum update Loaded plugins: downloadonly, fastestmirror, priorities, protect-packages, protectbase Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 error was [Errno 14] HTTP Error 404: Not Found Error: Cannot find a valid baseurl for repo: epel --------------------------------------- But thanks for trying to help.
Hi,
On Fri, Jul 17, 2009 at 11:58, Timothy Murphygayleard@eircom.net wrote:
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 error was [Errno 14] HTTP Error 404: Not Found
What does the "host mirrors.fedoraproject.org" command return for you?
Filipe
Filipe Brandenburger wrote:
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=x86_64 error was [Errno 14] HTTP Error 404: Not Found
What does the "host mirrors.fedoraproject.org" command return for you?
Thanks for the reply: ----------------------- [tim@helen ~]$ host mirrors.fedoraproject.org mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 80.239.156.215 wildcard.fedoraproject.org has address 152.46.7.222 wildcard.fedoraproject.org has address 209.132.176.120 -----------------------
Incidentally, I forgot to mention that I can get the mirrorlist without difficulty from my laptop under Windows (Internet Explorer), using the same CentOS server.
I shall run wireshark on my server, and see how the requests differ.
On Fri, Jul 17, 2009 at 13:25, Timothy Murphygayleard@eircom.net wrote:
Thanks for the reply:
[tim@helen ~]$ host mirrors.fedoraproject.org mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org. wildcard.fedoraproject.org has address 66.35.62.166 wildcard.fedoraproject.org has address 80.239.156.215 wildcard.fedoraproject.org has address 152.46.7.222 wildcard.fedoraproject.org has address 209.132.176.120
"host" seems to return the right IPs, but:
[tim@helen ~]$ wget http://mirrors.fedoraproject.org/mirrorlist --14:43:39-- http://mirrors.fedoraproject.org/mirrorlist Resolving mirrors.fedoraproject.org... 209.132.176.122
"wget" is resolving it to the wrong IP... (???)
Do you have something strange in /etc/hosts?
What is your /etc/resolv.conf like?
Can you try to use "curl" instead of "wget" to see if it resolves right?
$ curl http://mirrors.fedoraproject.org/mirrorlist # either path=, or repo= and arch= must be specified
Also, use "curl -v http://..." to see to which IP you are connecting.
I shall run wireshark on my server, and see how the requests differ.
As the problem is in domain names, I would say it's either /etc/hosts or a DNS cache, so sniffing the network won't probably give you many clues... Does your Windows machine use different resolvers than your Linux machine?
HTH, Filipe
Filipe Brandenburger wrote:
Do you have something strange in /etc/hosts?
Thank you very much indeed.
That was indeed the problem. I was playing with an ipv6 application some time ago, and I did not notice that it appended many lines to /etc/hosts (actually just on my server, but I later copied this /etc/hosts to my other machines without looking at it).
Hi,
It's a problem with the mirror you are using (209.132.176.122), it seems to be bogus or out of sync:
On Fri, Jul 17, 2009 at 08:14, Timothy Murphygayleard@eircom.net wrote:
[tim@elizabeth ~]$ wget --no-check-certificate https://mirrors.fedoraproject.org/metalink --2009-07-17 13:06:22-- https://mirrors.fedoraproject.org/metalink Resolving mirrors.fedoraproject.org... 209.132.176.122 Connecting to mirrors.fedoraproject.org|209.132.176.122|:443... connected. WARNING: certificate common name `fedoraproject.org' doesn't match requested host name `mirrors.fedoraproject.org'. HTTP request sent, awaiting response... 404 Not Found 2009-07-17 13:06:23 ERROR 404: Not Found.
I am getting mirror 209.132.176.120 (and some others), which seems to be working OK:
$ wget https://mirrors.fedoraproject.org/metalink --12:54:34-- https://mirrors.fedoraproject.org/metalink Resolving mirrors.fedoraproject.org... 209.132.176.120, 152.46.7.222, 66.35.62.166, ... Connecting to mirrors.fedoraproject.org|209.132.176.120|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 53 [text/plain] Saving to: `metalink'
100%[=======================================>] 53 --.-K/s in 0s
12:54:35 (1.41 MB/s) - `metalink' saved [53/53]
I see you also tried to access the IP directly (wget http://66.35.62.166/mirrorlist) but that does not work probably because the server uses virtual hosts and the default virtual host is probably not the one you want. It's possible to work around that by using --header 'Host: mirrors.fedoraproject.org' in the wget command line.
For example, the same host I used above:
$ wget --header 'Host: mirrors.fedoraproject.org' http://209.132.176.120/metalink --12:56:07-- http://209.132.176.120/metalink Connecting to 209.132.176.120:80... connected. HTTP request sent, awaiting response... 200 OK Length: 53 [text/plain] Saving to: `metalink'
100%[=======================================>] 53 --.-K/s in 0s
12:56:08 (3.94 MB/s) - `metalink' saved [53/53]
And the one you are using:
$ wget --header 'Host: mirrors.fedoraproject.org' http://209.132.176.122/metalink --12:56:12-- http://209.132.176.122/metalink Connecting to 209.132.176.122:80... connected. HTTP request sent, awaiting response... 404 Not Found 12:56:12 ERROR 404: Not Found.
To work around this issue, I suggest you add a line with "209.132.176.122 mirrors.fedoraproject.org" to your /etc/hosts, and also contact the Fedora project to inform them that this specific mirror is bad... You might also try to flush your DNS cache to see if you get a new IP for that domain.
HTH, Filipe
On Friday 17 July 2009 08:14, Timothy Murphy wrote:
The mirrorlist entry in my Fedora-11 /etc/yum.repos.d/fedora-update.repo reads:
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released
- f$releasever&arch=$basearch
As far as I can see, this means that yum is looking for the file metalink at mirrors.fedoraproject.org ?
If I try "sudo yum update" I get:
Why would you want to link to Fedora's Repo's? So you can have an unstalbe Centos box?
Robert Spangler wrote:
On Friday 17 July 2009 08:14, Timothy Murphy wrote:
The mirrorlist entry in my Fedora-11 /etc/yum.repos.d/fedora-update.repo reads:
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-
released
- f$releasever&arch=$basearch
As far as I can see, this means that yum is looking for the file metalink at mirrors.fedoraproject.org ?
If I try "sudo yum update" I get:
Why would you want to link to Fedora's Repo's? So you can have an unstalbe Centos box?
My server is running under CentOS-5.3 . My laptop is running under Fedora-11.
Actually, I do use the EPEL repository on the server, and this uses the same fedoraproject site, so the same problem arises there.