Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Installing ant into 8.0 container no longer works #182

Open
peterb-oanda opened this issue Nov 8, 2023 · 0 comments
Open

Bug Report: Installing ant into 8.0 container no longer works #182

peterb-oanda opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@peterb-oanda
Copy link

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.

@peterb-oanda peterb-oanda added the bug Something isn't working label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant