Skip to content

Bug: "__sdkman_post_installation_hook: command not found" for Java Liberica, Temurin, or Zulu #1482

@jacob-willden

Description

@jacob-willden

Bug report

Attempting to install Java 21.0.9 (as suggested by WhichJDK) on my Raspberry Pi, including through Liberica (sdk install java 21.0.9-librca), Temurin (sdk install java 21.0.9-tem), or Zulu (sdk install java 21.0.9-zulu), all result in the same error:

curl: (23) Failure writing output to destination

(23) Failed writing body
-bash: __sdkman_post_installation_hook: command not found

I would assume the issue is that my Pi appears to be using ARMv6 (see output of uname -a below), but Frank Delporte mentions that Zulu should function on ARMv6 systems.

To reproduce

  1. Install sdkman.
  2. Run sdk list java and check that 21.0.9 is listed under Available Java Versions for Linux ARM 64bit, from vendors including Liberica, Temurin, and Zulu.
  3. Run the installation commands mentioned in the "Bug report" section above, and see the aforementioned error each time.

System info

OS and version: Raspberry Pi 3, Debian 11 Bullseye
Output of uname -a:

Linux jacobs-pi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

Bash version: GNU bash, version 5.1.4(1)-release (aarch64-unknown-linux-gnu)
Output of sdk version:

SDKMAN!
script: 5.20.0
native: 0.7.14 (linux aarch64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions