SBT安装错误(未找到模块:org.scala-sbt.ivy #vy; 2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6)

时间:2017-02-24 12:22:36

标签: scala sbt

我正在尝试安装SBT。我经历了几个循环重新安装SBT和JAVA,重启pc等等。我在谷歌中找到的关于类似问题的所有内容似乎都是指使用sbt的后期阶段。

我是一个完整的新手,所以我可能错过了一路上显而易见的事情。

这就是我的所作所为:

  1. 我通过msi安装程序安装SBT。
  2. 我在命令提示符下运行“sbt”。 这是命令提示符窗口(我以相同的方式手动打破了所有链接,以便能够发布此问题):

    Microsoft Windows [Version 10.0.14393]
    (c) 2016 Microsoft Corporation. Wszelkie prawa zastrzeżone.
    
    C:\Users\Jakub>sbt
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    Getting org.fusesource.jansi jansi 1.11 ...
    downloading ht tps://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar ...
        [SUCCESSFUL ] org.fusesource.jansi#jansi;1.11!jansi.jar (283ms)
    :: retrieving :: org.scala-sbt#boot-jansi
        confs: [default]
        1 artifacts copied, 0 already retrieved (111kB/16ms)
    Getting org.scala-sbt sbt 0.13.13 ...
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.13/jars/sbt.jar ...
        [SUCCESSFUL ] org.scala-sbt#sbt;0.13.13!sbt.jar (2892ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-lang/scala-library/2.10.6/scala-library-2.10.6.jar ...
        [SUCCESSFUL ] org.scala-lang#scala-library;2.10.6!scala-library.jar (942ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.13/jars/main.jar ...
        [SUCCESSFUL ] org.scala-sbt#main;0.13.13!main.jar (3227ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.13/jars/compiler-interface.jar ...
        [SUCCESSFUL ] org.scala-sbt#compiler-interface;0.13.13!compiler-interface.jar (2865ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.13/jars/actions.jar ...
        [SUCCESSFUL ] org.scala-sbt#actions;0.13.13!actions.jar (2861ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main-settings/0.13.13/jars/main-settings.jar ...
        [SUCCESSFUL ] org.scala-sbt#main-settings;0.13.13!main-settings.jar (2965ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/interface/0.13.13/jars/interface.jar ...
        [SUCCESSFUL ] org.scala-sbt#interface;0.13.13!interface.jar (2807ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.13.13/jars/io.jar ...
        [SUCCESSFUL ] org.scala-sbt#io;0.13.13!io.jar (2939ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.13.13/jars/ivy.jar ...
        [SUCCESSFUL ] org.scala-sbt#ivy;0.13.13!ivy.jar (2954ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logging/0.13.13/jars/logging.jar ...
        [SUCCESSFUL ] org.scala-sbt#logging;0.13.13!logging.jar (2876ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/logic/0.13.13/jars/logic.jar ...
        [SUCCESSFUL ] org.scala-sbt#logic;0.13.13!logic.jar (2759ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/process/0.13.13/jars/process.jar ...
        [SUCCESSFUL ] org.scala-sbt#process;0.13.13!process.jar (2825ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/run/0.13.13/jars/run.jar ...
        [SUCCESSFUL ] org.scala-sbt#run;0.13.13!run.jar (2820ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.13.13/jars/command.jar ...
        [SUCCESSFUL ] org.scala-sbt#command;0.13.13!command.jar (2973ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-sbt/launcher-interface/1.0.0-M1/launcher-interface-1.0.0-M1.jar ...
        [SUCCESSFUL ] org.scala-sbt#launcher-interface;1.0.0-M1!launcher-interface.jar (397ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classpath/0.13.13/jars/classpath.jar ...
        [SUCCESSFUL ] org.scala-sbt#classpath;0.13.13!classpath.jar (2874ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.13.13/jars/completion.jar ...
        [SUCCESSFUL ] org.scala-sbt#completion;0.13.13!completion.jar (2948ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.13.13/jars/api.jar ...
        [SUCCESSFUL ] org.scala-sbt#api;0.13.13!api.jar (2861ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-integration/0.13.13/jars/compiler-integration.jar ...
        [SUCCESSFUL ] org.scala-sbt#compiler-integration;0.13.13!compiler-integration.jar (2895ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-ivy-integration/0.13.13/jars/compiler-ivy-integration.jar ...
        [SUCCESSFUL ] org.scala-sbt#compiler-ivy-integration;0.13.13!compiler-ivy-integration.jar (2794ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/relation/0.13.13/jars/relation.jar ...
        [SUCCESSFUL ] org.scala-sbt#relation;0.13.13!relation.jar (2983ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/task-system/0.13.13/jars/task-system.jar ...
        [SUCCESSFUL ] org.scala-sbt#task-system;0.13.13!task-system.jar (2820ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tasks/0.13.13/jars/tasks.jar ...
        [SUCCESSFUL ] org.scala-sbt#tasks;0.13.13!tasks.jar (2847ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/tracking/0.13.13/jars/tracking.jar ...
        [SUCCESSFUL ] org.scala-sbt#tracking;0.13.13!tracking.jar (2767ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/testing/0.13.13/jars/testing.jar ...
        [SUCCESSFUL ] org.scala-sbt#testing;0.13.13!testing.jar (2832ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.10.6/scala-compiler-2.10.6.jar ...
        [SUCCESSFUL ] org.scala-lang#scala-compiler;2.10.6!scala-compiler.jar (1139ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-lang/scala-reflect/2.10.6/scala-reflect-2.10.6.jar ...
        [SUCCESSFUL ] org.scala-lang#scala-reflect;2.10.6!scala-reflect.jar (305ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/control/0.13.13/jars/control.jar ...
        [SUCCESSFUL ] org.scala-sbt#control;0.13.13!control.jar (2788ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.13.13/jars/collections.jar ...
        [SUCCESSFUL ] org.scala-sbt#collections;0.13.13!collections.jar (3080ms)
    downloading ht tps://repo1.maven.org/maven2/jline/jline/2.13/jline-2.13.jar ...
        [SUCCESSFUL ] jline#jline;2.13!jline.jar (526ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/classfile/0.13.13/jars/classfile.jar ...
        [SUCCESSFUL ] org.scala-sbt#classfile;0.13.13!classfile.jar (3011ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.13/jars/incremental-compiler.jar ...
        [SUCCESSFUL ] org.scala-sbt#incremental-compiler;0.13.13!incremental-compiler.jar (3007ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.13/jars/compile.jar ...
        [SUCCESSFUL ] org.scala-sbt#compile;0.13.13!compile.jar (2835ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/persist/0.13.13/jars/persist.jar ...
        [SUCCESSFUL ] org.scala-sbt#persist;0.13.13!persist.jar (3280ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-tools.sbinary/sbinary_2.10/0.4.2/jars/sbinary_2.10.jar ...
        [SUCCESSFUL ] org.scala-tools.sbinary#sbinary_2.10;0.4.2!sbinary_2.10.jar (3221ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cross/0.13.13/jars/cross.jar ...
        [SUCCESSFUL ] org.scala-sbt#cross;0.13.13!cross.jar (2765ms)
    downloading ht tps://repo1.maven.org/maven2/com/jcraft/jsch/0.1.50/jsch-0.1.50.jar ...
        [SUCCESSFUL ] com.jcraft#jsch;0.1.50!jsch.jar (522ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-sbt/serialization_2.10/0.1.2/serialization_2.10-0.1.2.jar ...
        [SUCCESSFUL ] org.scala-sbt#serialization_2.10;0.1.2!serialization_2.10.jar (330ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-lang/modules/scala-pickling_2.10/0.10.1/scala-pickling_2.10-0.10.1.jar ...
        [SUCCESSFUL ] org.scala-lang.modules#scala-pickling_2.10;0.10.1!scala-pickling_2.10.jar (489ms)
    downloading ht tps://repo1.maven.org/maven2/org/json4s/json4s-core_2.10/3.2.10/json4s-core_2.10-3.2.10.jar ...
        [SUCCESSFUL ] org.json4s#json4s-core_2.10;3.2.10!json4s-core_2.10.jar (344ms)
    downloading ht tps://repo1.maven.org/maven2/org/spire-math/jawn-parser_2.10/0.6.0/jawn-parser_2.10-0.6.0.jar ...
        [SUCCESSFUL ] org.spire-math#jawn-parser_2.10;0.6.0!jawn-parser_2.10.jar (203ms)
    downloading ht tps://repo1.maven.org/maven2/org/spire-math/json4s-support_2.10/0.6.0/json4s-support_2.10-0.6.0.jar ...
        [SUCCESSFUL ] org.spire-math#json4s-support_2.10;0.6.0!json4s-support_2.10.jar (198ms)
    downloading ht tps://repo1.maven.org/maven2/org/scalamacros/quasiquotes_2.10/2.0.1/quasiquotes_2.10-2.0.1.jar ...
        [SUCCESSFUL ] org.scalamacros#quasiquotes_2.10;2.0.1!quasiquotes_2.10.jar (382ms)
    downloading ht tps://repo1.maven.org/maven2/org/json4s/json4s-ast_2.10/3.2.10/json4s-ast_2.10-3.2.10.jar ...
        [SUCCESSFUL ] org.json4s#json4s-ast_2.10;3.2.10!json4s-ast_2.10.jar (197ms)
    downloading ht tps://repo1.maven.org/maven2/com/thoughtworks/paranamer/paranamer/2.6/paranamer-2.6.jar ...
        [SUCCESSFUL ] com.thoughtworks.paranamer#paranamer;2.6!paranamer.jar (256ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/cache/0.13.13/jars/cache.jar ...
        [SUCCESSFUL ] org.scala-sbt#cache;0.13.13!cache.jar (3150ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/test-agent/0.13.13/jars/test-agent.jar ...
        [SUCCESSFUL ] org.scala-sbt#test-agent;0.13.13!test-agent.jar (2881ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar ...
        [SUCCESSFUL ] org.scala-sbt#test-interface;1.0!test-interface.jar (393ms)
    downloading ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/apply-macro/0.13.13/jars/apply-macro.jar ...
        [SUCCESSFUL ] org.scala-sbt#apply-macro;0.13.13!apply-macro.jar (3008ms)
    downloading ht tps://repo1.maven.org/maven2/org/scala-sbt/template-resolver/0.1/template-resolver-0.1.jar ...
        [SUCCESSFUL ] org.scala-sbt#template-resolver;0.1!template-resolver.jar (193ms)
    
    :: problems summary ::
    :::: WARNINGS
        problem while downloading module descriptor: ht tps://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivy-2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6.pom: Read timed out (19300ms)
    
                module not found: org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6
    
        ==== local: tried
    
          C:\Users\Jakub\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6\ivys\ivy.xml
    
          -- artifact org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6!ivy.jar:
    
          C:\Users\Jakub\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6\jars\ivy.jar
    
        ==== Maven Central: tried
    
          ht tps://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivy-2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6.pom
    
        ==== typesafe-ivy-releases: tried
    
          ht tps://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt.ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivys/ivy.xml
    
        ==== sbt-ivy-snapshots: tried
    
          ht tps://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt.ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivys/ivy.xml
    
                ::::::::::::::::::::::::::::::::::::::::::::::
    
                ::          UNRESOLVED DEPENDENCIES         ::
    
                ::::::::::::::::::::::::::::::::::::::::::::::
    
                :: org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6: not found
    
                ::::::::::::::::::::::::::::::::::::::::::::::
    
    
    
    :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
    unresolved dependency: org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6: not found
    Error during sbt execution: Error retrieving required libraries
    (see C:\Users\Jakub\.sbt\boot\update.log for complete log)
    Error: Could not retrieve sbt 0.13.13
    
  3. 如果我尝试运行sbt now命令提示符包含从

    开始的相同消息
    :: problems summary ::
    

    这是C:\ Users \ Jakub.sbt \ boot的一部分,似乎包含问题描述(整个文件大大超过字符限制)

    Module descriptor is processed : org.scala-sbt#test-interface;1.0
    Module descriptor is processed : org.scala-sbt#main-settings;0.13.13
    Module descriptor is processed : org.scala-sbt#apply-macro;0.13.13
    Module descriptor is processed : org.scala-sbt#command;0.13.13
    Module descriptor is processed : org.scala-sbt#template-resolver;0.1
    Module descriptor is processed : org.scala-sbt#logic;0.13.13
    Module descriptor is processed : org.scala-sbt#compiler-interface;0.13.13
        report for org.scala-sbt#boot-app;1.0 default produced in C:\Users\Jakub\.sbt\boot\resolution-cache\org.scala-sbt-boot-app-default.xml
        resolve done (128406ms resolve - 106277ms download)
    
    :: problems summary ::
    :::: WARNINGS
        problem while downloading module descriptor: https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivy-2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6.pom: Read timed out (19300ms)
    
            module not found: org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6
    
        ==== local: tried
    
          C:\Users\Jakub\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6\ivys\ivy.xml
    
          -- artifact org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6!ivy.jar:
    
          C:\Users\Jakub\.ivy2\local\org.scala-sbt.ivy\ivy\2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6\jars\ivy.jar
    
        ==== Maven Central: tried
    
          https://repo1.maven.org/maven2/org/scala-sbt/ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivy-2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6.pom
    
        ==== typesafe-ivy-releases: tried
    
          https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt.ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivys/ivy.xml
    
        ==== sbt-ivy-snapshots: tried
    
          https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt.ivy/ivy/2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6/ivys/ivy.xml
    
            ::::::::::::::::::::::::::::::::::::::::::::::
    
            ::          UNRESOLVED DEPENDENCIES         ::
    
            ::::::::::::::::::::::::::::::::::::::::::::::
    
            :: org.scala-sbt.ivy#ivy;2.3.0-sbt-2cf13e211b2cb31f0d3b317289dca70eca3362f6: not found
    
            ::::::::::::::::::::::::::::::::::::::::::::::
    
    
    
    :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
    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)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:714)
        at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:799)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:722)
        at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:799)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:722)
        at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:799)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:722)
        at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:799)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:722)
        at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:799)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:722)
        at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:799)
        at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:722)
        at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:594)
        at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:234)
        at xsbt.boot.Update.xsbt$boot$Update$$lockedApply(Update.scala:105)
        at xsbt.boot.Update$$anon$4.call(Update.scala:99)
        at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
        at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
        at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
        at xsbt.boot.Using$.withResource(Using.scala:10)
        at xsbt.boot.Using$.apply(Using.scala:9)
        at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
        at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
        at xsbt.boot.Locks$.apply0(Locks.scala:31)
        at xsbt.boot.Locks$.apply(Locks.scala:28)
        at xsbt.boot.Update.apply(Update.scala:100)
        at xsbt.boot.Launch.update(Launch.scala:350)
        at xsbt.boot.Launch.xsbt$boot$Launch$$retrieve$1(Launch.scala:208)
        at xsbt.boot.Launch$$anonfun$3.apply(Launch.scala:216)
        at scala.Option.getOrElse(Option.scala:120)
        at xsbt.boot.Launch.xsbt$boot$Launch$$getAppProvider0(Launch.scala:216)
        at xsbt.boot.Launch$$anon$2.call(Launch.scala:196)
        at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
        at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
        at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
        at xsbt.boot.Using$.withResource(Using.scala:10)
        at xsbt.boot.Using$.apply(Using.scala:9)
        at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
        at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
        at xsbt.boot.Locks$.apply0(Locks.scala:31)
        at xsbt.boot.Locks$.apply(Locks.scala:28)
        at xsbt.boot.Launch.locked(Launch.scala:238)
        at xsbt.boot.Launch.app(Launch.scala:147)
        at xsbt.boot.Launch.app(Launch.scala:145)
        at xsbt.boot.Launch$.run(Launch.scala:102)
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
        at xsbt.boot.Launch$.launch(Launch.scala:117)
        at xsbt.boot.Launch$.apply(Launch.scala:18)
        at xsbt.boot.Boot$.runImpl(Boot.scala:41)
        at xsbt.boot.Boot$.main(Boot.scala:17)
        at xsbt.boot.Boot.main(Boot.scala)
    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)
        at xsbt.boot.Update$$anon$4.call(Update.scala:99)
        at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
        at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
        at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
        at xsbt.boot.Using$.withResource(Using.scala:10)
        at xsbt.boot.Using$.apply(Using.scala:9)
        at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
        at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
        at xsbt.boot.Locks$.apply0(Locks.scala:31)
        at xsbt.boot.Locks$.apply(Locks.scala:28)
        at xsbt.boot.Update.apply(Update.scala:100)
        at xsbt.boot.Launch.update(Launch.scala:350)
        at xsbt.boot.Launch.xsbt$boot$Launch$$retrieve$1(Launch.scala:208)
        at xsbt.boot.Launch$$anonfun$3.apply(Launch.scala:216)
        at scala.Option.getOrElse(Option.scala:120)
        at xsbt.boot.Launch.xsbt$boot$Launch$$getAppProvider0(Launch.scala:216)
        at xsbt.boot.Launch$$anon$2.call(Launch.scala:196)
        at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:93)
        at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:78)
        at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:97)
        at xsbt.boot.Using$.withResource(Using.scala:10)
        at xsbt.boot.Using$.apply(Using.scala:9)
        at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:58)
        at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
        at xsbt.boot.Locks$.apply0(Locks.scala:31)
        at xsbt.boot.Locks$.apply(Locks.scala:28)
        at xsbt.boot.Launch.locked(Launch.scala:238)
        at xsbt.boot.Launch.app(Launch.scala:147)
        at xsbt.boot.Launch.app(Launch.scala:145)
        at xsbt.boot.Launch$.run(Launch.scala:102)
        at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
        at xsbt.boot.Launch$.launch(Launch.scala:117)
        at xsbt.boot.Launch$.apply(Launch.scala:18)
        at xsbt.boot.Boot$.runImpl(Boot.scala:41)
        at xsbt.boot.Boot$.main(Boot.scala:17)
        at xsbt.boot.Boot.main(Boot.scala)
    Error during sbt execution: Error retrieving required libraries
    

    我该怎么做,我能错过什么?

