我正在尝试为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


这里发生了什么?

最佳答案

只是为了说明问题:

您使用的下载错误:

nmap-6.49BETA2-1.i386.rpm
                      ^^^ package format for RedHat not for Debian
                 ^^^^ wrong architecture, the Rasberry pi is arm6 or arm7l


该软件包不是正确的软件包,但也存在依赖性问题。 RPM安装程序无法正确读取debian已安装软件包的列表。可以通过命令行参数忽略依赖关系,但通常最好


使用一个Debian软件包
或从源代码进行编译(如果您需要没有软件包的版本)。

关于python - Raspberry Pi无法安装Nmap,相关性失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30971615/

10-13 05:50