Search code examples
javapythondockerdebiandebian-buster

Unable to install openjdk-13-jdk-headless=13~30-1 using base image debian:buster


Unable to install openjdk-13-jdk-headless=13~30-1 using base image debian:buster

Reading package lists... + apt-get install -y --no-install-recommends openjdk-13-jdk-headless=13~30-1 Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package openjdk-13-jdk-headless

Please help


Solution

  • OpenJDK 13 is not available from the "buster" repo. It is only available in "bullseye" (testing) and "sid" (unstable).

    (See https://packages.debian.org/search?keywords=openjdk-13)

    Alternatively, you can download an OpenJDK Java 13 binary release as a "tar.gz" file from https://jdk.java.net/archive/ and install from that.

    Note that Java 13 is now superseded, and will be end-of-life in September 2020.