[root@web01 yum.repos.d]# yum -y update
Loaded plugins: fastestmirror, security
Setting up Update Process
Error: File contains no section headers.
file: file:///etc/yum.repos.d/epel.repo, line: 1
'--2018-03-12 19:30:42-- http://mirrors.aliyun.com/repo/epel-6.repo\n'
一直出现这个,怎么解决?
Error: File contains no section headers.
file: file:///etc/yum.repos.d/epel.repo, line: 1
文件的第一行有错
很明确的告诉你yum源配置文件的第一行在报错!你把你的yum源配置文件贴出来看看!
贴出你的yum源,看第一行,应该是语法错
[centos6]
name=centeros6 base
baseurl=http://mirrors.aliyun.com/centos/6/os/x86_64/
gpgcheck=0
[epel]
name=epel base
baseurl=http://mirrors.aliyun.com/epel/6/x86_64
gpgcheck=0
阿里的yum源希望能帮到你
网络源配置问题,要么排错,要么换源!