Skip to content

Install failing on i386 system #293

Closed

Description

@Rinocenc

We are attempting to install SDKMAN on Ubuntu running in a i386 VM. Most of the installation goes through, but towards the end one of the curl commands fail with exit code 22.

++ current_command='curl --fail --location --progress-bar "${SDKMAN_SERVICE}/broker/download/native/install/${SDKMAN_NATIVE_VERSION}/${SDKMAN_PLATFORM}" > "$sdkman_zip_file"'

  • curl --fail --location --progress-bar https://api.sdkman.io/2/broker/download/native/install/0.5.0/linuxx32
    ##O#- #
    curl: (22) The requested URL returned error: 404 Not Found
    ++ track_last_command
    ++ last_command='curl --fail --location --progress-bar "${SDKMAN_SERVICE}/broker/download/native/install/${SDKMAN_NATIVE_VERSION}/${SDKMAN_PLATFORM}" > "$sdkman_zip_file"'
    ++ current_command='curl --fail --location --progress-bar "${SDKMAN_SERVICE}/broker/download/native/install/${SDKMAN_NATIVE_VERSION}/${SDKMAN_PLATFORM}" > "$sdkman_zip_file"'
  • echo_failed_command
  • local exit_code=22

Is it possible the page is missing from the site? The page that is not found is https://api.sdkman.io/2/broker/download/native/install/0.5.0/linuxx32

Activity

  1. marc0der commented on Feb 17, 2025

    @marc0der
    Member

    Hi @Rinocenc, I'm not sure what you mean by page from the site, but we currently don't support 32-bit architectures for the native sdkman CLI. Could you tell me if you are trying to run this on a CI pipeline or a developer machine?

  2. Rinocenc commented on Feb 18, 2025

    @Rinocenc
    Author
  3. marc0der commented on Mar 4, 2025

    @marc0der
    Member

    Hi, @Rinocenc. I'm sorry for the delay with this.

    I'd love to get this working, but I need your help as I don't have an i686 machine or VM. I've compiled new binaries, and you should be able to find the 32-bit variant on our download page. To test whether it works:

    1. Download the file called sdkman-cli-native-0.5.10-i686-unknown-linux-gnu.zip
    2. Extract the file and move the contents of sdkman-cli-native-0.5.10-i686-unknown-linux-gnu/libexec/ into the ~/.sdkman/libexec directory.
    cd ~/Downlods
    wget https://github.com/sdkman/sdkman-cli-native/releases/download/v0.5.10/sdkman-cli-native-0.5.10-i686-unknown-linux-gnu.zip
    unzip sdkman-cli-native-0.5.10-i686-unknown-linux-gnu.zip
    mv -v sdkman-cli-native-0.5.10-i686-unknown-linux-gnu/libexec/* ~/.sdkman/libexec/
    

    If the files were correctly moved to this directory, you succeeded. You can now test it by running the sdk version command. You should see the following:

    sdk version
    
    SDKMAN!
    script: 5.19.0
    native: 0.5.10
    

    This proves that the binaries are working. Once you've completed this, with your help, I would like to make it part of our installation procedure. But first, let's test if the binaries themselves work.

  4. Rinocenc commented on Mar 6, 2025

    @Rinocenc
    Author
  5. marc0der commented on Mar 10, 2025

    @marc0der
    Member

    Hi @Rinocenc, just checking in if you managed to get this working.

  6. Rinocenc commented on Mar 10, 2025

    @Rinocenc
    Author
  7. marc0der commented on Mar 10, 2025

    @marc0der
    Member

    Right, your installation was seemingly never completed because it couldn't find the zip i686 binary when you first installed it. Let's see if we can fix this. I'm going to ask you to send me the output of the following command:

    uname -sm

    Once I have this information, I can make the changes to the installer to ensure it works as it should so you can start over.

  8. Rinocenc commented on Mar 11, 2025

    @Rinocenc
    Author
  9. marc0der commented on Mar 12, 2025

    @marc0der
    Member

    Hi @Rinocenc, I've deployed the necessary changes, and it's ready for you to test.

    To test it, you must delete your current installation by removing the entire ~.sdkman directory. Once you've done this, you can attempt a fresh installation in the usual manner using the curl command on our website. Let me know how that goes!

  10. Rinocenc commented on Mar 13, 2025

    @Rinocenc
    Author
  11. marc0der commented on Mar 15, 2025

    @marc0der
    Member

    So glad that this worked for you! Hopefully, this will help others, too.

    Regarding support for 32-bit Java, it seems like support from all the major vendors has dropped off significantly (or perhaps the disco integration project is no longer passing them through to us; @eddumelendez might be able to help).

    That said, I found two old versions of Liberica JDK from Bellsoft in the database that were no longer marked visible. I've changed their status, so you should be able to see them now. Let me know if that works for you.

    In the meantime, @eddumelendez, would you please check if the 32-bit binaries are still propagating?

  12. Rinocenc commented on Mar 18, 2025

    @Rinocenc
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions