运行yum install 命令报错如下: File contains no section headers. 解决方案
运行yum install 命令报错如下: File contains no section headers. 解决方案。
·
报错信息:
1、删除yum.repos.d目录下所有文件
rm -f /etc/yum.repos.d/*
2、然后重新下载阿里的镜像
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、 清理缓存
yum clean all
更多推荐





所有评论(0)