How to install Nmap 6 on Ubuntu 12.04

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Fyodor and the Nmap crew today have released the version 6 of the famous Network Mapper. This major release brings 600 significant improvements (see, the top 6 are:

Nmap Scripting Engine (NSE) – 352 scripts!

Better Web Scanning

Full IPv6 Support

New Nping Tool

Better Zenmap GUI & results viewer

Faster scans

To install the latest Nmap on Ubuntu 12.04 please follow this steps, please note that I’m using Checkinstall to build the .deb package. Using CheckInstall will give an easy way to install or remove the  files from the file system.


[sourcecode language=”bash”]

apt-get install build-essential checkinstall


bzip2 -cd nmap-6.00.tar.bz2 | tar xvf –

cd nmap-6.00




dpkg -i nmap_6.00-1_i386.deb


To try nmap.

nmap -A



  1. Worked for me on 10.04.4 LTS, thanks.

    However I’m not sure the dpkg step is necessary.

  2. Hmm isn’t this a bit complicated ” bzip2 -cd nmap-6.00.tar.bz2 | tar xvf – ”
    Why not ” tar xvjf nmap-6.00.tar.bz2 ” instead?

  3. denpanosekai, if you run ” make install ” instead of ” dpkg -i “, mnap won’t be handled by the package manager. Then ubuntu doesn’t know which version that is installed (for upgrades).

  4. Hi great tip, I would like to improve yours:

    Instead of use line you state as:

    bzip2 -cd nmap-6.00.tar.bz2 | tar xvf -

    tar on Linux has an improvement since long time ago… use “-j” option for bzip2 files:

    tar -jxvf nmap-6.00.tar.bz2

    All you did just one shot!! 😀

    Nice day to all,

  5. Working on Ubuntu 12.04 man, thanks man. But can I get the GUI on ubuntu ?

  6. Thanks, it was useful to me (:

  7. It worked for me! Very nice…Thank you!!

  8. I followed these instructions, the install appeared to go smoothly, however, when I run the command nmap -T4 -A -v I get the following errors:
    Starting Nmap 6.25 ( ) at 2013-01-21 15:28 PST
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/http-favicon.nse’.
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/ipv6-node-info.nse’.
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/iscsi-info.nse’.
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/mongodb-databases.nse’.
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/mongodb-info.nse’.
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/sip-methods.nse’.
    NSE: Failed to load ‘/usr/local/bin/../share/nmap/scripts/ssh-hostkey.nse’.
    NSE: Loaded 99 scripts for scanning.

    NMap does the scan though, any ideas why I am getting these “Failed to load” errors? Thank you!

  9. I get an error on checkinstall:

    make: *** No rule to make target liblua/liblua.a', needed by nmap’. Stop.

    **** Installation failed. Aborting package creation.

    Cleaning up…OK


  10. thanks. It’s work.

  11. I followed and I can use nmap now

    # apt-get update
    # apt-get install nmap

  12. tar -xvf

    and you miss the

    make install at the end

  13. I ran bzip2 -cd nmap-6.00.tar.bz2 without | tar xvf – and the script has been running for over 5 minutes now. Is this correct? … It seem like there is an error.

  14. /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/ could not read symbols: Invalid operation

  15. To fix this:
    /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/ could not read symbols: Invalid operation

    Substitute this for make

    make “LUA_LIBS=../liblua/liblua.a -ldl -lm”

  16. I am running nmap 6.4 on ubuntu 64bit on top of Mac OS X. How do I get a GUI to run nmap?

    Thanks in advance.

Leave a Reply

Your email address will not be published / Required fields are marked *