-
-
Notifications
You must be signed in to change notification settings - Fork 456
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
Ubuntu 18.04 JDK install failing because of weird dependency issues #64
Comments
Strangest part is:
I don't see a |
And installing |
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
|
It is happening again in ubuntu 18.04 |
* customize per centos/rhel version and switch v7 to opendk8 - required for elk5 * fix small merge error * display java version at the end * ensure idempotency * newline between blocks * Test Fedora 27 instead of Fedora 24 and add Debian 9 tests. * Add Debian-9-specific settings. * Add some files missing from previous commit. * Update variable inclusion method to work correctly. * Fix Galaxy meta/main.yml to parse Debian versions correctly. * Fix deprecation warnings in Ansible 2.5 for state 'present'. * refs geerlingguy#55 - remove deprecation warnings * refs geerlingguy#55 - removed 'static' as requested * support for Ubuntu 18.04 * Fixed the case sensitive issue for Ubuntu (Resolves geerlingguy#62) * Fixes geerlingguy#61: Support Ubuntu 18.04 Bionic. * Issue geerlingguy#64: Allow failures of test build on Ubuntu 18.04. * Fixes geerlingguy#64: Test builds failing due to a Debian Stretch and Ubuntu 18.04 bug with man dir missing. * fix include_vars for Ubuntu * PR geerlingguy#43 follow-up: Remove redundant RedHat vars file. * Fix breakage for RedHat distros Some RedHat instances report `ansible_distribution` as 'RedHat', not 'Red Hat Enterprise Linux', and not detecting that was causing the vars to not be included, breaking subsequent tasks. * Only display the Java version with higher verbosity levels. * Switch tests to use Molecule. * Increase debug verbosity for java version. * Do not use loop on package module with squash_actions * Remove trailing white space to pass TravisCI check * Update tests for optimum efficiency. * Fixes geerlingguy#64: Ensure man directory exists so Docker container installs work. * Fix lint issues picked up by galaxy-lint-rules. * It fails without become: yes under role * [geerlingguyGH-74] optional java version check * [geerlingguyGH-74] no new line at end of file * PR geerlingguy#75 follow-up: Drop the unneccessary java_version check. * Remove debian8 tests as it is now failing and old. * Remove unused tests. * Update main.yml * Update role name. * Added debian 10 management. * Added Debian 10 to tests. * Add Fedora 30 to test suite.
Same, happening to me as well. |
@bogdan-marian, @jdbohrman did you resolve it? happening in docker with debian here. |
I was just getting annoyed with this in the Debian buster-slim docker image. I don't think the issue is really specific to this role (despite the fact that I didn't actually look at how this role works). In a Docker container, the manpages path isn't available since it has minimal packages installed: update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
update-alternatives: error: error creating symbolic link '/usr/share/man/man1/rmid.1.gz.dpkg-tmp': No such file or directory So if you just manually add that path, or install a package that creates that path, you should be able to avoid this problem. |
@dudefellah your suggestion worked for me - Debian within a Docker container. Just added the following to the Dockerfile before |
@dudefellah / @chopstik — that's exactly the solution I came to in this comment: #64 (comment) |
you have to remove the line "Depends: java-runtime" from ./jmx_prometheus_httpserver/src/deb/control/control and then run mvn package to rebuild a new package |
This is strange. What does this directory store and how did the installation work after creating it? |
Just install |
Didn't work for me! Had to |
Thanks to @dudefellah, @chopstik! |
For future readers: when using it with ---
- hosts: all
become: no
tasks:
.....
- name: Install Java
vars:
java_packages:
- openjdk-8-jdk
include_role:
name: geerlingguy.java
apply:
become: true # < --- this one |
Met the same issue, the soultion works ,thanks ! |
Maybe this is an upstream issue? On a barebones ubuntu1804 install, I can replicate with just running
apt-get install -y openjdk-11-jdk
Errors from apt:
The text was updated successfully, but these errors were encountered: