Score:2

ca-certificates-java error on Ubuntu 20.04

in flag

I can't install anything, it gives this error on every installation

Setting up ca-certificates-java (20190405ubuntu1) ... 
head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory Error occurred during initialization of boot layer
java.lang.NoClassDefFoundError: ja~a/io/File$PathStatus (wrong name:
java/io/Fil e$PathStatus) dpkg: error processing package
ca-certificates-java (--configure):  installed ca-certificates-java
package post-installation script subprocess retu rned error exit
status 1 Processing triggers for ca-certificates (20210119~20.04.1)
... Updating certificates in /etc/ssl/certs... 0 added, 0 removed;
done. Running hooks in /etc/ca-certificates/update.d...
 
Error occurred during initialization of boot layer
java.lang.NoClassDefFoundError: ja~a/io/File$PathStatus (wrong name:
java/io/Fil e$PathStatus) E:
/etc/ca-certificates/update.d/jks-keystore exited with code 1. done.
Errors were encountered while processing:  ca-certificates-java E:
Sub-process /usr/bin/dpkg returned an error code (1)

I tried dpkg --force-depends --configure ca-certificates-java but couldnt solve the issue

Score:0
zw flag

You are probably have to recreate removed directory by

sudo mkdir /etc/ssl/certs/java/

and then reinstall packages which have files in the above directory by

sudo apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss" --reinstall ca-certificates-java ssl-cert openssl ca-certificates
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.