Errors When Trying To Upgrade fail2ban

Hello,

I need to upgrade the file2ban version running on my system but, I ran into issues.

When doing:

yum install fail2ban -y

It returns:

# yum install fail2ban
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
sng-base                                                                                                                                                                                                               | 3.6 kB  00:00:00     
sng-epel                                                                                                                                                                                                               | 2.9 kB  00:00:00     
sng-extras                                                                                                                                                                                                             | 2.9 kB  00:00:00     
sng-pkgs                                                                                                                                                                                                               | 3.4 kB  00:00:00     
sng-updates                                                                                                                                                                                                            | 2.9 kB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package fail2ban.noarch 0:0.11.1-9.el7.2 will be installed
--> Processing Dependency: fail2ban-server = 0.11.1-9.el7.2 for package: fail2ban-0.11.1-9.el7.2.noarch
--> Processing Dependency: fail2ban-sendmail = 0.11.1-9.el7.2 for package: fail2ban-0.11.1-9.el7.2.noarch
--> Processing Dependency: fail2ban-firewalld = 0.11.1-9.el7.2 for package: fail2ban-0.11.1-9.el7.2.noarch
--> Running transaction check
---> Package fail2ban-firewalld.noarch 0:0.11.1-9.el7.2 will be installed
---> Package fail2ban-sendmail.noarch 0:0.11.1-9.el7.2 will be installed
---> Package fail2ban-server.noarch 0:0.11.1-9.el7.2 will be installed
--> Processing Dependency: systemd-python for package: fail2ban-server-0.11.1-9.el7.2.noarch
--> Running transaction check
---> Package systemd-python.x86_64 0:219-73.el7_8.9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================================================
 Package                                                        Arch                                               Version                                                      Repository                                               Size
==============================================================================================================================================================================================================================================
Installing:
 fail2ban                                                       noarch                                             0.11.1-9.el7.2                                               sng-epel                                                 15 k
Installing for dependencies:
 fail2ban-firewalld                                             noarch                                             0.11.1-9.el7.2                                               sng-epel                                                 16 k
 fail2ban-sendmail                                              noarch                                             0.11.1-9.el7.2                                               sng-epel                                                 18 k
 fail2ban-server                                                noarch                                             0.11.1-9.el7.2                                               sng-epel                                                445 k
 systemd-python                                                 x86_64                                             219-73.el7_8.9                                               sng-updates                                             143 k

Transaction Summary
==============================================================================================================================================================================================================================================
Install  1 Package (+4 Dependent packages)

Total download size: 637 k
Installed size: 1.6 M
Is this ok [y/d/N]: y 
Downloading packages:
(1/5): fail2ban-0.11.1-9.el7.2.noarch.rpm                                                                                                                                                                              |  15 kB  00:00:00     
(2/5): fail2ban-firewalld-0.11.1-9.el7.2.noarch.rpm                                                                                                                                                                    |  16 kB  00:00:00     
(3/5): fail2ban-sendmail-0.11.1-9.el7.2.noarch.rpm                                                                                                                                                                     |  18 kB  00:00:00     
(4/5): fail2ban-server-0.11.1-9.el7.2.noarch.rpm                                                                                                                                                                       | 445 kB  00:00:00     
(5/5): systemd-python-219-73.el7_8.9.x86_64.rpm                                                                                                                                                                        | 143 kB  00:00:00     
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                         682 kB/s | 637 kB  00:00:00     
Running transaction check
Running transaction test


Transaction check error:
  file /etc/logrotate.d/fail2ban from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/badips.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/blocklist_de.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/dshield.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/dummy.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/firewallcmd-ipset.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/firewallcmd-new.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-allports.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-ipset-proto4.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-ipset-proto6-allports.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-ipset-proto6.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-multiport-log.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-multiport.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-new.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables-xt_recent-echo.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/iptables.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/mynetwatchman.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/route.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/sendmail.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/fail2ban.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/3proxy.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/apache-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/apache-badbots.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/apache-common.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/apache-modsecurity.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/apache-noscript.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/apache-overflows.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/assp.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/asterisk.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/common.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/cyrus-imap.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/dovecot.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/dropbear.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/ejabberd-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/exim-common.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/exim-spam.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/exim.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/freeswitch.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/groupoffice.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/lighttpd-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/mysqld-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/named-refused.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/nginx-http-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/nsd.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/pam-generic.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/php-url-fopen.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/postfix.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/proftpd.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/pure-ftpd.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/recidive.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/roundcube-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/selinux-common.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/sendmail-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/sendmail-reject.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/sogo-auth.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/solid-pop3d.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/squid.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/sshd.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/suhosin.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/vsftpd.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/wuftpd.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/filter.d/xinetd-fail.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/jail.conf from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/bin/fail2ban-client from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/bin/fail2ban-regex from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/bin/fail2ban-server from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/lib/systemd/system/fail2ban.service from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/share/man/man1/fail2ban-client.1.gz from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/share/man/man1/fail2ban-regex.1.gz from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /usr/share/man/man1/fail2ban-server.1.gz from install of fail2ban-server-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/sendmail-buffered.conf from install of fail2ban-sendmail-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/sendmail-common.conf from install of fail2ban-sendmail-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/sendmail-whois-lines.conf from install of fail2ban-sendmail-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch
  file /etc/fail2ban/action.d/sendmail-whois.conf from install of fail2ban-sendmail-0.11.1-9.el7.2.noarch conflicts with file from package fail2ban-fpbx-0.8.14-76.sng7.noarch

Error Summary
-------------

How to safely upgrade fail2ban on this system?

I saw some post on this forums concerning similar issues but, I need to get the right way, I don’t want to harm my system.

Thank-you,

Guillaume

If you are using the distro, then you are not using fail2ban. You are using fail2ban-fpbx.

Oh ok I see.

I do have issue with the ban of some problematic IP addresses. fail2ban-fpbx seem not banning IP addresses at all. Is there a way to auto blocking IP addresses? I do have the firewall activated but IP addresses need to be manually blocked.

I’d make another thread before opening that one and, someone suggest me to upgrade fail2ban because the version that I currently have will not banning the IP at all. So that person suggest me to upgrade it to 0.11

When doing yum install fail2ban-fpbx I can upgrade the package but only to 0.0.8.14-78 , is there a newer version that I can use?

Thank-you

Guillaume

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.