3

I need to install openjdk-8 on a docker container based on the latest python image (debian 10), but the openjdk-8-jdk package has been removed from the stable debian repository. I've already tried the usual apt-get install openjdk-8-jdk and apt-cache search openjdk only returns the openjdk-11.

1

I've managed to solve it by manually downloading the packages with wget:

RUN wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jre-headless_8u212-b03-2~deb9u1_amd64.deb \
&& wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jre_8u212-b03-2~deb9u1_amd64.deb \
&& wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jdk-headless_8u212-b03-2~deb9u1_amd64.deb \
&& wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jdk_8u212-b03-2~deb9u1_amd64.deb

and then install it using the dkpg with the -i --force-all options to install all the required dependencies:

RUN dpkg -i --force-all openjdk-8-jre-headless_8u212-b03-2~deb9u1_amd64.deb openjdk-8-jre_8u212-b03-2~deb9u1_amd64.deb openjdk-8-jdk-headless_8u212-b03-2~deb9u1_amd64.deb openjdk-8-jdk_8u212-b03-2~deb9u1_amd64.deb    
|improve this answer|||||
  • 1
    I can't download Connecting to security-cdn.debian.org (security-cdn.debian.org)|151.101.36.204|:80... connected. HTTP request sent, awaiting response... 404 Not Found – Dimitri Kopriwa Dec 22 '19 at 19:26
  • @DimitriKopriwa the packages have been updated. These are the new packages available: http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jdk_8u232-b09-1~deb9u1_amd64.deb. You can find all of them here: debian – Emil Chitas Jan 8 at 9:46
-2

openjdk is not available anymore, you can check it here You can try to download the source code and compile it.

Regards.

|improve this answer|||||
  • Your answer is not very correct. openjdk is still available for Debian 10, but only in the supported openjdk-11 version. openjdk-8 is now unsupported and not officially available in Debian 10 anymore. – GiantTree Jul 19 '19 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.