11 December 2025

nmap not working

https://superuser.com/questions/1620686/couldnt-open-a-raw-socket-error-permission-denied-13


Did you install nmap using:

sudo snap install nmap

or

sudo apt install nmap

I had this same issue, I installed using snap and was getting the same error as you. If that is the case remove the snap install and use apt:

sudo snap remove nmap
sudo apt install nmap

Run a command with nmap, if you get the error:

bash: /snap/bin/nmap: No such file or directory

use the following command to let go of the cached link:

hash -r

run nmap again, this worked for me.

How I got my answer.

No comments:

Post a Comment