Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package matching 'openjdk-7-jre' is available #51

Open
lmilbaum opened this issue Sep 20, 2016 · 4 comments
Open

No package matching 'openjdk-7-jre' is available #51

lmilbaum opened this issue Sep 20, 2016 · 4 comments

Comments

@lmilbaum
Copy link

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"}

@bkblain
Copy link

bkblain commented Oct 9, 2016

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.

@dothebart
Copy link

since there is no official support for java 7 anymore, why not use java 8 with this ansible plugin instead? (its readme etc)

@tersmitten
Copy link

You might want to try installing the default-(jre|jdk), see

@ghost
Copy link

ghost commented Jan 16, 2017

Thx. Switched to java 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants