yum 安装软件失败
遇到的错误
[root@DBTEST ~]# yum install zabbix-agent -y Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.njupt.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.njupt.edu.cn Setting up Install Process Nothing to do
解决方法
- 确定机器能联网,ping 百度。
- 更换系统 yum 源。
// 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup // CentOS 6 下载 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo // 更改CentOS-Media.repo使其为不生效:(本机已经是不生效) enabled=0 // 运行yum makecache生成缓存 yum clean all yum makecache
相关推荐
87901735 2020-08-19
ningningmingming 2020-07-26
VFCSDN 2020-07-05
87447007 2020-07-04
87447007 2020-06-26
flycappuccino 2020-09-27
yudiewenyuan 2020-06-09
wannagonna 2020-06-08
杨友山 2020-06-03
89284553 2020-05-26
lizhengfa 2020-05-02
xiemanR 2020-09-21
数据人 2020-10-26
张立军的架构之路 2020-09-28