OS/Linux
File contains no section headers.
CofS
2019. 10. 21. 10:18
CentOS7에 nginx 를 설치하는 과정에서 다음과 같은 오류가 발생했다.
Loaded plugins: fastestmirror File contains no section headers. file: file:///etc/yum.repos.d/nginx.repo, line: 1 'name=nginx repo\n' |
yum 으로 설치하려고 할 때 발생한 오류인데 외부 저장소 파일에 해더가 없다는 오류이다.
파일을 열어보니 다음과 같이 작성되어 있었다.
name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 |
[nginx] 해더가 빠져있었다 ㅠㅠ
아래와 같이 수정했다.
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1 |
끝