MacOS – Unable to locate an executable at “/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/apt” (-1)


this error comes when i use this command:-

sudo apt install wireless-tools
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/apt" (-1)

echo path gives an output like this :-


don't know what to do ? just a fresher in OS.

Best Answer

To install AirCrack (as the author has indicated is his intent), you can either use MacPorts, Brew, or build from the source.

Apt, Yum, Pacman, and other package managers do not exist on macOS; the closest you'll get is MacPorts or Brew.