报错截图:

解决方案:
1、更新阿里yum源头
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
2、yum clean all #清空缓存
3、yum makecache #重新生成缓存
4、查看是否还报错
yum group list
本文提供了一种解决因阿里yum源导致的问题的方法。主要包括更新yum源到阿里云的最新地址,并通过清除缓存及重新生成缓存的方式确保系统能正确识别新的源配置。
1066

被折叠的 条评论
为什么被折叠?



