Centos 6.5 yum Error : PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

When using Centos 6.5 OS sometimes you can get the following error when attempting any yum updates.

The error is:

# yum update
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

In the Centos 65 operating system this usually means that there are no name servers entered.

Fix:

Type:

vi /etc/resolv.conf

{Press I to insert}

nameserver 8.8.8.8

nameserver 8.8.4.4

:wq

 

  • 6 Users Found This Useful
Was this answer helpful?

Related Articles

Cannot Use Yum Update in Centos 6.2

Error:Not found Updated By: mysql-libs-5.1.71-1.el6.x86_64 (base)...