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

Jatin Davey jashokda at cisco.com
Fri Apr 2 04:37:54 UTC 2010


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
>
>    



More information about the CentOS mailing list