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
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: