Fix Failed to download metadata for repo

【Fix Failed to download metadata for repo】亦余心之所善兮,虽九死其犹未悔。这篇文章主要讲述Fix Failed to download metadata for repo相关的知识,希望能为你提供帮助。
Step 1: Go to the /etc/yum.repos.d/ directory.

[root@autocontroller ~]# cd /etc/yum.repos.d/

Step 2: Run the below commands
[root@autocontroller ~]# sed -i s/mirrorlist/#mirrorlist/g /etc/yum.repos.d/CentOS-* [root@autocontroller ~]# sed -i s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g /etc/yum.repos.d/CentOS-*

Step 3: Now run the yum update
[root@autocontroller ~]# yum update -y


    推荐阅读