Permissions issue
nmap 127.0.0.1
Starting Nmap 7.93 ( https://nmap.org ) at 2022-10-30 10:29 CST
Couldn't open a raw socket. Error: Permission denied (13)
Error Couldn't open a raw socket . Error: Permission denied (13)
solution
First try:
Ubuntu does not have windows permissions, even the root user does not have permissions.
Right-click to open the subsystem with administrator permissions, re-scan, and run again
Then restart the virtual machine to try
If the above solution does not work
Try to enter in the terminal command line of the virtual machine ubuntu system:
snap connect nmap:network-control
Networking for nmap
Then re-do the nmap scan
successfully resolved