had the same problem too.. but i solved it with these commands:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
Answer from Chris on askubuntu.comjava - How to install specific openjdk version in Ubuntu 16.04? - Stack Overflow
How do I install java 16 so my kids and friends can get on our old 1.16.5 Minecraft server?
Failed to install the JDK on Ubuntu 16.04 LTS
Problem installing openjdk-11-jdk
Videos
had the same problem too.. but i solved it with these commands:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jre
The one I did on 16.04 was:
For OpenJDK 8.X
sudo apt install openjdk-8-jre
For OpenJDK 9.X
sudo apt install openjdk-9-jre
Note: There was no openjdk-6-jre nor openjdk-7-jre for me on Ubuntu 16.04. Also there is NO need to install Oracle JDK (Actually OpenJDK is much better than Oracle one for me).
Compiled answer by myself:
Get fresh link from: https://jdk.java.net/14/
Download binary:
wget https://download.java.net/java/GA/jdk14.0.2/205943a0976c4ed48cb16f1043c5c647/12/GPL/openjdk-14.0.2_linux-x64_bin.tar.gz
Unpack it:
tar xvf openjdk-14.0.2_linux-x64_bin.tar.gz
Move to jvm folder:
mv jdk-14.0.2 /usr/lib/jvm
Update java and javac alternatives:
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk-14.0.2/bin/javac" 3
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk-14.0.2/bin/java" 3
update-alternatives --set "javac" "/usr/lib/jvm/jdk-14.0.2/bin/javac"
update-alternatives --set "java" "/usr/lib/jvm/jdk-14.0.2/bin/java"
Use to switch between versions:
update-alternatives --config java
sudo apt-get install openjdk-14-jdk
I don't understand why they make packages inaccessible. I know they're not secure I have firewalls.... why does life have to be so hard? :) :) :) :(