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