ubuntuํ๊ฒฝ์์ java์ค์น
-
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๋ฅผ ์ค์นํ๋ฉด ์ ์์ ์ผ๋ก ์ค์น๋๋ ๊ฒ์ ๋ณผ ์ ์๋ค. ์ฑ๊ณต์ ์ผ๋ก ์ค์น ํ, ์๋ ๋ช ๋ น์ด๋ฅผ ์ณ๋ดค์ ๋, ๋ฒ์ ์ด ์ ๋๋ก ๋์จ๋ค๋ฉด ์ค์น ..