Thursday, April 10, 2008

Could not retrieve mirrorlist on CentOS 5.0

Problem:

# yum install ruby
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: base

Resolution:

Add the nameserver entry to your /etc/resolv.conf file.

-----
nameserver 1.2.3.4

Replace 1.2.3.4 with the actual values for your server

No comments:

Post a Comment