解决方法:

需要配置yum源,改为国内的就可以了

(1)备份原有的镜像文件

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

(2)下载阿里云的镜像

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

(3)生成新镜像缓存

yum clean all
yum makecache

 

相关文章:

  • 2021-06-08
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-04-08
  • 2021-07-23
  • 2022-01-18
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-04-08
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案