Fails to install default-jre

Hi Robert,

I have problems with installing java runtime:
apt-get install default-jre

on BBBw (4.19.50-ti-r20)

It actually fails on ca-certificates-java

/var/lib/dpkg/info/ca-certificates-java.postinst: line 88:  7542 Done                    find /etc/ssl/certs -name \*.pem
      7543                       | while read filename; do
    alias=$(basename $filename .pem | tr A-Z a-z | tr -cs a-z0-9 _); alias=${alias%*_}; if [ -n "$FIXOLD" ]; then
        echo "-${alias}"; echo "-${alias}_pem";
    fi; echo "+${filename}";
done
      7544 Aborted                 | java -Xmx64m -jar $JAR -storepass "$storepass"
dpkg: error processing package ca-certificates-java (--configure):
 installed ca-certificates-java package post-installation script subprocess returned error exit status 134
Processing triggers for ca-certificates (20190110) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Errors were encountered while processing:
 ca-certificates-java
E: Sub-process /usr/bin/dpkg returned an error code (1)

Tried a few methods posted on web, but there is no real solution.

Thank you,

David

Is this on Stretch, Buster, or Bullseye?

Regards,

It’s Buster 10:

PRETTY_NAME=“Debian GNU/Linux 10 (buster)”
NAME=“Debian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“https://www.debian.org/support
BUG_REPORT_URL=“https://bugs.debian.org/

Best Regards,
David

Hi Robert,

It seems that it is installed with the following commands:

sudo mv /var/lib/dpkg/info/ca-certificates-java.postinst /var/lib/dpkg/info/ca-certificates-java.postinst.bac
sudo apt-get purge ca-certificate-java
sudo apt-get install -f

Best Regards,

David