一.
错误: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