I have an Ubuntu installation with Oracle JDK 1.8.0_141 that was installed using this guide.
tar file was extracted to
/opt/jdk and below commands used to set
java as default.
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_05/bin/java 100 update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_05/bin/javac 100
java -version command works fine after these have been completed, but when I try to install
apt-get it tries to install
default-jre rather than using this installed version.
Do you have any idea how I can change this default behavior?