how to install java8 in ubuntu instance using packer provisioner? -


trying build ami using packer base ami available online (preferably ubuntu 12.04 precise). looking provisioner definition java 8 installation. have coupled multiple installations , executed has went through well. but, java8 using ppa not happening following commands in definition. chef happening without troubles, want packer provisioners.

"sudo apt-get install python-software-properties", "sudo apt-add-repository ppa:webupd8team/java", "sudo apt-get install oracle-java8-installer". 

other alternatives tried :

sudo apt-get update sudo apt-get software-properties-common sudo apt-get install software-properties-common sudo add-apt-repository ppa:webupd8team/java sudo apt-get install oracle-java8-installer

reference: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html

https://askubuntu.com/questions/445536/unable-to-locate-package-add-apt-repository-error

please me provisioner definitions if u found successful implementations.

error:

root@ubuntu:/home/xyzqwerty# sudo apt-get install oracle-java8-installer reading package lists... done building dependency tree        reading state information... done e: unable locate package oracle-java8-installer 

"sudo apt-get install -y software-properties-common", "sudo add-apt-repository -y ppa:webupd8team/java", "sudo apt-get update", "echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections", "echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections", "sudo apt-get install -y oracle-java8-installer", "sudo apt-get install oracle-java8-set-default", 

got here


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo