Re: [CentOS] Could not retrieve mirror list while using yum command

2010-04-02 Thread Jatin Davey

Thanks Cornel.

Thanks
Jatin

On 4/2/2010 11:22 AM, cornel panceac wrote:



2010/4/2 Jatin Davey jasho...@cisco.com mailto:jasho...@cisco.com

Ok, i  figured out the issue , Did some google on it and found this
useful link on usage of proxy.

http://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/

or even better:

http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html



--
Among the maxims on Lord Naoshige's wall, there was this one: Matters 
of great concern should be treated lightly. Master Ittei commented, 
Matters of small concern should be treated seriously.

(Ghost Dog : The Way of The Samurai)


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Could not retrieve mirror list while using yum command

2010-04-01 Thread Jatin Davey
Hi

I wanted to download and install the net-snmp package. Usually on my 
other CentOS boxes i use the following command to do it:

yum install net-snmp

I was able to successfully install net-snmp on 4 of my CentOS boxes but 
not on one of them. It reports me the following error message:

[r...@localhost yum.repos.d]# yum install net-snmp
Loaded plugins: fastestmirror
Determining fastest mirrors
Could not retrieve mirrorlist 
http://mirrorlist.centos.org/?release=5arch=i386repo=os error was
[Errno 4] IOError: urlopen error (110, 'Connection timed out')
Error: Cannot find a valid baseurl for repo: base


Other output that can be some use is :

[r...@localhost yum.repos.d]# ls
CentOS-Base.repo  CentOS-Media.repo


Can someone please let me know what the issue is ? and how to get it 
working ?

Thanks
Jatin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Could not retrieve mirror list while using yum command

2010-04-01 Thread Jatin Davey
These are my contents of the CentOS-Base.repo file:

[r...@localhost yum.repos.d]# vi CentOS-Base.repo
#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


Thanks
Jatin

On 4/2/2010 9:08 AM, Jatin Davey wrote:
 Hi

 I wanted to download and install the net-snmp package. Usually on my
 other CentOS boxes i use the following command to do it:

 yum install net-snmp

 I was able to successfully install net-snmp on 4 of my CentOS boxes but
 not on one of them. It reports me the following error message:

 [r...@localhost yum.repos.d]# yum install net-snmp
 Loaded plugins: fastestmirror
 Determining fastest mirrors
 Could not retrieve mirrorlist
 http://mirrorlist.centos.org/?release=5arch=i386repo=os error was
 [Errno 4] IOError:urlopen error (110, 'Connection timed out')
 Error: Cannot find a valid baseurl for repo: base


 Other output that can be some use is :

 [r...@localhost yum.repos.d]# ls
 CentOS-Base.repo  CentOS-Media.repo


 Can someone please let me know what the issue is ? and how to get it
 working ?

 Thanks
 Jatin
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Could not retrieve mirror list while using yum command

2010-04-01 Thread Kwan Lowe
On Thu, Apr 1, 2010 at 11:38 PM, Jatin Davey jasho...@cisco.com wrote:
 Hi

 I wanted to download and install the net-snmp package. Usually on my
 other CentOS boxes i use the following command to do it:

 yum install net-snmp

 I was able to successfully install net-snmp on 4 of my CentOS boxes but
 not on one of them. It reports me the following error message:

 [r...@localhost yum.repos.d]# yum install net-snmp
 Loaded plugins: fastestmirror
 Determining fastest mirrors
 Could not retrieve mirrorlist
 http://mirrorlist.centos.org/?release=5arch=i386repo=os error was
 [Errno 4] IOError: urlopen error (110, 'Connection timed out')
 Error: Cannot find a valid baseurl for repo: base


Can you access the internet from that machine? Do you require a proxy
to connect?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Could not retrieve mirror list while using yum command

2010-04-01 Thread Jatin Davey
Hi Kwan

I executed the following on the host that was having problem:

[r...@localhost yum.repos.d]# wget http://www.google.com
--22:14:25--  http://www.google.com/
Resolving www.google.com... 74.125.19.105, 74.125.19.99, 74.125.19.106, ...
Connecting to www.google.com|74.125.19.105|:80... failed: Connection 
timed out.
Connecting to www.google.com|74.125.19.99|:80... failed: Connection 
timed out.

