【问题标题】:Can't install fail2ban on Centos 7.1无法在 Centos 7.1 上安装 fail2ban
【发布时间】:2015-08-27 12:20:17
【问题描述】:

我正在尝试在我的 centos 7.1 服务器上安装 fail2ban

我做到了:

yum install epel-release
yum install fail2ban

但我收到一些错误消息:

yum install epel-release
Package epel-release-7-5.noarch already installed and latest version
Nothing to do

-----

[root@elliot ~]# yum install fail2ban
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * atomic: mirror1.34sp.com
 * base: centos.mirror.transip.nl
 * epel: ftp.nluug.nl
 * extras: centos.mirror.transip.nl
 * updates: centos.mirror.transip.nl
Resolving Dependencies
--> Running transaction check
---> Package fail2ban.noarch 0:0.9.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: fail2ban-0.9.2-1.el6.noarch
--> Processing Dependency: python-inotify for package: fail2ban-0.9.2-1.el6.noarch
--> Processing Dependency: gamin-python for package: fail2ban-0.9.2-1.el6.noarch
--> Running transaction check
---> Package fail2ban.noarch 0:0.9.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: fail2ban-0.9.2-1.el6.noarch
---> Package gamin-python.x86_64 0:0.1.10-16.el7 will be installed
--> Processing Dependency: gamin = 0.1.10-16.el7 for package: gamin-python-0.1.10-16.el7.x86_64
--> Processing Dependency: libgamin-1.so.0()(64bit) for package: gamin-python-0.1.10-16.el7.x86_64
---> Package python-inotify.noarch 0:0.9.4-4.el7 will be installed
--> Running transaction check
---> Package fail2ban.noarch 0:0.9.2-1.el6 will be installed
--> Processing Dependency: python(abi) = 2.6 for package: fail2ban-0.9.2-1.el6.noarch
---> Package gamin.x86_64 0:0.1.10-16.el7 will be installed
--> Finished Dependency Resolution
Error: Package: fail2ban-0.9.2-1.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-18.el7_1.1.x86_64 (@updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-16.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@elliot ~]# 

有人可以帮我解决这个问题吗? 我也尝试将它安装在新服务器上,我在该服务器上没有问题

如果有人可以帮我解决这个问题,我也可以给你一笔费用!

非常感谢

PS 如果你愿意,你可以登录我的电脑

再次感谢!

【问题讨论】:

    标签: centos fail2ban


    【解决方案1】:

    您的系统很混乱(特别是存储库)。您似乎同时启用了 CentOS 6 和 CentOS 7 存储库(并且可能安装了两者的软件包)。

    具体来说,您似乎正在尝试从 EPEL 6 存储库安装 fail2ban。

    仔细检查您配置的存储库并尝试yum clean all && yum makecache && yum install fail2ban 强制 yum 清理并重新创建其元数据缓存。

    【讨论】:

      【解决方案2】:

      跑步:

      yum clean all
      

      然后

      yum install fail2ban
      

      在 Centos 7.2 上帮我解决了问题

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-10-30
        • 2018-03-02
        • 2015-02-02
        • 2013-10-18
        • 2014-01-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多