Last active
July 2, 2020 07:55
-
-
Save dreampuf/f911d39b0548126846df32d1e0d4b440 to your computer and use it in GitHub Desktop.
Install JDK8 on Jessie in 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > /etc/apt/sources.list.d/openjdk.list <<"EOF" | |
deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main | |
EOF | |
apt-get update | |
apt install -t jessie-backports openjdk-8-jdk | |
update-alternatives --config java # select java1.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how to update the legacy key of repositories: