写点什么

mark:Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

作者:糖米唐爹
  • 2022 年 2 月 10 日
  • 本文字数:192 字

    阅读完需:约 1 分钟

mark:Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Step 1: Go to the /etc/yum.repos.d/ directory.

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
复制代码


用户头像

糖米唐爹

关注

还未添加个人签名 2020.08.12 加入

还未添加个人简介

评论

发布
暂无评论
mark:Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist