Almalinux – yum/dnf hatası Repo için meta veriler indirilemedi. |

Almalinux sunucuda dnf ve yum komutu aşağıdaki hata ile başarısız oluyor:

EA4 ( EasyApache 4 – c8 ) 0.0 B/s | 0 B 00:00
Error: Failed to download metadata for repo ‘EA4-c8’: Cannot prepare internal mirrorlist: Curl error (6): Couldn’t resolve host name for http://httpupdate.cpanel.net/ea4-c8-x86_64-mirrorlist [Could not resolve host: httpupdate.cpanel.net]

Çözüm:

vi /etc/resolv.confnameserver 8.8.8.8
nameserver 8.8.4.4

Test:

yum update -y