Comments (16)
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
I had the same issue and solved it using
mkdir -p /usr/share/man/man1
before installing openjdk-8-jre-headless
from ansible-role-java.
@dudefellah your suggestion worked for me - Debian within a Docker container. Just added the following to the Dockerfile before apt-get
:
RUN mkdir /usr/share/man/man1/
from ansible-role-java.
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.
from ansible-role-java.
@bogdan-marian, @jdbohrman did you resolve it? happening in docker with debian here.
from ansible-role-java.
@dudefellah / @chopstik — that's exactly the solution I came to in this comment: #64 (comment)
from ansible-role-java.
Just install man
from ansible-role-java.
Just install
man
Didn't work for me! Had to RUN mkdir /usr/share/man/man1/
from ansible-role-java.
Strangest part is:
Package java8-runtime-headless is not installed.
I don't see a java8-runtime-headless
package or virtual package anywhere...
from ansible-role-java.
And installing default-jdk
doesn't work either. Couldn't find an upstream bug report.
from ansible-role-java.
It is happening again in ubuntu 18.04
from ansible-role-java.
Same, happening to me as well.
from ansible-role-java.
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
I have the same issue because I use openjdk and not oracle jvm
from ansible-role-java.
This is strange. What does this directory store and how did the installation work after creating it?
from ansible-role-java.
Thanks to @dudefellah, @chopstik!
from ansible-role-java.
For future readers: when using it with include_role
task and you got this error still, it may be that globally you have become: no
while this role requires yes
. Solution: override become
just for this task:
---
- hosts: all
become: no
tasks:
.....
- name: Install Java
vars:
java_packages:
- openjdk-8-jdk
include_role:
name: geerlingguy.java
apply:
become: true # < --- this one
from ansible-role-java.
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
I had the same issue and solved it using
mkdir -p /usr/share/man/man1
before installing openjdk-8-jre-headless
Met the same issue, the soultion works ,thanks !
from ansible-role-java.
Related Issues (20)
- Installing this with ansible-galaxy fails on certificate issue HOT 1
- Add OracleLinux distribution HOT 3
- Centos7 Issue HOT 2
- Ubuntu vagrant box support HOT 3
- Role needs ability to check and ensure a specific version of JDK is installed HOT 2
- Fix ansible-lint issue HOT 3
- Ubuntu 20.04 - openjdk-8 installs openjdk-11 HOT 1
- For people wanting jps support
- openjdk-11-jdk on Ubuntu 20.04 Focal Fossa LTS HOT 2
- Code style HOT 1
- Java 11 is available on Red Hat/CentOS 7
- Ensure Java is installed: install 'openjdk-11-jdk'' failed HOT 2
- man directory task always changed on Ubuntu 20.04 HOT 5
- Add Red Hat 9 (rockylinux9) support
- Feature: Need Amazon Linux 2 inclusion in supported OS list HOT 2
- uninstall the openjdk ubuntu in virtualmachine HOT 3
- Feature suggestion: add root certificates to truststore HOT 3
- geerlingguy.java was NOT installed successfully: Unable to compare role versions HOT 3
- no java packages installed on Oracle Linux HOT 2
- SyntaxError: future feature annotations is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-java.