我正在尝试为Raspberry Pi获取nmap,并遇到错误。我按照这里的说明操作: http://nmap.org/book/inst-linux.html#inst-debian
我安装了外星人。下一个命令是
rpm -vhU https://nmap.org/dist/nmap-6.49BETA2-1.i386.rpm
但是我收到了这个错误:
pi@raspberrypi ~ $ rpm -vhU https://nmap.org/dist/nmap-6.49BETA2-1.i386.rpm
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Retrieving https://nmap.org/dist/nmap-6.49BETA2-1.i386.rpm
error: Failed dependencies:
python >= 2.4 is needed by nmap-2:6.49BETA2-1.i386
但是我的Python版本是:
pi@raspberrypi ~ $ python --version
Python 2.7.3
这里发生了什么?
答案 0 :(得分:2)
只是为了解释这个问题:
您使用的是错误的下载:
train
软件包不是正确的软件包,但也存在依赖性问题。 RPM安装程序无法正确读取debian已安装软件包的列表。可以通过命令行参数忽略依赖关系,但通常最好
使用debian软件包
如果您需要没有包的版本,请从源代码编译。