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.

  • 1
    How are you using apt on macOS?
    – JMY1000
    Aug 27, 2017 at 6:26
  • i don;t know saw the command on website to install wireless tools.
    – Yuouo
    Aug 27, 2017 at 6:36
  • i have installed all :- brew,git,macport,fink,command line tools(xcode)....... There are similar offerings to apt-get for OS X but all of them have to be installed before you can then use them to install packages.
    – Yuouo
    Aug 27, 2017 at 6:39
  • What are you trying to do with the wireless tools?
    – JMY1000
    Aug 27, 2017 at 6:52
  • trying to use aircrack.
    – Yuouo
    Aug 27, 2017 at 7:11

1 Answer 1


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.

  • i don't know how to use aircrack, i have already installed it through macport.
    – Yuouo
    Aug 27, 2017 at 7:21
  • Now I'm really confused. What's the issue then?
    – JMY1000
    Aug 27, 2017 at 7:22
  • issue is to start airmon-ng it says command not found and i don't know how to use aircrack.
    – Yuouo
    Aug 27, 2017 at 7:25
  • That's an entirely different issue from what your question asked. I'd recommend posting a different question and I'll work from there.
    – JMY1000
    Aug 27, 2017 at 7:27
  • already did, check it.
    – Yuouo
    Aug 27, 2017 at 7:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .