Welcome! Log In Create A New Profile

Advanced

Java JRE & JDK wont install because cacerts is missing

Posted by BobM 
Java JRE & JDK wont install because cacerts is missing
August 15, 2021 11:52AM
Has anyone solved this error message

Quote
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory

Which I get when installing Java on a Pogo V4 (standard and mobile) running Bodhi's Debian builds.

There is an outstanding issue for it here:
https://github.com/adoptium/installer/issues/105

and the fixes that are widely touted don't seem to work for me. I want the JRE to try the bubble upnp server which runs in a java environment. This is because the Gerbera equivalent has no security and I want to try and access my media server remotely.

Any thoughts?
Re: Java JRE & JDK wont install because cacerts is missing
August 16, 2021 03:38AM
My thoughts (given my extreme hatred of anything java) are to find another server. :-) Having said that, I've fought this cacerts problem multiple times when trying to install the latest JRE without ever finding a solution (adding to my hatred of java). What I did finally get to work was installing an older version. I don't remember exactly what I did, but checking my history it appears I issued these commands:
wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jdk_8u292-b10-0+deb9u1_armel.deb
wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jdk-headless_8u292-b10-0+deb9u1_armel.deb
wget http://ftp.us.debian.org/debian/pool/main/j/java-common/java-common_0.58+deb9u1_all.deb
wget http://ftp.us.debian.org/debian/pool/main/j/java-common/default-jre_1.8-58+deb9u1_armel.deb
wget http://ftp.us.debian.org/debian/pool/main/j/java-common/default-jre-headless_1.8-58+deb9u1_armel.deb
wget http://ftp.us.debian.org/debian/pool/main/c/ca-certificates-java/ca-certificates-java_20170929~deb9u3_all.deb
wget http://security.debian.org/debian-security/pool/updates/main/o/openjdk-8/openjdk-8-jre-headless_8u292-b10-0+deb9u1_armel.deb
dpkg -i java-common_0.58+deb9u1_all.deb
dpkg -i openjdk-8-jdk-headless_8u292-b10-0+deb9u1_armel.deb
dpkg -i openjdk-8-jdk_8u292-b10-0+deb9u1_armel.deb
dpkg -i default-jre_1.8-58+deb9u1_armel.deb
dpkg -i default-jre-headless_1.8-58+deb9u1_armel.deb
dpkg -i ca-certificates-java_20170929~deb9u3_all.deb
dpkg -i openjdk-8-jre-headless_8u292-b10-0+deb9u1_armel.deb
apt-get install libxi6
java -version
I culled the above from my bash history, so I can't be sure whether it's all necessary or complete or if I got the order correct. I thought about trying to install java on one of my Pogos, but to be honest I don't want to infect any more of my systems than absolutely necessary.
Re: Java JRE & JDK wont install because cacerts is missing
August 19, 2021 07:28PM
Thanks RenoJim. Been tied up this week but first go this evening gave file not found errors on the wgets. You have given me an idea however so I will try a few more things to pull the files manually. Appreciate Java isn't a great option but so far Bubble UPNP Server is the only solution I have found so far to make my UPNP server visible outside of my network. I may just have to find a way of using SMB shares to access the files and give up on the media database.
Re: Java JRE & JDK wont install because cacerts is missing
August 19, 2021 08:20PM
Hi Bob,

> Appreciate Java isn't a great option but so far
> Bubble UPNP Server is the only solution I have
> found so far to make my UPNP server visible
> outside of my network.

I don't recall doing anything extra other than install some standard Debian uPnP packages.

I've closed my network to outside world (i.e. disable uPnP at the router) now so cannot check for you. Not sure why you need Java.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Java JRE & JDK wont install because cacerts is missing
August 20, 2021 04:40AM
Well, I am using BubbleUPNP as an Android client and I found they had a server - https://www.bubblesoftapps.com/bubbleupnpserver2/ but it seems that the coding for it is under Java using the JRE. Thats started me down a new road with a whole new can of beans. Was hoping to just open the server up and use it as the buffer to the Gerbera Upnp database and files..Back to the drawing board and my battle to compile the latest Gerbera-1.9.0!

Cheers - Bob
Frank Banul
Re: Java JRE & JDK wont install because cacerts is missing
December 15, 2021 07:27PM
I'm hitting this today trying to build owntone. It requires antlr3 which somehow ends up requiring ca-certificates-java.

I tried copying /etc/ssl/certs/java/cacerts from another Debian system but that only eliminated the first error message, surprisingly, the rest seem to be the same.
Frank Banul
Re: Java JRE & JDK wont install because cacerts is missing
December 15, 2021 07:57PM
It seems ca-certificates-java not installing is a by product of java crashing.

root@dockstar3:~/owntone-server# java
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_linux_zero.cpp:267), pid=1946, tid=1947
# fatal error: caught unhandled signal 11
#
# JRE version: (11.0.13+8) (build )
# Java VM: OpenJDK Zero VM (11.0.13+8-post-Debian-1deb11u1, interpreted mode, serial gc, linux-arm)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /root/owntone-server/hs_err_pid1946.log
#
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted
Re: Java JRE & JDK wont install because cacerts is missing
December 16, 2021 10:55AM
I've still not found a solution to this Frank - lots of bug reports but no method for fixing. Java JRE & JDK do not want to install on Buster or Bullseye. I wanted the JRE so I could run a bubble server to get access to my Gerbera upnp server (I have now compiled 1.9.2 succesfully and plan to update my instructions for 1.8.x). Not heard of OwnTone before so will do some research.

In the meantime, if anyone out there has succesfully installed the latest JRE on these boxes or has a solution for remote access of upnp then please let us know.

Regards - Bob
Frank Banul
Re: Java JRE & JDK wont install because cacerts is missing
December 16, 2021 03:23PM
Thanks Bob.

UPNP can be done with Twonky (not open source though).

Is cross compiling an option? For owntone, I'm fairly confident it does not require java at run time.
Re: Java JRE & JDK wont install because cacerts is missing
December 16, 2021 06:27PM
Unfortunately for me, cross compiling doesn't help - Bubble server is a jave app which runs in JDK or JRE. It's used to allow secure remote access to a dlna / upnp server and works with the bubble media player app. A good option for upnp server is gerbera as it's pretty lightweight and runs happily on NAS and pogo boxes with the added bonus of being free. Good thought though - Bob
Re: Java JRE & JDK wont install because cacerts is missing
December 28, 2021 08:26AM
Hi Frank - thought I would give Owntone a whirl and the stock version that was in my apt libraries was only one minor rev of the the git version. Seemed to work ok on my Pogo Kirkwood box - very quick and easy to set up and the catalog of my music library went through fairly quickly. The only headache for me is that we don't use Apple and itunes here so I need a music player that supports the daap protocol and there is no video support. If you aren't dependent on itunes then why not give Gerbera a whirl which is a UPnP media server which runs comfortably on kirkwood and oxnas platforms and using bubble server I can even remote access my music library. Regards - Bob
Re: Java JRE & JDK wont install because cacerts is missing
December 28, 2021 02:53PM
Does wget from https work at all?
ex.:
cd /tmp
wget https://ftp.debian.org/debian/README


Check my thread, I was unable to install openssl from the default US repo mirror:
https://forum.doozan.com/read.php?2,127079,127224#msg-127224



Edited 1 time(s). Last edit at 12/28/2021 02:54PM by davidalfa.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: