You are not logged in.

#1 2021-03-18 11:17

MrLuke
Member
Registered: 2021-03-18
Posts: 2

Installing java with terminal gives me an error

Full terminal output:

gagaga@gaga-pc:~$ sudo apt-get install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openjdk-8-jdk
gagaga@gaga-pc:~$                       

It seems like such a simple task, yet it just doesn't seem to function properly. Any suggestions are welcome and thank you in advance.

Offline

#2 2021-03-18 13:26

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 4,257
Website

Re: Installing java with terminal gives me an error

Package "openjdk-8-jdk" doesn't exist in Debian repositories, you may want to install "openjdk-11-jdk" instead.
$ sudo apt install openjdk-11-jdk

Offline

#3 2021-03-18 13:37

MrLuke
Member
Registered: 2021-03-18
Posts: 2

Re: Installing java with terminal gives me an error

q4osteam wrote:

Package "openjdk-8-jdk" doesn't exist in Debian repositories, you may want to install "openjdk-11-jdk" instead.
$ sudo apt install openjdk-11-jdk

Thank you very much, seems like this had a very simple solution haha.

Offline

Board footer

Powered by FluxBB