我在 arm 64 架构上使用 macbook 14 pro m1 pro。我还在 arm 64 上安装了 Kali linux 虚拟机。
我安装了 Zenmap 但它说依赖错误
$ zenmap
Could not import the zenmapGUI.App module: 'No module named gtk'.
I checked in these directories:
/usr/bin
/usr/share/offsec-awae-wheels/pyOpenSSL-19.1.0-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/idna-2.9-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/urllib3-1.25.9-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/PySocks-1.7.1-py27-none-any.whl
/usr/share/offsec-awae-wheels/colorama-0.4.3-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/ipaddress-1.0.23-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/pycparser-2.20-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/requests-2.23.0-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/six-1.15.0-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/backports.functools_lru_cache-1.6.1-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/soupsieve-1.9.5-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/chardet-3.0.4-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/ply-3.11-py2.py3-none-any.whl
/usr/share/offsec-awae-wheels/enum34-1.1.10-py2-none-any.whl
/usr/share/offsec-awae-wheels/beautifulsoup4-4.9.1-py2-none-any.whl
/usr/share/offsec-awae-wheels/certifi-2020.4.5.1-py2.py3-none-any.whl
/usr/share/cffi-wheels/py-1.8.1-py2.py3-none-any.whl
/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl
/usr/lib/python2.7
/usr/lib/python2.7/plat-aarch64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/site-packages
If you installed Zenmap in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.
收到此错误后,我意识到我需要 python gtk2 under arm,但是当我下载并尝试安装时,出现错误:
$ sudo dpkg --install python-gtk2_2.24.0-5.1ubuntu2_arm64.deb
Reading database ... 422737 files and directories currently installed.)
Preparing to unpack python-gtk2_2.24.0-5.1ubuntu2_arm64.deb ...
Unpacking python-gtk2 (2.24.0-5.1ubuntu2) over (2.24.0-5.1ubuntu2) ...
**dpkg**: dependency problems prevent configuration of python-gtk2:
python-gtk2 depends on python (<< 2.8); however:
Package python is not installed.
python-gtk2 depends on python (>= 2.7); however:
Package python is not installed.
python-gtk2 depends on python:any (>= 2.6.6-7~).
python-gtk2 depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
Package libgdk-pixbuf2.0-0 is not installed.
python-gtk2 depends on python-cairo (>= 1.0.2-1.1); however:
Package python-cairo is not installed.
python-gtk2 depends on python-gobject-2 (>= 2.21.3); however:
Package python-gobject-2 is not installed.
**dpkg**: error processing package python-gtk2 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-gtk2
尝试了很多不同版本的python gtc2的安装选项,都不行,求助