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

install fails on java/cacerts error #19

Open
gerhardqux opened this issue Nov 4, 2024 · 0 comments · May be fixed by #20
Open

install fails on java/cacerts error #19

gerhardqux opened this issue Nov 4, 2024 · 0 comments · May be fixed by #20

Comments

@gerhardqux
Copy link

A basic install fails on all environments:

57.29 Setting up ca-certificates-java (20190405) ...
57.36 head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
57.49 Exception in thread "main" java.lang.InternalError: Error loading java.security file
57.49 	at java.base/java.security.Security.initialize(Security.java:94)
57.49 	at java.base/java.security.Security$1.run(Security.java:79)
57.49 	at java.base/java.security.Security$1.run(Security.java:77)
57.49 	at java.base/java.security.AccessController.doPrivileged(Native Method)
57.49 	at java.base/java.security.Security.<clinit>(Security.java:77)
57.49 	at java.base/sun.security.jca.ProviderList.<init>(ProviderList.java:176)
57.50 	at java.base/sun.security.jca.ProviderList$2.run(ProviderList.java:94)
57.50 	at java.base/sun.security.jca.ProviderList$2.run(ProviderList.java:92)
57.50 	at java.base/java.security.AccessController.doPrivileged(Native Method)
57.50 	at java.base/sun.security.jca.ProviderList.fromSecurityProperties(ProviderList.java:91)
57.50 	at java.base/sun.security.jca.Providers.<clinit>(Providers.java:54)
57.50 	at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:156)
57.50 	at java.base/java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:193)
57.50 	at org.debian.security.KeyStoreHandler.<init>(KeyStoreHandler.java:50)
57.50 	at org.debian.security.UpdateCertificates.<init>(UpdateCertificates.java:65)
57.50 	at org.debian.security.UpdateCertificates.main(UpdateCertificates.java:51)
57.50 dpkg: error processing package ca-certificates-java (--configure):
57.50  installed ca-certificates-java package post-installation script subprocess returned error exit status 1

Installing ca-certificates-java before anything else, as suggested by https://stackoverflow.com/questions/61305727/head-cannot-open-etc-ssl-certs-java-cacerts-for-reading-no-such-file-or-dir seems to fix this. I'll create a PR...

gerhardqux added a commit to gerhardqux/protrait_fairifier2 that referenced this issue Nov 4, 2024
@gerhardqux gerhardqux linked a pull request Nov 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant