AMP failing to install Java

OS Name/Version: Debian 12

Product Name/Version: AMP Release “Decadeus” v2.4.4

Problem Description: Java not installed along with AMP

Steps to reproduce:

Step 1: Install Debian 12
Step 2: Install AMP using “bash <(wget -qO-”.
Step 3: Answer “Yes” when asked if you will be running a Minecraft server.
Step 4: Answer “No” to all other inquiries. (Not using Docker or other options)

Actions taken to resolve so far:

Tried installing Java manually using “bash <(wget -qO- installJava” .

Java still does not install.

Log file shows:

Adding Adoptium APT repository...
deb [signed-by=/usr/share/keyrings/adoptium.gpg] bookworm main
Hit:1 bookworm-security InRelease
Hit:2 bookworm InRelease
Hit:3 bookworm-updates InRelease
Hit:4 bookworm InRelease
Hit:5 debian/ InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package temurin-18-jdk
E: Unable to locate package temurin-19-jdk

Adoptium don’t have packages for Debian 12 yet, it’s too new. Either install it manually, stay with 11, or enable docker mode.

Okay, that explains it. (smacking forehead)

Thank you for enlightening me.

Adoptium has actually had a Bookworm / Debian 12 repo for some months: JFrog

This is the bug in where it fails to install java in some instances.

OP: you can follow these instructions to install the repo and required java versions manually

Except you will find 18 and 19 are not in the repo (coz they are not LTS, and are superseded now by 20, which is in the repo).

Java 8, 11, 17 and 20 are in the repo.

So not a bug in the script, but the java versions being installed by the script probably need to be updated.

Thank you for this information. This is very helpful.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.