我刚刚在vm上安装了ubuntu utopic,然后安装了java(当我第一次看到错误时都是8和7)和leiningen。当运行lein deps或lein repl时,似乎失败并出现此错误:
$ lein deps
Could not transfer artifact org.clojure:clojure:pom:1.6.0 from/to central (https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Could not transfer artifact org.clojure:tools.nrepl:pom:0.2.6 from/to central (https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Could not transfer artifact clojure-complete:clojure-complete:pom:0.2.3 from/to central (https://repo1.maven.org/maven2/): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
$ lein version
java Leiningen 2.5.0 on Java 1.7.0_65 OpenJDK 64-Bit Server VM
$ java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
我认为这是因为cacerts存在一些问题。我无法找到哪个包可能是包含java所有正确密钥的正确包。