Comment 3 for bug 2003822

Revision history for this message
Tim H (hobti01) wrote :

Issue seems to exist if only JDK > 11 is used (i.e. JDK17 or JDK20). If JDK11 is installed ca-certificates-java succeeds

$ docker run -it --rm ubuntu:22.10
root@3427ff791ec5:/# apt update && apt install -y openjdk-17-jdk-headless
...
Setting up ca-certificates-java (20220719) ...
Exception in thread "main" java.lang.InternalError: Error loading java.security file
...
dpkg: error processing package ca-certificates-java (--configure):
 installed ca-certificates-java package post-installation script subprocess returned error exit status 1

Workaround:
apt update && apt install -y openjdk-11-jre-headless ca-certificates-java && apt remove -y openjdk-11-jre-headless && apt install -y openjdk-17-jdk-headless