2 个答案:

答案 0 :(得分:12)

尝试将存储库添加到~/.sbt/repositories

[repositories]
  local
  sbt-releases-repo: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  sbt-plugins-repo: http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  maven-central: http://repo1.maven.org/maven2/

答案 1 :(得分:-1)

在ubuntu上安装sbt时遇到同样的问题。

解决方案是在环境JAVA_HOME中进行配置。

通过运行以下命令:

0-value

保存并重新启动,然后通过运行以下命令检查变量:

## Packages
    library(igraph)
    library(tidygraph)
    library(ggraph)
    library(ggplot2)
    library(tidyverse)

    ## Edge and node
    edge <- data.frame(from=c(0,0,0,0,1,2,3),
                       to=c(0,1,2,3,0,0,0),
                       weight=c(1,3,1,1,3,1,1))
    node <- data.frame(id=c(0,1,2,3),
                       p=c(9,1,0,0),
                       w=c(0,2,0,0),
                       s=c(0,1,1,1),
                       size=c(9,3,1,1),
                       gr=c(0,1,1,2))

    ## Load data frames as tbl_graph class
    edge <- edge %>% mutate(from=from+1,to=to+1)
    # THIS IS QUITE STRANGE OPERATION FOR CHANGING COLOR
    node <- node %>% mutate_at(vars(p,w,s,size),funs(ifelse(.==0,NA,.)))
    net <- tbl_graph(nodes=node,edges=edge,directed=TRUE)

