Here is a suggested workaround for Noble until the fix hopefully finds its way into the repos.
DISCLAMER: Try at your own risk. I am not an Ubuntu/Debian developer. Next time you receive a proper package update of fail2ban via apt, any of the manually-downloaded files below may cause conflicts and break your system.
The fail2ban package does not have 'python3-setuptools' listed under "Depends" in its control file, although it requires distutils (provided by the setuptools package) for its default sshd jail and thus for fail2ban to be able to run at all. So, unless you have already installed it, you will need to install it now:
As of this commit from 12 Dec 2023: https:/ /github. com/fail2ban/ fail2ban/ commit/ 1024452fe1befeb 5a0a014386a81ec 183cd45bb5
....upstream ships its source with the missing async* libraries embedded, which solves the issue for now.
Here is a suggested workaround for Noble until the fix hopefully finds its way into the repos.
DISCLAMER: Try at your own risk. I am not an Ubuntu/Debian developer. Next time you receive a proper package update of fail2ban via apt, any of the manually-downloaded files below may cause conflicts and break your system.
mkdir -m 0755 /usr/lib/ python3/ dist-packages/ fail2ban/ compat python3/ dist-packages/ fail2ban/ compat/ asynchat. py https:/ /github. com/fail2ban/ fail2ban/ raw/1024452fe1b efeb5a0a014386a 81ec183cd45bb5/ fail2ban/ compat/ asynchat. py python3/ dist-packages/ fail2ban/ compat/ asyncore. py https:/ /github. com/fail2ban/ fail2ban/ raw/1024452fe1b efeb5a0a014386a 81ec183cd45bb5/ fail2ban/ compat/ asyncore. py python3/ dist-packages/ fail2ban/ server/ asyncserver. py{,.original} python3/ dist-packages/ fail2ban/ server/ asyncserver. py https:/ /github. com/fail2ban/ fail2ban/ raw/1024452fe1b efeb5a0a014386a 81ec183cd45bb5/ fail2ban/ server/ asyncserver. py python3/ dist-packages/ fail2ban/ {compat/ async{hat, ore}.py, server/ asyncserver. py}
wget -O /usr/lib/
wget -O /usr/lib/
cp -p /usr/lib/
wget -O /usr/lib/
chmod 0644 /usr/lib/
The fail2ban package does not have 'python3- setuptools' listed under "Depends" in its control file, although it requires distutils (provided by the setuptools package) for its default sshd jail and thus for fail2ban to be able to run at all. So, unless you have already installed it, you will need to install it now:
apt install python3-setuptools
Once done, fail2ban should start successfully.