我已经在带有 XFce4.12 环境的 Ubuntu 18.04 中安装了 ufw 和 gufw。我正在探索它的配置,然后我寻找一些教程来配置它,当我运行sudo ufw
它时,它会返回给我:
ERROR: not enough args
然后我运行:
$ sudo ufw enable
Traceback (most recent call last):
File "/usr/sbin/ufw", line 115, in <module>
datadir=datadir)
File "/usr/lib/python3/dist-packages/ufw/frontend.py", line 165, in __init__
datadir=datadir)
File "/usr/lib/python3/dist-packages/ufw/backend_iptables.py", line 51, in __init__
rootdir=rootdir, datadir=datadir)
File "/usr/lib/python3/dist-packages/ufw/backend.py", line 54, in __init__
self._get_defaults()
File "/usr/lib/python3/dist-packages/ufw/backend.py", line 288, in _get_defaults
for line in orig:
File "/usr/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 4: invalid start byte
启动不了了,卸载重装还是一样,求大神帮忙?