How to install openjdk-8-jdk on Debian 10 (Buster)?

后端 未结 9 1446
别跟我提以往
别跟我提以往 2020-12-23 09:06

It seems Debian does not support openjdk-8-jdk anymore due to a security issue. What is the easiest way to install openjdk-8-jdk for Debian 10 (Buster)?

9条回答
  •  清歌不尽
    2020-12-23 09:49

    Package mirror search steps:

    1. In the Search package directories search for openjdk-8-jdk. You can see two results:

      • stretch (oldstable) (java): OpenJDK Development Kit (JDK)
      • sid (unstable) (java): OpenJDK Development Kit (JDK)
    2. Choose stretch repository

    3. Scroll to the Download openjdk-8-jdk section and choose your architecture. For example amd64
    4. Now you can see mirrors list and instructions how to install the package via apt:

      You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

      deb http://security.debian.org/debian-security stretch/updates main

    Installation steps:

    1. Install software source manager

      apt-get update
      apt-get install software-properties-common
      
    2. Add mirror with openjdk-8-jdk

      apt-add-repository 'deb http://security.debian.org/debian-security stretch/updates main'
      apt-get update
      
    3. Install openjdk 8

      apt-get install openjdk-8-jdk
      

    Note: You can use steps above to find an official Debian mirror with any other package you want to install

提交回复
热议问题