Git Product home page Git Product logo

Comments (16)

geerlingguy avatar geerlingguy commented on August 15, 2024 320

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.

chopstik avatar chopstik commented on August 15, 2024 58

@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.

dudefellah avatar dudefellah commented on August 15, 2024 7

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.

mrtnzagustin avatar mrtnzagustin commented on August 15, 2024 6

@bogdan-marian, @jdbohrman did you resolve it? happening in docker with debian here.

from ansible-role-java.

geerlingguy avatar geerlingguy commented on August 15, 2024 5

@dudefellah / @chopstik — that's exactly the solution I came to in this comment: #64 (comment)

from ansible-role-java.

Crandel avatar Crandel commented on August 15, 2024 3

Just install man

from ansible-role-java.

dvasdekis avatar dvasdekis commented on August 15, 2024 1

Just install man

Didn't work for me! Had to RUN mkdir /usr/share/man/man1/

from ansible-role-java.

geerlingguy avatar geerlingguy commented on August 15, 2024

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.

geerlingguy avatar geerlingguy commented on August 15, 2024

And installing default-jdk doesn't work either. Couldn't find an upstream bug report.

from ansible-role-java.

bogdan-marian avatar bogdan-marian commented on August 15, 2024

It is happening again in ubuntu 18.04

from ansible-role-java.

jdbohrman avatar jdbohrman commented on August 15, 2024

Same, happening to me as well.

from ansible-role-java.

Learnfr avatar Learnfr commented on August 15, 2024

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.

purvabansal avatar purvabansal commented on August 15, 2024

This is strange. What does this directory store and how did the installation work after creating it?

from ansible-role-java.

n-robert avatar n-robert commented on August 15, 2024

Thanks to @dudefellah, @chopstik!

from ansible-role-java.

msangel avatar msangel commented on August 15, 2024

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.

guoqiangqi avatar guoqiangqi commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.