安装zabbix5.0时,yum -y install centos-release-scl显示“没有可用软件包 centos-release-scl”no package(本人初学,勿cue,嘻嘻)

yum -y install centos-release-scl,显示如下内容

[root@localhost yum.repos.d]# yum -y install centos-release-scl
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
zabbix                                                                 | 2.9 kB  00:00:00     
zabbix-frontend                                                        | 2.9 kB  00:00:00     
zabbix-non-supported                                                   | 2.9 kB  00:00:00     
没有可用软件包 centos-release-scl。
错误:无须任何处理

 因为我的zabbix源已经提前修改,由上可以看出zabbix,zabbix-frontend,zabbix-non-supported源都是可以查到的,此时我依然没有怀疑是源产生了问题,一直百度查询也未查到准确的结果。此时我抱着试一试的心态准备将阿里源以及扩展源安装上。

先安装的扩展源再次尝试并未成功。

[root@localhost yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
--2021-11-22 21:53:12--  https://mirrors.aliyun.com/repo/Centos-7.repo
正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 124.132.149.244, 124.132.149.245, 221.196.251.241, ...
正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|124.132.149.244|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2523 (2.5K) [application/octet-stream]
正在保存至: “/etc/yum.repos.d/CentOS-Base.repo”

100%[====================================================>] 2,523       --.-K/s 用时 0s      

2021-11-22 21:53:12 (591 MB/s) - 已保存 “/etc/yum.repos.d/CentOS-Base.repo” [2523/2523])

 然后安装了阿里源

[root@localhost yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
--2021-11-22 21:53:12--  https://mirrors.aliyun.com/repo/Centos-7.repo
正在解析主机 mirrors.aliyun.com (mirrors.aliyun.com)... 124.132.149.244, 124.132.149.245, 221.196.251.241, ...
正在连接 mirrors.aliyun.com (mirrors.aliyun.com)|124.132.149.244|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:2523 (2.5K) [application/octet-stream]
正在保存至: “/etc/yum.repos.d/CentOS-Base.repo”

100%[====================================================>] 2,523       --.-K/s 用时 0s      

2021-11-22 21:53:12 (591 MB/s) - 已保存 “/etc/yum.repos.d/CentOS-Base.repo” [2523/2523])

再次安装 centos-release-scl,终于成功解决问题!

[root@localhost yum.repos.d]# yum install centos-release-scl
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 centos-release-scl.noarch.0.2-3.el7.centos 将被 安装
--> 正在处理依赖关系 centos-release-scl-rh,它被软件包 centos-release-scl-2-3.el7.centos.noarch 需要
--> 正在检查事务
---> 软件包 centos-release-scl-rh.noarch.0.2-3.el7.centos 将被 安装
--> 解决依赖关系完成

依赖关系解决

==============================================================================================
 Package                        架构            版本                    源               大小
==============================================================================================
正在安装:
 centos-release-scl             noarch          2-3.el7.centos          extras           12 k
为依赖而安装:
 centos-release-scl-rh          noarch          2-3.el7.centos          extras           12 k

事务概要
==============================================================================================
安装  1 软件包 (+1 依赖软件包)

总下载量:24 k
安装大小:39 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): centos-release-scl-2-3.el7.centos.noarch.rpm                    |  12 kB  00:00:00     
centos-release-scl-rh-2-3.el7. FAILED                                          
http://mirrors.aliyuncs.com/centos/7/extras/x86_64/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused"
正在尝试其它镜像。
(2/2): centos-release-scl-rh-2-3.el7.centos.noarch.rpm                 |  12 kB  00:00:00     
----------------------------------------------------------------------------------------------
总计                                                          1.1 kB/s |  24 kB  00:00:21     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : centos-release-scl-rh-2-3.el7.centos.noarch                               1/2 
  正在安装    : centos-release-scl-2-3.el7.centos.noarch                                  2/2 
  验证中      : centos-release-scl-2-3.el7.centos.noarch                                  1/2 
  验证中      : centos-release-scl-rh-2-3.el7.centos.noarch                               2/2 

已安装:
  centos-release-scl.noarch 0:2-3.el7.centos                                                  

作为依赖被安装:
  centos-release-scl-rh.noarch 0:2-3.el7.centos                                               

完毕!
  • 11
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值