From 4a940794e24a29e383b281f8f3048a52d52f48c7 Mon Sep 17 00:00:00 2001 From: Kaimbacher Date: Wed, 29 Jun 2022 12:30:10 +0000 Subject: [PATCH] Update 'Installation Java 8 JDK & Jetty 9' --- Installation-Java-8-JDK-%26-Jetty-9.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Installation-Java-8-JDK-%26-Jetty-9.md b/Installation-Java-8-JDK-%26-Jetty-9.md index 6089bfc..c3729f3 100644 --- a/Installation-Java-8-JDK-%26-Jetty-9.md +++ b/Installation-Java-8-JDK-%26-Jetty-9.md @@ -1,8 +1,12 @@ # Step 1: Install Java ``` -wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add - -sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ +curl -fsSL https://packages.adoptium.net/artifactory/api/gpg/key/public | sudo gpg --dearmor -o /usr/share/keyrings/artifactory.gpg.public + +echo "deb [signed-by=/usr/share/keyrings/artifactory.gpg.public] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | sudo tee /etc/apt/sources.list.d/adoptium.list +Antwort: +deb [signed-by=/usr/share/keyrings/artifactory.gpg.public] https://packages.adoptium.net/artifactory/deb jammy main + sudo apt update sudo apt install adoptopenjdk-8-hotspot sudo update-alternatives --config java