系统相关
首页 > 系统相关> > Loaded plugins: fastestmirror File contains no section headers. file: file:///etc/yum.repos.d/Cent

Loaded plugins: fastestmirror File contains no section headers. file: file:///etc/yum.repos.d/Cent

作者:互联网

装gcc老是找镜像失败

于是换yum源,然后提示报错

解决办法

删除原文件重新下载
删除原有的文件 
# 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

  原帖https://blog.csdn.net/qq_40996741/article/details/108457206

 

标签:CentOS,--,repos,repo,etc,Base,yum,file
来源: https://www.cnblogs.com/bojiandkake/p/16293376.html