I got this error in Ubuntu. I saw that
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts
was a broken link to /etc/ssl/certs/java/cacerts. That lead me to this bug:
https://bugs.launchpad.net/ubuntu/+source/ca-certificates-java/+bug/983302
The README for ca-certificates-java eventually showed the actual fix:
run
update-ca-certificates -f
apt-get install ca-certificates-java didn’t work for me. It just marked it as manually installed.