当我尝试安装 CMake 但编写以下内容时
sudo yum install cmake
我收到以下错误
File contains no section headers.
file: file:///etc/yum.repos.d/mcepl-vim8-epel-7.repo, line: 2
'<!doctype html>\n
答案1
我通过解决
rm /etc/yum.repos.d/mcepl-vim8-epel-7.repo
答案2
作为更安全的解决方案,重命名该存储库文件就足够了:
# cd /etc/yum.repos.d/
# mv <repo_file>.repo <repo_file>.repo.orig