package fail2ban 0.10.2-2 failed to install/upgrade: installed fail2ban package post-installation script subprocess returned error exit status 1

Bug #1794281 reported by sam tygier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fail2ban (Debian)
Fix Released
Unknown
fail2ban (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

fail2ban fails to install with the error

Setting up fail2ban (0.10.2-2) ...
  File "/usr/lib/python3/dist-packages/fail2ban/client/fail2banclient.py", line 231
    def configureServer(self, async=True, phase=None):
                                  ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/fail2ban/client/fail2banserver.py", line 173
    async = self._conf.get("async", False)
          ^
SyntaxError: invalid syntax

dpkg: error processing package fail2ban (--configure):
 installed fail2ban package post-installation script subprocess returned error exit status 1

ProblemType: Package
DistroRelease: Ubuntu 18.10
Package: fail2ban 0.10.2-2
ProcVersionSignature: Ubuntu 4.18.0-7.8-generic 4.18.5
Uname: Linux 4.18.0-7-generic x86_64
ApportVersion: 2.20.10-0ubuntu11
AptOrdering:
 fail2ban:amd64: Install
 python3-pyinotify:amd64: Install
 whois:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Tue Sep 25 13:02:03 2018
ErrorMessage: installed fail2ban package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2018-07-04 (82 days ago)
InstallationMedia: Ubuntu-MATE 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitecture: all
Python3Details: /usr/bin/python3.6, Python 3.6.6+, python3-minimal, 3.6.6-1
PythonDetails: /usr/bin/python2.7, Python 2.7.15+, python-minimal, 2.7.15-3
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu5
 apt 1.7.0~rc2
SourcePackage: fail2ban
Title: package fail2ban 0.10.2-2 failed to install/upgrade: installed fail2ban package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to cosmic on 2018-09-10 (14 days ago)

Revision history for this message
sam tygier (samtygier) wrote :
Revision history for this message
sam tygier (samtygier) wrote :

async became a keyword in python 3.7. This looks like the upstream fix:

https://github.com/fail2ban/fail2ban/commit/ac9d5f61e7e9151f7518c26db192dd6d0bf56591

Changed in fail2ban (Debian):
status: Unknown → Fix Released
Norbert (nrbrtx)
tags: removed: cosmic
Changed in fail2ban (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.