You’re not in a proper pentesting distro. You’re in Ubuntu, Debian minimal, or macOS without Nmap installed.
Check your interface: ip a
You scan the attacker machine (Kali) and target machine (Metasploitable) from Kali, but nothing works. hacker simulator nmap not working work
sudo apt update sudo apt install nmap -y You’re not in a proper pentesting distro