Jatin Davey
2010-Apr-02 03:38 UTC
[CentOS] Could not retrieve mirror list while using yum command
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: [root at localhost yum.repos.d]# yum install net-snmp Loaded plugins: fastestmirror Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=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 : [root at 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
Jatin Davey
2010-Apr-02 04:37 UTC
[CentOS] Could not retrieve mirror list while using yum command
These are my contents of the CentOS-Base.repo file: [root at localhost yum.repos.d]# vi CentOS-Base.repo #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=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=$releasever&arch=$basearch&repo=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=$releasever&arch=$basearch&repo=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=$releasever&arch=$basearch&repo=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=$releasever&arch=$basearch&repo=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: > > [root at localhost yum.repos.d]# yum install net-snmp > Loaded plugins: fastestmirror > Determining fastest mirrors > Could not retrieve mirrorlist > http://mirrorlist.centos.org/?release=5&arch=i386&repo=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 : > > [root at 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 at centos.org > http://lists.centos.org/mailman/listinfo/centos > >
Kwan Lowe
2010-Apr-02 04:58 UTC
[CentOS] Could not retrieve mirror list while using yum command
On Thu, Apr 1, 2010 at 11:38 PM, Jatin Davey <jashokda at 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: > > [root at localhost yum.repos.d]# yum install net-snmp > Loaded plugins: fastestmirror > Determining fastest mirrors > Could not retrieve mirrorlist > http://mirrorlist.centos.org/?release=5&arch=i386&repo=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?
Jatin Davey
2010-Apr-02 05:21 UTC
[CentOS] Could not retrieve mirror list while using yum command
Hi Kwan I executed the following on the host that was having problem: [root at 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 Davey<jashokda at 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: >> >> [root at localhost yum.repos.d]# yum install net-snmp >> Loaded plugins: fastestmirror >> Determining fastest mirrors >> Could not retrieve mirrorlist >> http://mirrorlist.centos.org/?release=5&arch=i386&repo=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 at centos.org > http://lists.centos.org/mailman/listinfo/centos > >
Jatin Davey
2010-Apr-02 05:40 UTC
[CentOS] Could not retrieve mirror list while using yum command
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: > > [root at 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 Davey<jashokda at 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: >>> >>> [root at localhost yum.repos.d]# yum install net-snmp >>> Loaded plugins: fastestmirror >>> Determining fastest mirrors >>> Could not retrieve mirrorlist >>> http://mirrorlist.centos.org/?release=5&arch=i386&repo=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 at centos.org >> http://lists.centos.org/mailman/listinfo/centos >> >> >> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >
Jatin Davey
2010-Apr-02 06:00 UTC
[CentOS] Could not retrieve mirror list while using yum command
Thanks Cornel. Thanks Jatin On 4/2/2010 11:22 AM, cornel panceac wrote:> > > 2010/4/2 Jatin Davey <jashokda at cisco.com <mailto:jashokda at 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 at centos.org > http://lists.centos.org/mailman/listinfo/centos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20100402/e654188a/attachment-0003.html>