Exception on download: sun.security.validator.ValidatorException: No trusted certificate found

后端 未结 1 970
迷失自我
迷失自我 2021-01-05 02:28

I\'m trying to use sbt on Ubuntu 16.04, but am getting errors when trying to run it. I did a fresh install, then followed the directions exactly from the sbt site, but get t

相关标签:
1条回答
  • 2021-01-05 03:02

    On Ubuntu, when you have the package openjdk-9-jre-headless installed, sbt can't verify its downloads because they're not signed against the OpenJDK 9 certificates. To fix this, you need to uninstall OpenJDK 9:

    $ apt-get remove openjdk-9-*
    

    Then make sure you have openjdk-8-jre-headless installed, and use update-java-alternatives to select it as the default JRE (see https://askubuntu.com/a/731862/459610 for details).

    Answer found at https://medium.com/@henricook/solution-to-sun-security-validator-validatorexception-e300dd7dba70#.wn7uh2z9q

    (Note: I'm not on an Ubuntu machine now, so I can't verify this, but: you may be able to get away with just setting the default Java to JDK 8.)

    0 讨论(0)
提交回复
热议问题