Bug Report: Installing ant into 8.0 container no longer works
peterb-oanda opened this issue · 0 comments
Note: We also welcome PRs to fix bugs! This helps us take action faster where a bug has been identified!
For our official CircleCI Docker Convenience Image support policy, please see CircleCI docs.
This policy outlines the release, update, and deprecation policy for CircleCI Docker Convenience Images.
Describe the bug
When trying to install the ant
package into the cimg/openjdk:8.0
image it results in the following error:
dpkg: dependency problems prevent configuration of openjdk-11-jre-headless:amd64:
openjdk-11-jre-headless:amd64 depends on ca-certificates-java (>= 20190405~); however:
Package ca-certificates-java is not configured yet.
dpkg: error processing package openjdk-11-jre-headless:amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
Exception in thread "main" java.io.FileNotFoundException: /etc/ssl/certs/java/cacerts (Is a directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:63)
at org.debian.security.KeyStoreHandler.<init>(KeyStoreHandler.java:52)
at org.debian.security.UpdateCertificates.<init>(UpdateCertificates.java:65)
at org.debian.security.UpdateCertificates.main(UpdateCertificates.java:51)
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
This appears to be the result of this change: https://github.com/CircleCI-Public/cimg-openjdk/pull/181/files#diff-f12575bad558ce63d4af0954d08b6016d906c38fb1624dfaf9aa75963dbf1b54R36
To Reproduce
$ docker run -it cimg/openjdk:8.0
circleci@14f2477df6f4:~/project$ sudo apt-get update && sudo apt-get install -y ant
Expected behavior
The ant
package used to install on 8.0.362 tag of the container, it was expected that should still work on the updated version
Workarounds
Currently we are using the 8.0.362
tag explicitly to work around the change that broke this
Screenshots and Build Links
If possible, add screenshots and links to jobs to help explain your problem.
Additional context
Add any other context about the problem here.