Error: Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist

从别的地方查到的,做记录。https://blog.csdn.net/weixin_43252521/article/details/124409151

 

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-*


yum makecache

yum update -y

 

posted @ 2022-09-15 15:51  温泉镇谢步东  阅读(69)  评论(0编辑  收藏  举报