解决yum update失败

1、yum update 、yum clean、yum install操作提示

Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile There are no enabled repos.

解决方案:

1
2
3
4
5
6
7
1、备份
 
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、
yum makecache

 

posted @   Genesisx  阅读(2420)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示