从kali 2019升级到2020后,apt-get upgrade
在终端执行功能时,python-faraday
无法正确设置。显示以下错误。
Setting up faraday (3.10.2-0kali1) ...
Traceback (most recent call last):
File "/usr/bin/faraday-manage", line 11, in <module>
load_entry_point('faradaysec==3.10.2', 'console_scripts', 'faraday-manage')()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/faraday/manage.py", line 40, in <module>
from faraday.client.persistence.server.server import _conf, FARADAY_UP, SERVER_URL
File "/usr/lib/python3/dist-packages/faraday/client/persistence/server/server.py", line 51, in <module>
from faraday.client.persistence.server.changes_stream import (
File "/usr/lib/python3/dist-packages/faraday/client/persistence/server/changes_stream.py", line 11, in <module>
from past.builtins import basestring
ImportError: cannot import name 'basestring' from 'past.builtins' (unknown location)
dpkg: error processing package faraday (--configure):
installed faraday package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of python-faraday:
python-faraday depends on faraday; however:
Package faraday is not configured yet.
dpkg: error processing package python-faraday (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
faraday
python-faraday
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
如果您不想使用它或安装它,为什么不将其删除呢?尝试
sudo apt remove faraday && sudo apt remove python-faraday
或者如果你想要的话,尝试一下
sudo apt purge python-faraday && sudo apt install python-faraday -y