1
I'm simply trying to install the oracle-java8-installer package in order to install JAVA 8 on my debian server.
No idea why, I get the following output:
root@vps:~# sudo apt-get install oracle-java8-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package oracle-java8-installer
Any idea what could have gone wrong?
You can also install openjdk-8 from the jessie-backports archive. – GiantTree – 2019-06-15T09:41:01.353
Thanks. my goal is to install Java 8. if I run
sudo apt-get install openjdk-7-jdk
java 7 is installed, I could not find a way to install java 8. any idea? – TheUnreal – 2019-06-15T10:09:34.703@GiantTree How I can do this? – TheUnreal – 2019-06-15T10:10:23.007
1
@TheUnreal it is more complicated now than it was some time ago. The easiest solution would be to install a modern Debian version (Stretch/9 now and Buster/10 in a few weeks). On Debian 8 activate the jessie-backports like here: https://unix.stackexchange.com/a/508840 and then install openjdk-8-jdk from there (using
– GiantTree – 2019-06-15T10:37:02.890apt install -t jessie-backports openjdk-8-jdk
).