Site icon Learning & Doing

Failed to download metadata for repo ‘AppStream’ [CentOS]

metadata

“Failed to download metadata for repo ‘AppStream’ [CentOS]”

Pengantar

Ketika Centos 8 , tidak bisa di update dan muncul error

Problem :

Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Solusi

cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

Test Update

dnf update -y

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Failed to download metadata for repo ‘AppStream’ [CentOS]. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

Exit mobile version