Which shows that i am not getting connected to the internet.

Now coming to the second point on whether i am using a proxy or not ? , 
I really dont know whether i am using a proxy or not. When i used a 
similar CentOS box on which i was successful in connecting to the 
internet i issues the same command as mentioned above and it got 
connected and downloaded the web file.

How do i find whether i have proxy configured on the host that is 
connecting to the internet ?
If you can guide me through this then i can replicate the configuration 
from the above host to the hosts that are not getting connected to the 
internet.

Thanks
Jatin

On 4/2/2010 10:28 AM, Kwan Lowe wrote:
 On Thu, Apr 1, 2010 at 11:38 PM, Jatin Daveyjasho...@cisco.com  wrote:

 Hi

 I wanted to download and install the net-snmp package. Usually on my
 other CentOS boxes i use the following command to do it:

 yum install net-snmp

 I was able to successfully install net-snmp on 4 of my CentOS boxes but
 not on one of them. It reports me the following error message:

 [r...@localhost yum.repos.d]# yum install net-snmp
 Loaded plugins: fastestmirror
 Determining fastest mirrors
 Could not retrieve mirrorlist
 http://mirrorlist.centos.org/?release=5arch=i386repo=os error was
 [Errno 4] IOError:urlopen error (110, 'Connection timed out')
 Error: Cannot find a valid baseurl for repo: base

  
 Can you access the internet from that machine? Do you require a proxy
 to connect?
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Could not retrieve mirror list while using yum command

2010-04-01 Thread Jatin Davey
Ok, i  figured out the issue , Did some google on it and found this 
useful link on usage of proxy.

http://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/

Thanks Kwan , Thanks kwan for questioning me on the proxy usage.

Thanks
Jatin

On 4/2/2010 10:51 AM, Jatin Davey wrote:
 Hi Kwan

 I executed the following on the host that was having problem:

 [r...@localhost yum.repos.d]# wget http://www.google.com
 --22:14:25--  http://www.google.com/
 Resolving www.google.com... 74.125.19.105, 74.125.19.99, 74.125.19.106, ...
 Connecting to www.google.com|74.125.19.105|:80... failed: Connection
 timed out.
 Connecting to www.google.com|74.125.19.99|:80... failed: Connection
 timed out.

 Which shows that i am not getting connected to the internet.

 Now coming to the second point on whether i am using a proxy or not ? ,
 I really dont know whether i am using a proxy or not. When i used a
 similar CentOS box on which i was successful in connecting to the
 internet i issues the same command as mentioned above and it got
 connected and downloaded the web file.

 How do i find whether i have proxy configured on the host that is
 connecting to the internet ?
 If you can guide me through this then i can replicate the configuration
 from the above host to the hosts that are not getting connected to the
 internet.

 Thanks
 Jatin

 On 4/2/2010 10:28 AM, Kwan Lowe wrote:

 On Thu, Apr 1, 2010 at 11:38 PM, Jatin Daveyjasho...@cisco.com   wrote:

  
 Hi

 I wanted to download and install the net-snmp package. Usually on my
 other CentOS boxes i use the following command to do it:

 yum install net-snmp

 I was able to successfully install net-snmp on 4 of my CentOS boxes but
 not on one of them. It reports me the following error message:

 [r...@localhost yum.repos.d]# yum install net-snmp
 Loaded plugins: fastestmirror
 Determining fastest mirrors
 Could not retrieve mirrorlist
 http://mirrorlist.centos.org/?release=5arch=i386repo=os error was
 [Errno 4] IOError:urlopen error (110, 'Connection timed out')
 Error: Cannot find a valid baseurl for repo: base



 Can you access the internet from that machine? Do you require a proxy
 to connect?
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


  
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Could not retrieve mirror list while using yum command

2010-04-01 Thread cornel panceac
2010/4/2 Jatin Davey jasho...@cisco.com

 Ok, i  figured out the issue , Did some google on it and found this
 useful link on usage of proxy.

 http://www.cyberciti.biz/faq/linux-unix-set-proxy-environment-variable/

 or even better:

http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html



-- 
Among the maxims on Lord Naoshige's wall, there was this one: Matters of
great concern should be treated lightly. Master Ittei commented, Matters
of small concern should be treated seriously.
(Ghost Dog : The Way of The Samurai)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos