Cara Simple Mengatasi PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”

cara mengatasi cannot find a valid baseurl for repo, centos yum pycurl error 7, solusi cannot find a valid di centos

Cara Simple Mengatasi PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’” | Pesan ini diakibatkan karena CentOS tidak bisa mengetahui IP Address dari alamat yang dituju.
[root@server ~]# yum -y update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
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 find a valid baseurl for repo: base

Solusi :

Tambahkan DNS yang valid pada file /etc/resolv.conf
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4

Reboot vps

Cara Simple Mengatasi PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’” | Morveus | 4.5

Leave a Reply