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.
No comments:
Post a Comment