How to Install and Uninstall fail2ban Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 14,2024

1. Install "fail2ban" package

This tutorial shows how to install fail2ban on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install fail2ban

2. Uninstall "fail2ban" package

In this section, we are going to explain the necessary steps to uninstall fail2ban on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove fail2ban $ sudo apt autoclean && sudo apt autoremove

3. Information about the fail2ban package on Ubuntu 20.04 LTS (Focal Fossa)

Package: fail2ban
Architecture: all
Version: 0.11.1-1
Priority: optional
Section: universe/net
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1965
Depends: python3:any, lsb-base (>= 2.0-7)
Recommends: nftables | iptables, whois, python3-pyinotify, python3-systemd
Suggests: mailx, system-log-daemon, monit, sqlite3
Filename: pool/universe/f/fail2ban/fail2ban_0.11.1-1_all.deb
Size: 374672
MD5sum: 394cf995fa2db4f91daa4f0a52d35660
SHA1: 5d1f9f26e1a100e0cb042c0e778b608e61abbf3d
SHA256: 3c9d9f501710269f43a6c6ea756ed42d6e45f58790a1588e4df45898bc9d7ccc
Homepage: http://www.fail2ban.org
Description: ban hosts that cause multiple authentication errors
Description-md5: 2aaeac0c71609eb6bfd4102c0adc7275