linux yum错误

一.

错误:File contains no section headers.
file: file:///etc/yum.repos.d/upgrade.repo, line: 1
'name=CentOS-6 - Upgrade Tool\n'

解决方法:删除upgrade.repo,

然后清空缓存yum clean,

最后生成新的缓存yum makecache

 

posted @ 2019-08-02 14:15  菜鸟web  阅读(700)  评论(0编辑  收藏  举报