Fixing Failed to download metadata for repo appstream Error on CentOS 8
centos yum update not working
I encountered an issue on my CentOS 8 server while trying to update the system using ‘yum update’ or install a package. The error message displayed is ‘Failed to download metadata for repo.
CentOS Linux 8 had reached the End Of Life on December 31st, 2021. that’s means CentOS 8 will no longer receive development resources from the official CentOS project.
After Dec 31st, 2021, if you need to update your CentOS, you need to change the mirrors to vault.centos.org where they will be archived permanently.
So Follow my Step to solve this error.
centos 8
Thanks. It Works
Works 100%
😪 'promosm'
#sudo sed
i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS*#sudo ed
i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS*