Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Dedicated Server FAQ  >  Could not retrieve mirrorlist
Top Scroll

Could not retrieve mirrorlist

 2 min

The Yellowdog Updater, Modified (YUM) is an open-source command-line package-management utility for RPM-compatible Linux operating systems. Though yum has a command-line interface, several other tools provide graphical user interfaces to yum functionality.

When trying to install any package using yum, you might receive an error as below.

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: base

This means that your resolvers are not configured properly OR they are not responding. Resolvers are nothing but the servers which provide access to Internet Domain Name System.

Open the file /etc/resolv.conf & correct the resolvers. If the default ones are not working, update them to google resolvers. They are as below

nameserver 8.8.8.8
nameserver 4.4.4.4

Try installing the packages using yum now. If you face any issues, feel free to contact our support team.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.