Centos7-yum问题
描述了一个在CentOS系统中使用yum安装软件时遇到的问题,具体表现为无法打开repodata/repomd.xml文件。问题的原因可能是yum源配置错误或文件丢失。提供的解决方案是删除并重建yum源文件,采用阿里云的CentOS-7.repo镜像进行更新。
问题:yum安装软件失败
问题描述
提示:One of the configured repositories failed (test),

解决方案: 重建yum源文件
rm -rf /etc/yum.repos.d
mkdir /etc/yum.repos.d
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum update
Last updated