美文网首页
CentOS7下安装ModSecrity依赖rpm包问题解决过程

CentOS7下安装ModSecrity依赖rpm包问题解决过程

作者: 小浪崇礼 | 来源:发表于2020-04-27 11:47 被阅读0次

CentOS7下安装ModSecrity依赖rpm包,发现对应rpm版本冲突,具体现象如下:

Error:  Multilib version problems found. This often means that the root

      cause is something else and multilib version checking is just

      pointing out that there is a problem. Eg.:

        1. You have an upgrade for krb5-libs which is missing some

            dependency that another package requires. Yum is trying to

            solve this by installing an older version of krb5-libs of the

            different architecture. If you exclude the bad architecture

            yum will tell you what the root cause is (which package

            requires what). You can try redoing the upgrade with

            --exclude krb5-libs.otherarch ... this should give you an error

            message showing the root cause of the problem.

        2. You have multiple architectures of krb5-libs installed, but

            yum can only see an upgrade for one of those architectures.

            If you don't want/need both architectures anymore then you

            can remove the one with the missing update and everything

            will work.

        3. You have duplicate versions of krb5-libs installed already.

            You can use "yum check" to get yum show these errors.

      ...you can also use --setopt=protected_multilib=false to remove

      this checking, however this is almost never the correct thing to

      do as something else is very likely to go wrong (often causing

      much more problems).

      Protected multilib versions: krb5-libs-1.15.1-37.el7_6.i686 != krb5-libs-1.15.1-37.el7_7.2.x86_64

Error: Protected multilib versions: libcurl-7.29.0-54.el7.i686 != libcurl-7.29.0-54.el7_7.1.x86_64

上述的原因在网上也查了,给出得原因是多个库共存冲突了,然后根据网上的操作方法并没有很好的解决问题,然后查到一篇外文 https://serverfault.com/questions/745637/centos-yum-install-fails-protected-multilib-versions-problems-found-libsel

得到了启发,如是有了下面的操作

完全删除/etc/yum.repos.d/目录下面的所有repo文件,重新下载阿里云的repo文件

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

yum clean all

yum makecache

上述完成之后,开始安装Mod_Security对应的依赖包

yum install -y readline-devel curl-devel gcc gcc-c++ python-devel yajl-devel

直接成功了

Installed:

  gcc.x86_64 0:4.8.5-39.el7      gcc-c++.x86_64 0:4.8.5-39.el7      libcurl-devel.x86_64 0:7.29.0-54.el7_7.2      python-devel.x86_64 0:2.7.5-86.el7      readline-devel.x86_64 0:6.2-11.el7      yajl-devel.x86_64 0:2.0.4-4.el7     

Dependency Installed:

  cpp.x86_64 0:4.8.5-39.el7  glibc-devel.x86_64 0:2.17-292.el7              glibc-headers.x86_64 0:2.17-292.el7  kernel-headers.x86_64 0:3.10.0-1062.18.1.el7  libmpc.x86_64 0:1.0.1-3.el7            libstdc++-devel.x86_64 0:4.8.5-39.el7 

  mpfr.x86_64 0:3.1.1-4.el7  ncurses-devel.x86_64 0:5.9-14.20130511.el7_4  python-rpm-macros.noarch 0:3-32.el7  python-srpm-macros.noarch 0:3-32.el7          python2-rpm-macros.noarch 0:3-32.el7 

Dependency Updated:

  curl.x86_64 0:7.29.0-54.el7_7.2                                                                                      libcurl.x86_64 0:7.29.0-54.el7_7.2                                                                                     

Complete!

相关文章

  • CentOS7下安装ModSecrity依赖rpm包问题解决过程

    CentOS7下安装ModSecrity依赖rpm包,发现对应rpm版本冲突,具体现象如下: Error: Mul...

  • centos7.4下yum安装nginx

    centos7系统库中默认是没有nginx的rpm包的,所以我们自己需要先更新下rpm依赖库 使用yum安装ngi...

  • 6.yum服务

    yum源文件 rpm缺点:rpm安装过程中,rpm包依赖性强(安装这个,需要先安装其他的)。如果所有rpm包都是手...

  • nodejs10安装

    CentOS7在线安装 CentOS7离线安装 下载RPM包,安装即可 Ubuntu在线安装 Ubuntu离线安装...

  • centos7安装gitlab

    一. centos7安装gitlab 1.1 下载rpm包 下载的rpm包有900M+,需要等待一下 命令: 测试...

  • CentOS7采用yum安装nginx

    CentOS7库中默认是没有nginx的rpm包的,所以我们需要自己先更新下rpm依赖库。 nginx软件包仓库地...

  • yum 查看安装的包 包含了哪些文件

    centos7 rpm的包可以通过rpm -qlp [包的路径]查看 但是通过yum 安装的包怎么看安装了哪些文件...

  • centos7安装xtrabackup

    centos7安装xtrabackup 采用rpm包安装 下载地址:https://www.percona.com...

  • centos7安装MySQL5.7

    安装软件包 记录一下centos7下用RPM包安装MySQL5.7的方法yum源默认支持的是mariadb,想用y...

  • Centos7 多种方法 安装git

    源码安装 安装对应的依赖 下载源码编译安装 确保系统git 已经被卸载 rpm 安装(基于CentOS7)

网友评论

      本文标题:CentOS7下安装ModSecrity依赖rpm包问题解决过程

      本文链接:https://www.haomeiwen.com/subject/tllywhtx.html