when i get update i found the below message:
“”
CentOS Linux 8 – AppStream 0.0 B/s | 0 B 00:01
Errors during downloading metadata for repository ‘appstream’:
- Curl error (6): Couldn’t resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: Curl error (6): Couldn’t resolve host name for http://mirrorlist.centos.org/?
solution that i found and running will :
Go to /etc/yum.repos.d/
cd /etc/yum.repos.d/
Run line by line
sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
sudo yum update -y
then type:
sudo yum update -y