-
E: Unable to locate package openjdk-8-jdk 해결삽질모음/에러해결 2021. 3. 30. 16:24
ubuntu 환경에서 java를 설치하려고 하니 처음 만나는 에러는 ,,
계속해서 찾아보니 위치 때문인걸 알게되었다😭 많은 사람들에게 도움이 되길 바라며 올려봅니다
cd /usr/local/bin
/usr/local/bin 으로 들어간 후,
java -version
을 쳤을 때, java 버전이 안나온다면 java가 깔리지 않았다는 것이므로 설치를 진행 할 수 있다.
sudo apt-get update
모든 리포지토리 및 PPA에 대한 패키지 목록을 가져 와서 최신 상태인지 확인하는 명령어를 실행 시킨 후,
sudo apt-get install openjdk-8-jdk
java를 설치하면 정상적으로 설치되는 것을 볼 수 있다.
성공적으로 설치 후,
아래 명령어를 쳐봤을 때, 버전이 제대로 나온다면 설치 완료😀
java -version
참조
https://docs.datastax.com/en/jdk-install/doc/jdk-install/installOpenJdkDeb.html
https://www.cyberciti.biz/faq/what-does-sudo-apt-get-update-command-do-on-ubuntu-debian/'삽질모음 > 에러해결' 카테고리의 다른 글
java: cannot access org.springframework.boot.SpringApplication (0) 2023.01.28 AWS Error Code: SignatureDoesNotMatch 해결방법 (0) 2022.05.02