SBT 0.13.9 launcher won't resolve SBT
See original GitHub issueI downloaded sbt as described on the download page and installed it on an OS that has never seen SBT before. It then has trouble resolving itself when started in an empty folder. This is not a problem with getting a project to work or using sbt.
sudo apt-get install sbt
works but sbt
subsequently doesn’t
Here’s how the error looks:
tormod@tormod-desktop:~$ sbt
Getting org.scala-sbt sbt 0.13.9 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.9
==== local: tried
/home/tormod/.ivy2/local/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml
-- artifact org.scala-sbt#sbt;0.13.9!sbt.jar:
/home/tormod/.ivy2/local/org.scala-sbt/sbt/0.13.9/jars/sbt.jar
==== jcenter: tried
https://jcenter.bintray.com/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.pom
-- artifact org.scala-sbt#sbt;0.13.9!sbt.jar:
https://jcenter.bintray.com/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.pom
-- artifact org.scala-sbt#sbt;0.13.9!sbt.jar:
https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.9: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://jcenter.bintray.com/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.pom
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://jcenter.bintray.com/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.jar
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.pom
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.jar
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;0.13.9: not found
Error during sbt execution: Error retrieving required libraries
(see /home/tormod/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.9
I’ve installed 0.13.5 and it’s problem-free so far.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
sbt build failed - module not found: org.scala-sbt#sbt;0.13.5
Try to install ssl certificates. You can try using the command below. It helped me to solve the same issue. (Ubuntu 15.04)
Read more >SBT 0.13.9 fail: java.lang.ClassNotFoundException
In the process I went from sbt 0.13.8 to 0.13.9. Now many of my projects won't build unless I add a file root/project/build.properties...
Read more >sbt/sbt - Gitter
@jsuereth Is there a way that I can turn cached resolution off just when I deal with universal:* ... root@:~# sbt package Getting...
Read more >sbt Reference Manual — Combined Pages
Ultimately, the installation of sbt boils down to a launcher JAR and a shell script, ... By the time of Josh's departure in...
Read more >sbt 0.13.6 is released!
However, we recommend you update the [launcher][2] for 0.13.6 because of the HTTPS fixes. If you installed sbt via another means, e.g. via...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The root cause is a conflict between openjdk-11-jdk (which is default in Ubuntu 18.04) and sbt packages settings. It has already been fixed in Debian and will be included in Ubuntu shortly. Meanwhile the simplest workaround is to demote your java to version 8. Other solutions employing
ca-certificates-java
are much more complicated.First remove conflicting packages:
Check weather you successfully removed all related packages by:
The system shall prompt you there is no Java available to config, otherwise this workaround fails.
Then reinstall required packages:
Test by:
I tried updating ca-certificates mentioned above but it did not fix the issue.
Server access Error: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.13/sbt-0.13.13.jar
Is there anything I can try to fix this?