【问题标题】:Installing SBT on Ubuntu - Module not found在 Ubuntu 上安装 SBT - 找不到模块
【发布时间】:2014-07-21 15:27:21
【问题描述】:

我正在尝试使用此处提供的 DEB:http://www.scala-sbt.org/0.13.2/docs/Getting-Started/Setup.html 在 Ubuntu 12.04 上安装 SBT。

在运行 sbt 之后,我得到了错误:

Getting org.scala-sbt sbt 0.13.0 ...

:: problems summary ::
:::: WARNINGS
        module not found: org.scala-sbt#sbt;0.13.0

    ==== local: tried

      /root/.ivy2/local/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml

    ==== sbt-releases-repo: tried

      http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml

    ==== sbt-plugins-repo: tried

      http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.scala-sbt/sbt/0.13.0/ivys/ivy.xml

    ==== maven-central: tried

      http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.0/sbt-0.13.0.pom

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.scala-sbt#sbt;0.13.0: not found

        ::::::::::::::::::::::::::::::::::::::::::::::

并检查 update.log:

java.lang.RuntimeException: not found
    at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:238)
    at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:292)
...

Error during sbt execution: Error retrieving required libraries
    at xsbt.boot.Pre$.error(Pre.scala:26)
    at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:105)

有什么帮助吗?

谢谢

【问题讨论】:

  • 这只是回购的一个普遍问题,现在应该可以工作了
  • @lpiepiora 确实!正在工作,谢谢!

标签: scala maven sbt


【解决方案1】:

我的上下文是在 14.04 上安装 apache-spark,但我遇到了类似的问题。其他人在另一个帖子中提供了答案:

sudo apt-get -y install ca-cacert

之后它对我有用。

【讨论】:

    【解决方案2】:

    嗯,与 0.13.5 相同的问题,出了点问题,可能 SBT 已从存储库中删除或移动。我有常春藤缓存 0.13.0 和 0.13.1 版本,尝试 将archive提取到

    ~/.ivy2/cache/org.scala-sbt/sbt/
    

    ~/.ivy2/local/org.scala-sbt/sbt/
    

    希望对你有帮助

    【讨论】:

    • 您不应该在 SO 上使用缩小的 URL。此外,鉴于这是类型安全回购服务器上的一个问题,并且您已将缩小的 url 指向云存储,您的答案并不是很有用。将其替换为直接网址。有关在 SO 上使用 URL 缩短器的信息,请参阅 this Meta discussion
    • 链接已修复。是的,我的回答不是很有用,但我建议了一个临时解决方案
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-02
    • 1970-01-01
    • 1970-01-01
    • 2021-04-03
    • 2011-08-30
    • 2016-10-27
    相关资源
    最近更新 更多