我正在尝试检查我的一个过滤器监狱的配置,但每次运行时fail2ban-regex /path/to/log.log /path/to/filter.conf
都会出现以下错误:
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 68, in <module>
import os
File "/usr/lib/python2.7/os.py", line 400, in <module>
import UserDict
File "/usr/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/usr/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
答案1
在@varfirstname的帮助下,我们发现这个问题是由多个依赖项损坏引起的。经过几个小时的尝试修复和重新安装后,我们得出结论,操作系统需要重新安装