티스토리 뷰

Dev/Server

Ubuntu 18.04 Open jdk 11 설치

Alxndr 2020. 9. 29. 09:50

안녕하세요.

Ubuntu 18.04에 Java 11을 설치해보도록 하겠습니다.

  • Ubuntu terminal

    $sudo apt install openjdk-11-jdk
    $java -version
    openjdk version "11.0.8" 2020-07-14
    OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
    OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
  • 아래와 같은 에러가 나면 시도해세요.

    Err:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libx11-dev amd64 2:1.6.4-3ubuntu0.2
    404  Not Found [IP: 91.189.88.142 80]
    Err:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libx11-doc all 2:1.6.4-3ubuntu0.2
    404  Not Found [IP: 91.189.88.142 80]
    Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libnss3 amd64 2:3.35-2ubuntu2.11
    404  Not Found [IP: 91.189.88.142 80]
    E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/n/nss/libnss3_3.35-2ubuntu2.11_amd64.deb  404  Not Found [IP: 91.189.88.142 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-dev_1.6.4-3ubuntu0.2_amd64.deb  404  Not Found [IP: 91.189.88.142 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-doc_1.6.4-3ubuntu0.2_all.deb  404  Not Found [IP: 91.189.88.142 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
$sudo apt update

하고 다시 시도해보시기 바랍니다.

  • 설치 확인
    $java -version

위 사진처럼 버전이 올바르게 표시된다면 설치 성공입니다.

감사합니다.


'Dev > Server' 카테고리의 다른 글

Why Kafka is fast?  (2) 2022.10.08
Nginx Spring boot 연동 (reverse proxy)  (0) 2020.10.04
Install Nginx on Ubuntu 18.04  (0) 2020.09.29
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함