错误
Loaded plugins: fastestmirror
File contains no section headers.
file: file:///etc/yum.repos.d/CentOS-Base.repo, line: 1
'<html>\r\n'
解决方法
删除原文件重新下载
删除原有的文件
# rm -f /etc/yum.repos.d/CentOS-Base.repo
重新下载,
# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
清理缓存
# yum clean all
更新缓存
# yum makecache