首先备份CentOS-Base.repo

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
 
下载对应版本的CentOS-Base.repo, 放入/etc/yum.repos.d/

这是CentOS 5的:

wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1

这是CentOS 6的:

wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2

下载完成后 :

运行yum makecache生成缓存 ,运行 yum update升级软件包

 

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2022-03-04
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
猜你喜欢
  • 2022-01-20
  • 2022-12-23
  • 2021-08-29
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案