We have CENTOS 5.1 on DELL server. This server is OUTSIDE Firewall. I tried to update it to latest release and get error.
any ideal?
========================================= # yum update Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was [Errno 4] IOError: <urlopen error (111, 'Connection refused')> Error: Cannot find a valid baseurl for repo: base
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
On Mon, 2009-08-10 at 03:59 +0800, mcclnx mcc wrote:
We have CENTOS 5.1 on DELL server. This server is OUTSIDE Firewall. I tried to update it to latest release and get error.
any ideal?
========================================= # yum update Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was [Errno 4] IOError: <urlopen error (111, 'Connection refused')> Error: Cannot find a valid baseurl for repo: base
try a
yum clean all
then a
yum upgrade
Thanks. for answer. I tried:
yum clean all yum update
It still same problem.
--- 09/8/9 (日),lostson lostson@lostsonsvault.org 寫道:
寄件者: lostson lostson@lostsonsvault.org 主旨: Re: [CentOS] can NOT update CENTOS use YUM 收件者: centos@centos.org 日期: 2009年8月9日,日,下午4:04
On Mon, 2009-08-10 at 03:59 +0800, mcclnx mcc wrote:
We have CENTOS 5.1 on DELL server. This server
is OUTSIDE Firewall. I tried to update it to latest release and get error.
any ideal?
========================================= # yum update Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
error was
[Errno 4] IOError: <urlopen error (111, 'Connection
refused')>
Error: Cannot find a valid baseurl for repo: base
try a
yum clean all
then a
yum upgrade
-- LostSon
centOS its not just for servers...
-----內含下列夾帶檔案-----
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
On Sun, Aug 9, 2009 at 4:06 PM, mcclnx mccmcclnx@yahoo.com.tw wrote: Thanks. for answer. I tried:
yum clean all yum update
It still same problem.
<snip>
There is another one that was mentioned on the list a few days ago. I think it is yum clean metatags or something like that.
On Sun, Aug 09, 2009 at 04:18:25PM -0500, Lanny Marcus wrote:
On Sun, Aug 9, 2009 at 4:06 PM, mcclnx mccmcclnx@yahoo.com.tw wrote: Thanks. for answer. I tried:
yum clean all yum update
It still same problem.
<snip>
There is another one that was mentioned on the list a few days ago. I think it is yum clean metatags or something like that.
"yum clean all" will also clean up meta information.
Looks like a simple connectivity issue to me; the host was not able to retrieve a mirror list.
John
mcclnx mcc wrote:
Thanks. for answer. I tried:
yum clean all yum update
It still same problem.
<snip>
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
<snip>
This might be a stupid question but can you paste that URL into a browser and see the list of mirrors? I see:
http://mirror.steadfast.net/centos/5.3/os/i386/ http://centos.promopeddler.com/5.3/os/i386/ ftp://repo.genomics.upenn.edu/centos/5.3/os/i386/ http://mirror.unl.edu/centos/5.3/os/i386/ http://mirror.web-ster.com/centos/5.3/os/i386/ http://mirrors.liquidweb.com/CentOS/5.3/os/i386/ http://centos.omnispring.com/5.3/os/i386/ http://mirrors.unbornmedia.com/centos/5.3/os/i386/ http://mirror.stanford.edu/yum/pub/centos/5.3/os/i386/ http://mirrors.adams.net/centos/5.3/os/i386/
in my browser.
mcclnx mcc wrote:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: base
that error seems to indicate you can't read that URL.
at a shell prompt, try...
$ wget -O - --progress=dot "http://mirrorlist.centos.org/?release=5&arch=i386&repo=os" --14:35:00-- http://mirrorlist.centos.org/?release=5&arch=i386&repo=os Resolving mirrorlist.centos.org... 204.15.73.243, 72.232.223.58 Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT' http://pubmirrors.reflected.net/centos/5.3/os/i386/ http://updates.interworx.info/centos/5.3/os/i386/ http://mirrors.cat.pdx.edu/centos/5.3/os/i386/ http://mirror.cs.vt.edu/pub/CentOS/5.3/os/i386/ http://mirrors.kernel.org/centos/5.3/os/i386/ http://mirrors.cmich.edu/centos/5.3/os/i386/ http://mirror.clarkson.edu/centos/5.3/os/i386/ http://mirror.nuvio.com/pub/centos/5.3/os/i386/ http://mirror.newnanutilities.org/pub/centos/5.3/os/i386/ http://mirror.linux.duke.edu/pub/centos/5.3/os/i386/
0K 21.8M=0s
14:35:00 (21.8 MB/s) - `-' saved [494]
as you are in .tw, likely you'd get a different set of URLs back.
if you get errors, debug that.
I have No problem to use following comma nd:
# wget -O - --progress=dot "http://mirrorlist.centos.org/?release=5&arch=i386&repo=os" --08:55:27-- http://mirrorlist.centos.org/?release=5&arch=i386&repo=os Resolving mirrorlist.centos.org... 204.15.73.243, 72.232.223.58 Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT' http://pubmirrors.reflected.net/centos/5.3/os/i386/ http://updates.interworx.info/centos/5.3/os/i386/ http://mirrors.cat.pdx.edu/centos/5.3/os/i386/ http://mirror.cs.vt.edu/pub/CentOS/5.3/os/i386/ http://mirrors.kernel.org/centos/5.3/os/i386/ http://mirrors.cmich.edu/centos/5.3/os/i386/ http://mirror.clarkson.edu/centos/5.3/os/i386/ http://mirror.nuvio.com/pub/centos/5.3/os/i386/ http://mirror.newnanutilities.org/pub/centos/5.3/os/i386/ http://mirror.linux.duke.edu/pub/centos/5.3/os/i386/
0K 59.6M=0s
08:55:27 (59.6 MB/s) - `-' saved [494]
--- 09/8/9 (日),John R Pierce pierce@hogranch.com 寫道:
寄件者: John R Pierce pierce@hogranch.com 主旨: Re: [CentOS] can NOT update CENTOS use YUM 收件者: "CentOS mailing list" centos@centos.org 日期: 2009年8月9日,日,下午5:36 mcclnx mcc wrote:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
error was
[Errno 4] IOError: <urlopen error (111,
'Connection refused')>
Error: Cannot find a valid baseurl for repo:
base
that error seems to indicate you can't read that URL.
at a shell prompt, try...
$ wget -O - --progress=dot "http://mirrorlist.centos.org/?release=5&arch=i386&repo=os" --14:35:00-- http://mirrorlist.centos.org/?release=5&arch=i386&repo=os Resolving mirrorlist.centos.org... 204.15.73.243, 72.232.223.58 Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT' http://pubmirrors.reflected.net/centos/5.3/os/i386/ http://updates.interworx.info/centos/5.3/os/i386/ http://mirrors.cat.pdx.edu/centos/5.3/os/i386/ http://mirror.cs.vt.edu/pub/CentOS/5.3/os/i386/ http://mirrors.kernel.org/centos/5.3/os/i386/ http://mirrors.cmich.edu/centos/5.3/os/i386/ http://mirror.clarkson.edu/centos/5.3/os/i386/ http://mirror.nuvio.com/pub/centos/5.3/os/i386/ http://mirror.newnanutilities.org/pub/centos/5.3/os/i386/ http://mirror.linux.duke.edu/pub/centos/5.3/os/i386/
0K 21.8M=0s
14:35:00 (21.8 MB/s) - `-' saved [494]
as you are in .tw, likely you'd get a different set of URLs back.
if you get errors, debug that. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
On Aug 10, 2009, at 8:56 AM, mcclnx mcc mcclnx@yahoo.com.tw wrote:
I have No problem to use following comma nd:
# wget -O - --progress=dot "http://mirrorlist.centos.org/?release=5&arch=i386&repo=os " --08:55:27-- http://mirrorlist.centos.org/? release=5&arch=i386&repo=os Resolving mirrorlist.centos.org... 204.15.73.243, 72.232.223.58 Connecting to mirrorlist.centos.org|204.15.73.243|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT'
Maybe your firewall/proxy allows connections to *.centos.org, but not to the rest of the world?
-Ross
That is NOT true. I have been tried like www.sun.com and www.oracle.com and it work fine.
--- 09/8/10 (一),Ross Walker rswwalker@gmail.com 寫道:
寄件者: Ross Walker rswwalker@gmail.com 主旨: Re: [CentOS] can NOT update CENTOS use YUM 收件者: "CentOS mailing list" centos@centos.org 副本: "CentOS mailing list" centos@centos.org 日期: 2009年8月10日,一,上午9:26
On Aug 10, 2009, at 8:56 AM, mcclnx mcc mcclnx@yahoo.com.tw wrote:
I have No problem to use following comma nd:
# wget -O - --progress=dot "http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
" --08:55:27-- http://mirrorlist.centos.org/? release=5&arch=i386&repo=os Resolving mirrorlist.centos.org... 204.15.73.243,
72.232.223.58
Connecting to
mirrorlist.centos.org|204.15.73.243|:80... connected.
HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT'
Maybe your firewall/proxy allows connections to *.centos.org, but not to the rest of the world?
-Ross
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
mcclnx mcc wrote:
That is NOT true. I have been tried like www.sun.com and www.oracle.com and it work fine.
--- 09/8/10 (一),Ross Walker rswwalker@gmail.com 寫道:
寄件者: Ross Walker rswwalker@gmail.com 主旨: Re: [CentOS] can NOT update CENTOS use YUM 收件者: "CentOS mailing list" centos@centos.org 副本: "CentOS mailing list" centos@centos.org 日期: 2009年8月10日,一,上午9:26
On Aug 10, 2009, at 8:56 AM, mcclnx mcc mcclnx@yahoo.com.tw wrote:
I have No problem to use following comma nd:
# wget -O - --progress=dot "http://mirrorlist.centos.org/?release=5&arch=i386&repo=os " --08:55:27-- http://mirrorlist.centos.org/? release=5&arch=i386&repo=os Resolving mirrorlist.centos.org... 204.15.73.243,
72.232.223.58
Connecting to
mirrorlist.centos.org|204.15.73.243|:80... connected.
HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT'
Maybe your firewall/proxy allows connections to *.centos.org, but not to the rest of the world?
-Ross
If you can't retrieve this (mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os) via yum, but you can via wget on the same machine get the same list ... then that is very strange.
It is possible that you can see one of the mirrorlist machines and not the other one.
I can see "tw" based lists are being generated OK.
All the things I can think of that might cause that are related to using a different YUM than the one in CentOS, or a broken yum (so maybe reinstall it by hand), or maybe a "transparent proxy" (where yum sometimes breaks).
mcclnx mcc wrote:
We have CENTOS 5.1 on DELL server. This server is OUTSIDE Firewall. I tried to update it to latest release and get error.
any ideal?
========================================= # yum update Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was [Errno 4] IOError: <urlopen error (111, 'Connection refused')> Error: Cannot find a valid baseurl for repo: base
'Connection refused' sounds like a firewall problem to me. I have no problem accessing that URL. Try it in a browser from a different location and you should get back a list of URLs. Can you access other internet locations from this server? Once you have the connections working you might want to read http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.3 if you haven't already. I don't know if the advice to update glibc*, etc. is a requirement starting from 5.1 or not, but I'd do it that way anyway.