CHD安装

时间:2024-07-15 18:09:15

安装cm的时候突然出现这么一个错误

它被软件包 1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 需要 --> 正在处理依赖关系 httpd,它被软件包 1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 需要 --> 解决依赖关系完成 错误:软件包:1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 (updates) 需要:httpd-mmn = 20120211x8664 错误:软件包:1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 (updates) 需要:httpd = 2.4.6-99.el7.centos.1 错误:软件包:1:mod_ssl-2.4.6-99.el7.centos.1.x86_64 (updates) 需要:httpd 您可以尝试添加 --skip-broken 选项来解决该问题 您可以尝试执行:rpm -Va --nofiles --nodigest [root@hadoop103 cloudera-manager]#

然后就跟着要求去安装httpd吧
结果发现

[root@hadoop103 cloudera-manager]# sudo yum install httpd
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile

base: mirrors.aliyun.com
epel: mirrors.aliyun.com
extras: mirrors.aliyun.com
updates: mirrors.aliyun.com 没有可用软件包 httpd。 错误:无须任何处理 [root@hadoop103 cloudera-manager]# 按照步骤出现了这个问题

????奇怪,yum不好使了么?
解决方式是
执行vim /etc/yum.conf,将最后一行注释掉
#exclude=httpd nginx php mysql mairadb python-psutil python2-psutil
最后重新执行一遍命令,很奇怪咱也搞不懂啥原理,有没有大佬解释一下。