Problem with installing latest java
mupsnc opened this issue · 2 comments
Hi,
I have a problem when I play the playbook on clean Ubuntu 14.04 LTS image
TASK [FGtatsuro.java : Install Java with APT] **********************************
fatal: [62.3.168.232]: FAILED! => {"cache_update_time": 1468307188, "cache_updated": false, "changed": false, "failed": true, "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'openjdk-8-jdk' -o APT::Install-Recommends=no' failed: E: Unable to correct problems, you have held broken packages.\n", "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n openjdk-8-jdk : Depends: openjdk-8-jre (= 8u91-b14-1bpo8+1) but it is not going to be installed\n Depends: openjdk-8-jdk-headless (= 8u91-b14-1bpo8+1) but it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " openjdk-8-jdk : Depends: openjdk-8-jre (= 8u91-b14-1bpo8+1) but it is not going to be installed", " Depends: openjdk-8-jdk-headless (= 8u91-b14-1bpo8+1) but it is not going to be installed"]}
It looks like some dependencies are unmet.
Michal
@mupsnc
Thank you for your report.
Unfortunately, this role doesn't support Ubuntu officially.
https://galaxy.ansible.com/FGtatsuro/java/
But FGtatsuro/ansible-java#12 may resolve the issue you have now.
Please overwrite java_apt_repositories
variable with openJDK repository for Ubuntu as follows.
java_apt_repositories:
- 'ppa:openjdk-r/ppa'
thanks.
@FGtatsuro thanks for the hint!