Open lmilbaum opened 8 years ago
openjdk-7 is not included in the default apt repo for ubuntu 16.04 which only contains java 8 and 9. You could go ahead and just use openjdk-8 instead. The alternative is to perform the following commands to install openjdk-7 on ubuntu 16.04.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk
Note that if you have already installed a different version of java you'll have to run sudo update-alternatives --config java
to change it.
since there is no official support for java 7 anymore, why not use java 8 with this ansible plugin instead? (its readme etc)
You might want to try installing the default-(jre|jdk)
, see
Thx. Switched to java 8.
AWS EC2 Ubuntu 16.04 ansible 2.2.0
failed: [50.16.73.148](item=[u'openjdk-7-jre', u'openjdk-7-jdk', u'git', u'curl']) => {"failed": true, "item": ["openjdk-7-jre", "openjdk-7-jdk", "git", "curl"], "msg": "No package matching 'openjdk-7-jre' is available"}