当前位置:   article > 正文

failure: repodata/repomd.xml 和 Loaded plugins: fastestmirror 问题解决_loaded plugins: fastestmirror, langpacks file cont

loaded plugins: fastestmirror, langpacks file contains no section headers. f

想用:

yum install screen
  • 1

结果报错:

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"
  • 1
  • 2

以及

Loaded plugins: fastestmirror, langpacks 
File contains no section headers. file: file:///etc/yum.r
  • 1
  • 2

网上搜了很多,找到了个靠谱答案:
1、删掉旧的

rm -rf /etc/yum.repos.d/CentOS-*
  • 1

2、下载国内源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo  
  • 1

3、清理缓存

yum clean all
  • 1

4、

yum makeache
yum update
  • 1
  • 2

完成,可以继续安装screen了!

参考:

https://blog.csdn.net/qq_40996741/article/details/108457206

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/176820
推荐阅读
相关标签
  

闽ICP备14008679号