-
-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is not possible to install java or groovy in a instance of Windows Subsystem for Linux #622
Comments
How long does the download take? Does it seem like it's actually downloading something? Also, it might be worth turning on debugging and posting the result here. You can do so by changing the |
It does not take much time, just print the text This is the debug result when trying to install java
This is the debug result when trying install groovy
Thanks for answering |
Tested this with my WSL Ubuntu install but wasn't able to reproduce. Could install Groovy and Kotlin (from a sudo bash shell) successfully |
tl;dr For me installing I'm running sdkman from inside a container (opensuse/tumbleweed). Already during the installation sdkman reports missing dependencies:
I change
, as @marc0der suggested, to get some clues to what is happening under the hood. I run
So it fails after it's found that post-install hook. I run I also open up the post-installation hook that sdkman has mentionned before: ~/.sdkman/tmp/hook_post_java_8.0.181-zulu.sh I scroll upwards in what sdkman outputs and find:
I look at the __sdkman_validate_binary_input in the post-installation hook: function __sdkman_validate_binary_input {
if ! tar tzf "$1" &> /dev/null; then
echo "Download has failed, aborting!"
echo ""
echo "Can not install java 8.0.181-zulu at this time..."
return 1
fi
} Then it occures to me: Maybe I don't have |
I am running on WSL Arch and I also unable to install java.
|
After several remove/uninstall java 11 installed, but for java8 it was impossible. It failed when moving from temp/out to candidate stating that the target path was not a directory. I just resorted to move files manually and now it works. |
Installed both sdkman and java 21.0.0.r11-grl as root. |
I had a similar issue to this on WSL1 after upgrading Ubuntu from 18.04 (as SDKMAN needed GLIBC newer than 2.7).
Originally posted by @dreamlayers in microsoft/WSL#8219 (comment) |
We require a conversation to take place in the appropriate Gitter Room before raising a new Github Issue. Please note that issues will be closed immediately if prior discussion did not take place. We need to do this to help manage the quality and validity of Issues raised on this project.
Please tick one:
Please explain the Issue / Feature Request here:
Hi everyone, I am trying to install java and groovy candidates in an instance of ubuntu bash shell in windows 10.
When I try
sdk install javajava 9.0.1-zulu
I get the following message
I get a similar scenario when trying to install groovy, but with the following message
On the other hand grails and gradle are installed correctly.
Any idea how to fix this problem? Thanks in advance
The text was updated successfully, but these errors were encountered: