Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: jameswilson on March 13, 2016, 03:51:49 PM

Title: [SOLVED] Fail2Ban Dependancy Issue
Post by: jameswilson 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
Title: Re: Fail2Ban Dependancy Issue
Post by: Stefano 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
Title: Re: Fail2Ban Dependancy Issue
Post by: jameswilson 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
Title: Re: Fail2Ban Dependancy Issue
Post by: janet 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".