<div dir="ltr">Package: ca-certificates-java<br>Version: 20140324<br>X-Debbugs-CC: <a href="mailto:admwiggin@gmail.com">admwiggin@gmail.com</a><br><br>I am having an issue on sid where ca-certificates-java does not find java when using jdk 8, thus leaving the '/etc/ssl/certs/java/cacerts' uncreated.<br><br>Here is the command I run on a fresh system (technically a docker container, but that is unrelated):<br>$ apt-get update && apt-get install openjdk-8-jdk='8u40~b09-1'<br><br>Here is the truncated output:<br>Setting up ca-certificates-java (20140324) ...<br>/var/lib/dpkg/info/ca-certificates-java.postinst: line 53: java: command not found<br>/var/lib/dpkg/info/ca-certificates-java.postinst: line 66: java: command not found<br>done.<br><br>I have made a patch of minimal changes (since you may want to tweak the ordering) to add java-8 to the search paths.<br><br>*** <a href="http://postinst.in">postinst.in</a> 2015-01-19 10:31:22.523025381 -0800<br>--- <a href="http://postinst-new.in">postinst-new.in</a> 2015-01-19 10:32:18.909532328 -0800<br>*************** nsslib_name()<br>*** 27,32 ****<br>--- 27,33 ----<br>Â setup_path()<br>Â {<br>Â Â Â for jvm in java-6-openjdk-$arch java-6-openjdk \<br>+ Â Â Â Â Â Â Â Â java-8-openjdk-$arch java-8-openjdk \<br>Â Â Â Â Â Â Â Â Â java-7-openjdk-$arch java-7-openjdk java-6-sun; do<br>Â Â Â if [ -x /usr/lib/jvm/$jvm/bin/java ]; then<br>Â Â Â Â Â break<div><br></div><div>Here is related discussion:</div><div><a href="https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1396760">https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/1396760</a><br></div><div><a href="https://github.com/docker-library/java/issues/19">https://github.com/docker-library/java/issues/19</a></div><div><br></div><div>Thanks,</div><div>Joe Ferguson</div><div><br></div><div>(thanks to @tianon for his guidance in making this report)Â </div></div>