赞
踩
想用:
yum install screen
结果报错:
failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try.
http://mirrors.tencentyun.com/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.tencentyun.com; No address associated with hostname"
以及
Loaded plugins: fastestmirror, langpacks
File contains no section headers. file: file:///etc/yum.r
网上搜了很多,找到了个靠谱答案:
1、删掉旧的
rm -rf /etc/yum.repos.d/CentOS-*
2、下载国内源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、清理缓存
yum clean all
4、
yum makeache
yum update
完成,可以继续安装screen了!
参考:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。