安装command-not-found包

sudo apt-get update
sudo apt-get install command-not-found

更新系统软件包:

sudo apt-get update
sudo apt-get upgrade

安装 nmap

sudo apt-get install --reinstall nmap

确认 nmap 是否安装正确

which nmap

如果 nmap 安装正确,并且可以找到它的路径,尝试直接使用完整路径执行 nmap

nmap <IP地址>

完整路径执行 nmap

/usr/bin/nmap  <IP地址>
Last modification:August 2nd, 2024 at 08:51 am