## Set arrows
ar <- arrow(angle=30,length=unit(5,"mm"),ends="last",type="closed")
## Plot
ggraph(net,layout="graphopt") +
    ## Edges
    geom_edge_link(aes(start_cap=circle(log(node1.size)+2,unit="native"),
                       end_cap=circle(log(node2.size)+2,unit="native"),
                       width=weight,label=weight),
        position="identity",angle_calc="along",force_flip=TRUE,
        label_dodge=unit(4.0,"mm"),label_push=unit(-0.4,"mm")) +
        ## Width scale
        scale_edge_width(range=c(0.4,4),breaks=c(1:10),name="Movements\nbetween zones") +
    ## Add arrows separately
    geom_edge_link(arrow=ar,aes(start_cap=circle(log(node1.size)+1,unit="native"),
        end_cap=circle(log(node2.size)+1,unit="native"))) +
    ## Nodes
        ## Plot location id
        geom_node_label(aes(label=id,hjust=log(size+6),vjust=log(size+6)),repel=TRUE,
                        label.padding=unit(0.8,"mm"),label.r=unit(0.0,"mm"),label.size=0.1,size=3.5) +
        ## Circle
        geom_node_circle(aes(r=log(size)+1),color="black",fill="white",size=0.4) +
        ## Plot work activity: NOT KNOW WHY IT WORKS!!
        geom_node_text(aes(size=ifelse(is.na(w),0,w),hjust=log(w)+0.4,color=ifelse(w==0,"white","red")),label="w",
                       position="identity",vjust=0.4,fontface="bold") +
        ## Plot school activity
        geom_node_text(aes(size=ifelse(is.na(s),0,s),hjust=-log(s)-0.2,color=ifelse(s==0,"white","blue")),label="s",
                       position="identity",vjust=0.4,fontface="bold") +
        ## Edit legend
        scale_size_continuous(range=c(0,5),breaks=c(1:100),name="Numberof\nActivities",
                   guide=guide_legend(override.aes=list(label="a",color="black"))) +
        scale_color_manual(name="Type of Activity",guide=guide_legend(override.aes=list(label=c("w","s"))),
                           values=c("red","blue"),labels=c("Work","School")) +
    ## Theme
    theme_graph() + coord_fixed()