I just did a fresh install using ubuntu-24.04.1-live-server-amd64.iso. First thing i did was try to install fail2ban and I am getting this error. It is pulling the correct version of fail2ban that should have this issue fixed. Not sure what the issue is.
sysmgr@ubuntu-4gb-ash-1:~$ sudo apt install fail2ban Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: python3-pyasyncore python3-pyinotify whois Suggested packages: mailx monit sqlite3 python-pyinotify-doc The following NEW packages will be installed: fail2ban python3-pyasyncore python3-pyinotify whois 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 496 kB of archives. After this operation, 2,572 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 python3-pyasyncore all 1.0.2-2 [10.1 kB] Get:2 https://mirror.hetzner.com/ubuntu/packages noble-updates/universe amd64 fail2ban all 1.0.2-3ubuntu0.1 [409 kB] Get:3 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 python3-pyinotify all 0.9.6-2ubuntu1 [25.0 kB] Get:4 https://mirror.hetzner.com/ubuntu/packages noble/main amd64 whois amd64 5.5.22 [51.7 kB] Fetched 496 kB in 0s (7,114 kB/s) Selecting previously unselected package python3-pyasyncore. (Reading database ... 46372 files and directories currently installed.) Preparing to unpack .../python3-pyasyncore_1.0.2-2_all.deb ... Unpacking python3-pyasyncore (1.0.2-2) ... Selecting previously unselected package fail2ban. Preparing to unpack .../fail2ban_1.0.2-3ubuntu0.1_all.deb ... Unpacking fail2ban (1.0.2-3ubuntu0.1) ... Selecting previously unselected package python3-pyinotify. Preparing to unpack .../python3-pyinotify_0.9.6-2ubuntu1_all.deb ... Unpacking python3-pyinotify (0.9.6-2ubuntu1) ... Selecting previously unselected package whois. Preparing to unpack .../whois_5.5.22_amd64.deb ... Unpacking whois (5.5.22) ... Setting up whois (5.5.22) ... Setting up python3-pyasyncore (1.0.2-2) ... Setting up fail2ban (1.0.2-3ubuntu0.1) ... /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:224: SyntaxWarning: invalid escape sequence '\s' "1490349000 test failed.dns.ch", "^\s*test <F-ID>\S+</F-ID>" /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:435: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'<F-ID>User <F-USER>\S+</F-USER></F-ID> not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:443: SyntaxWarning: invalid escape sequence '\S' '^'+prefix+'User <F-USER>\S+</F-USER> not allowed\n' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:444: SyntaxWarning: invalid escape sequence '\d' '^'+prefix+'Received disconnect from <F-ID><ADDR> port \d+</F-ID>' /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:451: SyntaxWarning: invalid escape sequence '\s' _test_variants('common', prefix="\s*\S+ sshd\[<F-MLFID>\d+</F-MLFID>\]:\s+") /usr/lib/python3/dist-packages/fail2ban/tests/fail2banregextestcase.py:537: SyntaxWarning: invalid escape sequence '\[' 'common[prefregex="^svc\[<F-MLFID>\d+</F-MLFID>\] connect <F-CONTENT>.+</F-CONTENT>$"' /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1375: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1378: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-mp\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1421: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", /usr/lib/python3/dist-packages/fail2ban/tests/servertestcase.py:1424: SyntaxWarning: invalid escape sequence '\s' "`{ nft -a list chain inet f2b-table f2b-chain | grep -oP '@addr6-set-j-w-nft-ap\s+.*\s+\Khandle\s+(\d+)$'; } | while read -r hdl; do`", Setting up python3-pyinotify (0.9.6-2ubuntu1) ... Processing triggers for man-db (2.12.0-4build2) ... Scanning processes... Scanning linux images... Running kernel seems to be up-to-date. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. sysmgr@ubuntu-4gb-ash-1:~$ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2055114 Title: fail2ban is broken in 24.04 Noble To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/fail2ban/+bug/2055114/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs