Last active
November 13, 2018 08:37
-
-
Save james-s-tayler/71c8c5bcffc96bad5dfb to your computer and use it in GitHub Desktop.
Install oracle Java 8 on Ubuntu 14.04 and automatically accept the licence agreement. 100% hands-free install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common debconf-utils | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
sudo apt-get install -y oracle-java8-installer |
Thank you very much, works like a charm for me on Ubuntu 16.04
Above commands are not working
2018-10-17 13:17:34 ERROR 404: Not Found.
download failed
Oracle JDK 8 is NOT installed.
dpkg: error processing package oracle-java8-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java8-installer
worked for me perfectly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to install the java 8 on ubuntu the above commands(7,8) are not working