Koozali.org: home of the SME Server

[SOLVED] Fail2Ban Dependancy Issue

Offline jameswilson

  • *
  • 795
  • +0/-0
    • Security Warehouse, professional security equipment
[SOLVED] Fail2Ban Dependancy Issue
« on: March 13, 2016, 03:51:49 PM »
Have moved from 8.2 to 9.1 using affa
All seems to be ok but I think I have an epel repo problem?
Cant install fail2ban and have these messages

Quote

[root@tsi ~]# yum --enablerepo=fws --enablerepo=epel install smeserver-fail2ban
Loaded plugins: fastestmirror, smeserver
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.mhd.uk.as44574.net
 * epel: epel.mirrors.ovh.net
 * smeaddons: mirror.chiropratique.org
 * smeextras: mirror.chiropratique.org
 * smeos: mirror.chiropratique.org
 * smeupdates: mirror.chiropratique.org
 * smeupdates-testing: mirror.chiropratique.org
 * updates: mirror.ukhost4u.com
Resolving Dependencies
--> Running transaction check
---> Package smeserver-fail2ban.noarch 9:0.1.13-1.el6.fws will be installed
--> Processing Dependency: fail2ban for package: 9:smeserver-fail2ban-0.1.13-1.el6.fws.noarch
--> Running transaction check
---> Package fail2ban.noarch 0:0.8.14-1.el5 will be installed
--> Processing Dependency: python-inotify for package: fail2ban-0.8.14-1.el5.noarch
--> Processing Dependency: gamin-python for package: fail2ban-0.8.14-1.el5.noarch
--> Running transaction check
---> Package gamin-python.x86_64 0:0.1.10-9.el6 will be installed
---> Package python-inotify.noarch 0:0.9.1-1.el5 will be installed
--> Processing Dependency: python(abi) = 2.4 for package: python-inotify-0.9.1-1.el5.noarch
--> Finished Dependency Resolution
Error: Package: python-inotify-0.9.1-1.el5.noarch (epel)
           Requires: python(abi) = 2.4
           Installed: python-2.6.6-64.el6.x86_64 (@anaconda-base-201512091034.x86_64/9.1)
               python(abi) = 2.6
           Available: python26-2.6.8-2.el5.x86_64 (epel)
               python(abi) = 2.6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
« Last Edit: March 13, 2016, 05:06:51 PM by jameswilson »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Fail2Ban Dependancy Issue
« Reply #1 on: March 13, 2016, 03:59:50 PM »
be sure to have the correct repo (all must point to EL6) and do

Code: [Select]
yum --enablerepo=* clean all

before retrying

Offline jameswilson

  • *
  • 795
  • +0/-0
    • Security Warehouse, professional security equipment
Re: Fail2Ban Dependancy Issue
« Reply #2 on: March 13, 2016, 04:56:10 PM »
You genius Thanks

I had tried a
yum clean all

but not with the repo*

Thanks again

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Fail2Ban Dependancy Issue
« Reply #3 on: March 14, 2016, 07:52:40 PM »
jameswilson

The current officially recommended command
yum clean all --enablerepo=*

has replaced the previous
yum clean all

The longer command allows repos that are configured but disabled, to also be "cleaned".
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.