In Terminal getting error: The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on installing Java.

How to fix the following error received in Terminal:


"The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.

Please visit http://www.java.com for information on installing Java."


I installed Java using the link, but still no-go.


The command that generated this error was: apt update


My Mac: Mini running Ventura 13.4


Thanks!

Mac mini, macOS 13.4

Posted on Jun 15, 2023 09:57 AM

Reply
8 replies

Jun 15, 2023 01:14 PM in response to Old Toad

Yes.


Here is where I'm at now:


doc@DOCs-Mac-mini opt % install.sh

zsh: command not found: install.sh

doc@DOCs-Mac-mini opt % cd Storm-Breaker

doc@DOCs-Mac-mini Storm-Breaker % ls

README.md install.sh requirements.txt storm-web

Settings.json modules st.py

doc@DOCs-Mac-mini Storm-Breaker % apt update

The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.

Please visit http://www.java.com for information on installing Java.


doc@DOCs-Mac-mini Storm-Breaker %


What to do?


Thanks!

Jun 15, 2023 01:25 PM in response to drffc

Here is where I'm at now:


doc@DOCs-Mac-mini opt % install.sh

zsh: command not found: install.sh

doc@DOCs-Mac-mini opt % cd Storm-Breaker

doc@DOCs-Mac-mini Storm-Breaker % ls

README.md install.sh requirements.txt storm-web

Settings.json modules st.py

doc@DOCs-Mac-mini Storm-Breaker % apt update

The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.

Please visit http://www.java.com for information on installing Java.


doc@DOCs-Mac-mini Storm-Breaker %


What to do?


Thanks!

Jun 15, 2023 01:55 PM in response to drffc

drffc wrote:

Here is where I'm at now:

doc@DOCs-Mac-mini opt % install.sh
zsh: command not found: install.sh
doc@DOCs-Mac-mini opt % cd Storm-Breaker
doc@DOCs-Mac-mini Storm-Breaker % ls
README.md install.sh requirements.txt storm-web
Settings.json modules st.py
doc@DOCs-Mac-mini Storm-Breaker % apt update
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.

doc@DOCs-Mac-mini Storm-Breaker %

What to do?

Thanks!


You are attempting to install the Storm-Breaker social-engineering tool. This is not a tool I am familiar with.


The apt command is not a macOS command. That command will not work here.


I don't see macOS install instructions posted anywhere obvious, though have not dug through all of the files of the distribution. Per what docs I can locate, you will need the following prerequisites installed and configured: php, python3, git, and Ngrok.


Then invoke the install.sh shell script.


With the prerequisites installed, if invoking the install.sh script from the proper default directory does not work, I would suggest discussing these install issues with the app provider. Open an issue on GitHub, or whatever forums the app provider might prefer.


For reference, some other open issues with that app: https://github.com/ultrasecurity/Storm-Breaker/issues


Sep 10, 2023 04:39 PM in response to drffc

Download and install java from here https://www.java.com/en/download/


Now


java -version


works and outputs:


java version "1.8.0_381"

Java(TM) SE Runtime Environment (build 1.8.0_381-b09)

Java HotSpot(TM) 64-Bit Server VM (build 25.381-b09, mixed mode)



Make sure you download the ARM64 version (under the green button) if you have an Apple M1 or M2 chip and not the intel version:


If you are running on an M series system (ARM64), download the ARM64 version of the JRE .



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

In Terminal getting error: The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt. Please visit http://www.java.com for information on installing Java.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.