I'm getting an error where zenmap is not able to locate nmap, even though nmap is installed an working.
I tried editing the path section of zenmap.conf and removing the "../" in front of nmap, but it didn't seem to make any difference.
Just curious if anyone else here got around this issue.
SGS
May 2, 2023, 2:39pm
2
pacman -Ss zenmap
chaotic-aur/zenmap-python3-git 7.93-1
Graphical Nmap frontend and results viewer - rerwite in
python 3
Missing your garuda-inxi
1 Like
It won't help, but here you go.
╰─λ garuda-inxi
System:
Kernel: 6.2.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=ecab03e1-a558-41c4-9a5d-c968be69fb64 rw rootflags=subvol=@
quiet
cryptdevice=UUID=aafdf48b-7261-469c-8910-7f87d7aec02d:luks-aafdf48b-7261-469c-8910-7f87d7aec02d
root=/dev/mapper/luks-aafdf48b-7261-469c-8910-7f87d7aec02d splash
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.4 tk: Qt v: 5.15.9 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop System: Micro product: G510 v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: PRIME B550M-A AC v: Rev X.0x
serial: <superuser required> UEFI: American Megatrends v: 2006
date: 03/19/2021
CPU:
Info: model: AMD Ryzen 5 5600X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
model-id: 0x21 (33) stepping: 0 microcode: 0xA201009
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 1x32 MiB
Speed (MHz): avg: 4224 high: 4458 min/max: 2200/4650 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 4169 2: 4142
3: 4452 4: 4458 5: 4131 6: 4154 7: 4077 8: 4058 9: 4456 10: 4447 11: 4062
12: 4089 bogomips: 88624
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
vendor: Tul / PowerColor driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
lanes: 16 ports: active: DP-3 empty: DP-1,DP-2,HDMI-A-1 bus-ID: 0d:00.0
chip-ID: 1002:73df class-ID: 0300
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting,radeon
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00")
s-diag: 777mm (30.58")
Monitor-1: DP-3 mapped: DisplayPort-2 model: ASUS VG32VQ1B
serial: <filter> built: 2020 res: 2560x1440 hz: 165 dpi: 93 gamma: 1.2
size: 697x392mm (27.44x15.43") diag: 800mm (31.5") ratio: 16:9 modes:
max: 2560x1440 min: 720x400
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 6700 XT (navi22
LLVM 15.0.7 DRM 3.49 6.2.12-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:ab28
class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 0f:00.4 chip-ID: 1022:1487 class-ID: 0403
API: ALSA v: k6.2.12-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsamixer,amixer
Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
Server-2: JACK v: 1.9.22 status: off tools: qjackctl
Server-3: PipeWire v: 0.3.70 status: off with: pipewire-media-session
status: active tools: pw-cli
Server-4: PulseAudio v: 16.1 status: active with: pulseaudio-jack
type: module tools: pacat,pactl
Network:
Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: ASUSTeK driver: rtw_8821ce v: N/A modules: rtw88_8821ce pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 09:00.0 chip-ID: 10ec:c821
class-ID: 0280
IF: wlp9s0 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 0a:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp10s0 state: down mac: <filter>
Bluetooth:
Device-1: ASUSTek Bluetooth Radio type: USB driver: btusb v: 0.8
bus-ID: 1-5:2 chip-ID: 0b05:18ea class-ID: e001 serial: <filter>
Report: bt-adapter note: tool can't run ID: hci0 rfk-id: 7 state: down
bt-service: disabled rfk-block: hardware: no software: yes address: N/A
Drives:
Local Storage: total: 931.51 GiB used: 676.37 GiB (72.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: WDS100T2B0C-00PXH0 size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 211210WD temp: 38.9 C scheme: GPT
Partition:
ID-1: / raw-size: 896.86 GiB size: 896.86 GiB (100.00%)
used: 676.37 GiB (75.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-aafdf48b-7261-469c-8910-7f87d7aec02d
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 706 KiB (0.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 896.86 GiB size: 896.86 GiB (100.00%)
used: 676.37 GiB (75.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-aafdf48b-7261-469c-8910-7f87d7aec02d
ID-4: /var/log raw-size: 896.86 GiB size: 896.86 GiB (100.00%)
used: 676.37 GiB (75.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-aafdf48b-7261-469c-8910-7f87d7aec02d
ID-5: /var/tmp raw-size: 896.86 GiB size: 896.86 GiB (100.00%)
used: 676.37 GiB (75.4%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
mapped: luks-aafdf48b-7261-469c-8910-7f87d7aec02d
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.26 GiB used: 583.4 MiB (1.8%)
priority: 100 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 78.5 C mobo: N/A gpu: amdgpu temp: 61.0 C
mem: 44.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 1088
Info:
Processes: 431 Uptime: 3d 22h 55m wakeups: 6 Memory: 31.26 GiB
used: 17.12 GiB (54.8%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 2601 libs: 605 tools: octopi,pamac,paru,yay pm: flatpak pkgs: 0
Shell: fish v: 3.6.1 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.26
Garuda (2.6.16-1):
System install date: 2021-11-04
Last full system update: 2023-05-02 ↻
Is partially upgraded: No
Relevant software: timeshift NetworkManager mkinitcpio
Windows dual boot: No/Undetected
Failed units: archlinux-keyring-wkd-sync.service
filo
May 3, 2023, 4:51am
5
There seem to be an open issue about it.
Strange that what you did didn't fix it, as suggested in the issue.
opened 07:03AM - 23 Mar 23 UTC
Zenmap
### Describe the bug
Zenmap gui says it can't find the nmap executable even tho… ugh it's installed.
### Steps To Reproduce
Steps to reproduce the behavior:
1. Launch zenmap from the command line `sudo zenmap`
2. Zenmap interface opens without any warnings
3. Enter an ip range in the target box, for example `10.0.0.0/24'
4. Pres scan
### Expected behavior
Zenmap to begin scanning my selected network range with the options
### Screenshots




### Additional context
I tried install zenmap many ways on Ubuntu 20.04. What ended up working (where I could launch the gui) was:
```console
sudo apt update
sudo apt install nmap
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
sudo apt install ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/n/nmap/zenmap_7.60-1ubuntu5_all.deb
sudo apt install ./zenmap_7.60-1ubuntu5_all.deb
sudo zenmap
```
```console
- system: `"x86_64-linux"`
- host os: `Linux 5.15.0-67-generic, Ubuntu, 20.04.6 LTS (Focal Fossa), nobuild`
```
**Additional context**
nmap seems to be installed. The paths listed in both error messages (root and user) contain the path where the nmap executable is. I can run nmap normally from the command line.
Maybe try also putting the full path of nmap there.
Of course, use the file in your home
~/.zenmap/zenmap.conf
should it be available also elsewhere, e g. /use/...
4 Likes
I tried adding the full path to nmap in zenmap.conf.
I don't know what is causing the issue, but the error states that nmap cannot be found. The error also shows the path, which includes /usr/bin, where nmap is installed, so I think the error message might be a bit misleading.
I figured out the issue.
First, I'm not embarrassed to admit when I made a mistake. So, with that being said, my mistake was editing .zenmap/zenmap.conf in my home directory. Making the edit under roots home directory fixed the issue.
1 Like
system
Closed
May 5, 2023, 12:15pm
8
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.