centos7阿里yum源报问题

120 阅读1分钟

\

在这里插入图片描述阿里centos镜像

本地repo文件修改

http://mirrors.cloud.aliyuncs.com/centos/  替换为http://mirrors.aliyun.com/centos
http://mirrors.aliyuncs.com/centos/        替换为http://mirrors.aliyun.com/centos

在这里插入图片描述

下载下面的源

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

yum update更新virt-what报错


使用

yum -y install virt-what*


再使用正常

yum -y updatez


注意,每次更新yum源需要执行

yum clean all
yum makecache