Install openjdk8 di Debian 8

Cara mengintsall openjd8k di Linux Debian 8

Pertama menambah sourcelist terlebih dahulu. jalankan perintah berikut :

echo “deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main” > /etc/apt/sources.list.d/jessie.list
echo “deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main” > /etc/apt/sources.list.d/jessie-backports.list
sed -i ‘/deb http:\/\/deb.debian.org\/debian jessie-updates main/d’ /etc/apt/sources.list
apt-get -o Acquire::Check-Valid-Until=false update

Setelah semua selsai dan tidak ada error, maka jalankan perintah :

  1. install ca-certs from backports
  2. install jre and jdk + headless as a second command

    sudo apt install -t jessie-backports ca-certificates-java
    sudo apt-get -y install openjdk-8-jdk openjdk-8-jre openjdk-8-jdk-headless openjdk-8-jre-headless

Posted on: November 24, 2020, by :