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
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 c5:/# apt update && apt install -y openjdk- 17-jdk- headless -java (20220719) ... InternalError: Error loading java.security file -java (--configure): -java package post-installation script subprocess returned error exit status 1
root@3427ff791e
...
Setting up ca-certificates
Exception in thread "main" java.lang.
...
dpkg: error processing package ca-certificates
installed ca-certificates
Workaround: 11-jre- headless ca-certificates -java && apt remove -y openjdk- 11-jre- headless && apt install -y openjdk- 17-jdk- headless
apt update && apt install -y openjdk-