apt can’t locate openjdk-16-jre-headless because the OpenJDK 16 packages aren’t available in any Debian release.

The only release available to you in Debian 10 is OpenJDK 11. Debian 11 has OpenJDK 17. Both of these are releases with long-term support.

Answer from Stephen Kitt on Stack Exchange
🌐
Stack Overflow
stackoverflow.com › questions › 57960603 › e-unable-to-locate-package-openjdk-11-jdk
maven - E: Unable to locate package openjdk-11-jdk - Stack Overflow
FROM maven:3-jdk-11 # Common files and utils for build RUN apt-get update && apt-get install -y make fakeroot rpm dpkg-dev apt-utils wget unzip RUN apt-get install -y -q software-properties-common desktop-file-utils # Then Wine with all deps RUN dpkg --add-architecture i386 && apt-get update RUN apt-get install -y --install-recommends wine RUN apt-cache search openjdk RUN apt-get install -y openjdk-11-jdk RUN apt install -y openjfx11 libopenjfx-java libopenjfx-jni RUN apt-get install -y --install-recommends wine32 ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64 ENV JAVAFX_HOME /usr/share/java/openjfx11 # And we ready to play with our code ARG SRCDIR=. ARG DSTDIR=/usr/src/CryptoStock ARG CACHEDIR=./cache # Subject to be used here but should be command line, sic!
🌐
Reddit
reddit.com › r/debian › need help: installing openjdk-11 on debian 12
r/debian on Reddit: Need Help: Installing OpenJDK-11 on Debian 12
June 21, 2023 -

I recently upgraded my Debian version to the shiny new Debian 12, and I'm currently facing a small hiccup while trying to install OpenJDK-11. I'm aware that the apt install default-jdk command usually does the trick, but in this case, it installs version 17 of OpenJDK. Unfortunately, I specifically need JDK 11 for my project.

I successfully used apt install default-jdk in Debian 11 without any issues, so I'm wondering if there have been any changes in Debian 12 that require a different approach for installing OpenJDK-11. I'd greatly appreciate it if anyone could kindly guide me through the correct steps to install OpenJDK-11 on Debian 12.

Thank you in advance for your time and assistance!

🌐
B4X
b4x.com › home › forums › b4j - desktop, server and raspberry pi › b4j questions
OpenJDK11 on Debian 9 | B4X Programming Forum
February 15, 2019 - You can manually download OpenJDK 11 binary files here: http://jdk.java.net/11/ Tools I have made with B4J: BasicCAT - A computer-aided translation tool ImageTrans - An image translation and transcription tool Silhouette - A computer-aided translation tool for audios and videos Online Image Translator - Based on ImageTrans and jServer ... I downloaded and extracted it with command "tar xvf openjdk-11.0.2_linux-x64_bin.tar.gz" in folder: /opt/java. I set the environment variable JAVA_HOME with the location of java folder and i've added it to PATH variable.
🌐
Debian
packages.debian.org › bullseye › openjdk-11-jdk
Debian -- Details of package openjdk-11-jdk in bullseye
OpenJDK is a development environment for building applications, applets, and components using the Java programming language · This page is also available in the following languages (How to set the default document language):
🌐
GitHub
github.com › koenvervloesem › bazel-on-arm › issues › 2
Debian 9 support · Issue #2 · koenvervloesem/bazel-on-arm
September 12, 2020 - $ make requirements E: Unable to locate package openjdk-11-jdk-headless ./scripts/install_requirements.sh: line 9: update-java-alternatives: command not found
Author   koenvervloesem
Find elsewhere
🌐
Ralph's Open Source Blog
ralph.blog.imixs.com › 2024 › 01 › 24 › install-open-jdk-11-on-debian-12-bookworm
Install Open JDK 11 on Debian 12 (Bookworm) - Ralph's Open Source Blog
January 24, 2024 - In Debian 12 the default JDK is Java 17. In case you need Java 11 instead you can follow this blog from Linux Shout . Here is the short version: 1) Edit your sources.list Edit the file /etc/apt/sources.list and add the unstable packages at the end of the file deb…
🌐
RoseIndia
roseindia.net › answers › viewqa › Java-Beginners › 33038-Unable-to-locate-package-openjdk-11-jdk.html
Unable to locate package openjdk-11-jdk
July 29, 2018 - deepak@deepak-VirtualBox:~$ sudo apt install openjdk-11-jdk Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package openjdk-11-jdk
🌐
Stack Overflow
stackoverflow.com › questions › 77837624 › e-unable-to-locate-package-openjdk-11-jdk-on-dockerfile
python - E: Unable to locate package openjdk-11-jdk on dockerfile - Stack Overflow
FROM python:3.7 RUN pip install --upgrade pip RUN apt-get update && \ apt-get install -y \ openjdk-11-jdk ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/ ENV PATH=$PATH:$JAVA_HOME/bin ... Now you have to change the FROM instruction since the default image for python:3.7 is bookworm and openjdk-11-jdk is available on bullseye:
🌐
GitHub
github.com › swarmpit › swarmpit › issues › 666
Build error on Dockerfile: Package 'openjdk-11-jre-headless' has no installation candidate · Issue #666 · swarmpit/swarmpit
July 5, 2023 - #0 2.649 This may mean that the package is missing, has been obsoleted, or #0 2.649 is only available from another source #0 2.649 #0 2.656 E: Package 'openjdk-11-jre-headless' has no installation candidate ------ Dockerfile:3 -------------------- 2 | 3 | >>> RUN apt-get update && \ 4 | >>> mkdir -p /usr/share/man/man1 && \ 5 | >>> apt-get install -y ca-certificates curl openjdk-11-jre-headless libjffi-java 6 | -------------------- ERROR: failed to solve: process "/bin/sh -c apt-get update && mkdir -p /usr/share/man/man1 && apt-get install -y ca-certificates curl openjdk-11-jre-headless libjffi-java" did not complete successfully: exit code: 100 ... The build should use dependencies that are available for the latest version of debian.
Author   swarmpit
🌐
GitHub
github.com › elastic › elasticsearch › issues › 107613
Unable to locate package openjdk-11-jre-headless 7.17 ubuntu-2004-aarch64 · Issue #107613 · elastic/elasticsearch
April 18, 2024 - CI Link https://gradle-enterprise.elastic.co/s/7nh4jhoqhib7m Repro line ./gradlew :test:fixtures:geoip-fixture:composeBuild Does it reproduce? Didn't try Applicable branches 7.17 Failure history https://gradle-enterprise.elastic.co/scans...
Author   elastic
🌐
GitHub
github.com › apache › airflow › discussions › 31938
Package 'openjdk-11-jre' has no installation candidate · apache/airflow · Discussion #31938
@potiuk Thanks for pointing out! there was another docker file in the repo that contained the openjdk-11,,, i will update it to download version 17 instead! ... Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... Ah I know. You are using bookworm, released last week in the other image (maybe accidentally) https://www.debian.org/releases/bookworm/. Airflow still uses Bullseye LTS.
Author   apache
🌐
LinuxQuestions.org
linuxquestions.org › questions › linux-newbie-8 › e-unable-to-locate-package-jdk-4175617153
E: Unable to locate package Jdk
can someone help me pleaseto install jdk, i am using ubuntu 16.06LTs gervais@gervais:~ sudo apt install jdk Reading package lists... Done Building