我使用以下说明安装sbt:
http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html
核心命令是:
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt
这些都成功了。
然后,当我第一次尝试使用sbt assembly
时,会发生以下情况:
[SUCCESSFUL ] org.scala-sbt#apply-macro;0.13.11!apply-macro.jar (1991ms)
:: problems summary ::
:::: WARNINGS
[FAILED ] org.scala-sbt#collections;0.13.11!collections.jar: Invalid TLS padding data (784ms)
[FAILED ] org.scala-sbt#collections;0.13.11!collections.jar: Invalid TLS padding data (784ms)
..
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
download failed: org.scala-sbt#collections;0.13.11!collections.jar
download failed: org.scala-sbt#incremental-compiler;0.13.11!incremental-compiler.jar
download failed: org.scala-sbt#compile;0.13.11!compile.jar
Error during sbt execution: Error retrieving required libraries
(see /home/stephen/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 0.13.11
那么......为了让sbt开心而缺少任何步骤?我在ubuntu 14.0.4.1 LTS。
答案 0 :(得分:1)
显然这是一个瞬态连接问题。等待一段时间后重新尝试sbt assembly能够下载缺少的组件然后成功。