云服务器闪购活动$5每月起.

知识库

CentOS 8 更换AppStream源

解决方案

第1步:进入 /etc/yum.repos.d/ 目录。

cd /etc/yum.repos.d/

第2步:运行如下两条命令更换镜像。

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

第3步:再次运行 yum update 命令。

yum update -y

完美解决!


联系在线客服

服务器免费测试三天满意付款