微慑信息网

Centos8.4.2105升级源

[[email protected] wp-content]# yum update
CentOS Linux 8 - AppStream                                             197  B/s |  38  B     00:00    
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

 

 


KS安装的centos,

yum -y install python 失败。update也不行,替换阿里/163/腾讯云的源都不行,于是如下操作解决:


 

https://serverfault.com/questions/1093922/failing-to-run-yum-update-in-centos-8

sed -i 's|baseurl=http://vault.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-Linux-*

 

https://haydenjames.io/fix-error-failed-to-download-metadata-for-repo-appstream-centos-8/

dnf –disablerepo ‘*’ –enablerepo=extras swap centos-linux-repos centos-stream-repos

dnf distro-sync

 

 

 

 

本文标题:Centos8.4.2105升级源
本文链接:
(转载请附上本文链接)
https://vulsee.com/archives/vulsee_2022/0223_16137.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » Centos8.4.2105升级源
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们