2016-10-20 6 views
7

मैं उबंटू 16.04 पर एसबीटी का उपयोग करने की कोशिश कर रहा हूं, लेकिन इसे चलाने की कोशिश करते समय त्रुटियां मिल रही हैं। मैं एक नए सिरे से स्थापित किया था, तो the sbt site से वास्तव में दिशाओं का पालन किया, लेकिन जब मैं sbt निम्न कार्य मिलती है:डाउनलोड पर अपवाद: sun.security.validator.ValidatorException: कोई विश्वसनीय प्रमाणपत्र नहीं मिला

Getting org.scala-sbt sbt 0.13.12 ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.12/jars/main.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.12/jars/compiler-interface.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.12/jars/actions.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main-settings/0.13.12/jars/main-settings.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.13.12/jars/io.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.13.12/jars/ivy.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.13.12/jars/command.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.13.12/jars/completion.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.13.12/jars/api.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.13.12/jars/collections.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar ... 
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.12/jars/compile.jar ... 

:: problems summary :: 
:::: WARNINGS 
     [FAILED  ] org.scala-sbt#main;0.13.12!main.jar: sun.security.validator.ValidatorException: No trusted certificate found (1180ms) 

     [FAILED  ] org.scala-sbt#main;0.13.12!main.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/main/0.13.12/jars/main.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/main/0.13.12/main-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main/0.13.12/jars/main.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/main/0.13.12/jars/main.jar 

     [FAILED  ] org.scala-sbt#compiler-interface;0.13.12!compiler-interface.jar: sun.security.validator.ValidatorException: No trusted certificate found (577ms) 

     [FAILED  ] org.scala-sbt#compiler-interface;0.13.12!compiler-interface.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/compiler-interface/0.13.12/jars/compiler-interface.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/compiler-interface/0.13.12/compiler-interface-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compiler-interface/0.13.12/jars/compiler-interface.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/compiler-interface/0.13.12/jars/compiler-interface.jar 

     [FAILED  ] org.scala-sbt#actions;0.13.12!actions.jar: sun.security.validator.ValidatorException: No trusted certificate found (569ms) 

     [FAILED  ] org.scala-sbt#actions;0.13.12!actions.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/actions/0.13.12/jars/actions.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/actions/0.13.12/actions-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/actions/0.13.12/jars/actions.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/actions/0.13.12/jars/actions.jar 

     [FAILED  ] org.scala-sbt#main-settings;0.13.12!main-settings.jar: sun.security.validator.ValidatorException: No trusted certificate found (666ms) 

     [FAILED  ] org.scala-sbt#main-settings;0.13.12!main-settings.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/main-settings/0.13.12/jars/main-settings.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/main-settings/0.13.12/main-settings-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/main-settings/0.13.12/jars/main-settings.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/main-settings/0.13.12/jars/main-settings.jar 

     [FAILED  ] org.scala-sbt#io;0.13.12!io.jar: sun.security.validator.ValidatorException: No trusted certificate found (597ms) 

     [FAILED  ] org.scala-sbt#io;0.13.12!io.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/io/0.13.12/jars/io.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/io/0.13.12/io-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/io/0.13.12/jars/io.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/io/0.13.12/jars/io.jar 

     [FAILED  ] org.scala-sbt#ivy;0.13.12!ivy.jar: sun.security.validator.ValidatorException: No trusted certificate found (644ms) 

     [FAILED  ] org.scala-sbt#ivy;0.13.12!ivy.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/ivy/0.13.12/jars/ivy.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/ivy/0.13.12/ivy-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/ivy/0.13.12/jars/ivy.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/ivy/0.13.12/jars/ivy.jar 

     [FAILED  ] org.scala-sbt#command;0.13.12!command.jar: sun.security.validator.ValidatorException: No trusted certificate found (762ms) 

     [FAILED  ] org.scala-sbt#command;0.13.12!command.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/command/0.13.12/jars/command.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/command/0.13.12/command-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/command/0.13.12/jars/command.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/command/0.13.12/jars/command.jar 

     [FAILED  ] org.scala-sbt#completion;0.13.12!completion.jar: sun.security.validator.ValidatorException: No trusted certificate found (594ms) 

     [FAILED  ] org.scala-sbt#completion;0.13.12!completion.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/completion/0.13.12/jars/completion.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/completion/0.13.12/completion-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/completion/0.13.12/jars/completion.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/completion/0.13.12/jars/completion.jar 

     [FAILED  ] org.scala-sbt#api;0.13.12!api.jar: sun.security.validator.ValidatorException: No trusted certificate found (585ms) 

     [FAILED  ] org.scala-sbt#api;0.13.12!api.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/api/0.13.12/jars/api.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/api/0.13.12/api-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/api/0.13.12/jars/api.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/api/0.13.12/jars/api.jar 

     [FAILED  ] org.scala-sbt#collections;0.13.12!collections.jar: sun.security.validator.ValidatorException: No trusted certificate found (568ms) 

     [FAILED  ] org.scala-sbt#collections;0.13.12!collections.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/collections/0.13.12/jars/collections.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/collections/0.13.12/collections-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/collections/0.13.12/jars/collections.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/collections/0.13.12/jars/collections.jar 

     [FAILED  ] org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar: sun.security.validator.ValidatorException: No trusted certificate found (672ms) 

     [FAILED  ] org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/incremental-compiler/0.13.12/incremental-compiler-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/incremental-compiler/0.13.12/jars/incremental-compiler.jar 

     [FAILED  ] org.scala-sbt#compile;0.13.12!compile.jar: sun.security.validator.ValidatorException: No trusted certificate found (587ms) 

     [FAILED  ] org.scala-sbt#compile;0.13.12!compile.jar: (0ms) 

    ==== local: tried 

     /home/james/.ivy2/local/org.scala-sbt/compile/0.13.12/jars/compile.jar 

    ==== Maven Central: tried 

     https://repo1.maven.org/maven2/org/scala-sbt/compile/0.13.12/compile-0.13.12.jar 

    ==== typesafe-ivy-releases: tried 

     https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/compile/0.13.12/jars/compile.jar 

    ==== sbt-ivy-snapshots: tried 

     https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/compile/0.13.12/jars/compile.jar 

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

     ::    FAILED DOWNLOADS   :: 

     ::^see resolution messages for details^:: 

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

     :: org.scala-sbt#main;0.13.12!main.jar 

     :: org.scala-sbt#actions;0.13.12!actions.jar 

     :: org.scala-sbt#io;0.13.12!io.jar 

     :: org.scala-sbt#completion;0.13.12!completion.jar 

     :: org.scala-sbt#collections;0.13.12!collections.jar 

     :: org.scala-sbt#api;0.13.12!api.jar 

     :: org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar 

     :: org.scala-sbt#compile;0.13.12!compile.jar 

     :: org.scala-sbt#ivy;0.13.12!ivy.jar 

     :: org.scala-sbt#main-settings;0.13.12!main-settings.jar 

     :: org.scala-sbt#command;0.13.12!command.jar 

     :: org.scala-sbt#compiler-interface;0.13.12!compiler-interface.jar 

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



:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS 
download failed: org.scala-sbt#main;0.13.12!main.jar 
download failed: org.scala-sbt#actions;0.13.12!actions.jar 
download failed: org.scala-sbt#io;0.13.12!io.jar 
download failed: org.scala-sbt#completion;0.13.12!completion.jar 
download failed: org.scala-sbt#collections;0.13.12!collections.jar 
download failed: org.scala-sbt#api;0.13.12!api.jar 
download failed: org.scala-sbt#incremental-compiler;0.13.12!incremental-compiler.jar 
download failed: org.scala-sbt#compile;0.13.12!compile.jar 
download failed: org.scala-sbt#ivy;0.13.12!ivy.jar 
download failed: org.scala-sbt#main-settings;0.13.12!main-settings.jar 
download failed: org.scala-sbt#command;0.13.12!command.jar 
download failed: org.scala-sbt#compiler-interface;0.13.12!compiler-interface.jar 
Error during sbt execution: Error retrieving required libraries 
    (see /home/james/.sbt/boot/update.log for complete log) 
Error: Could not retrieve sbt 0.13.12 

मुझे यकीन है कि यह क्या कारण हो जाएगा नहीं कर रहा हूँ। मैंने sudo sbt भी कोशिश की, जिसने कोई फर्क नहीं पड़ता (यदि यह अनुमति अनुमति थी)। मुझे ध्यान रखना चाहिए कि कुछ डाउनलोड सफल होते हैं।

संपादित करें:

यहाँ कुछ सबूत मैं यह सही कर रहा हूँ है:

I'm not dumb

+0

ऐसा लगता है कि आपके द्वारा पोस्ट किए गए स्निपेट के ऊपर मुद्रित अधिक विवरण हैं। क्या आप उन्हें जोड़ सकते हैं? – Yawar

+0

बिल्कुल! अब संपादन – deckeresq

+0

शायद यह? https://medium.com/@henricook/solution-to-sun-security- validator- validatorexception-e300dd7dba70#.81m2rdl90 – Yawar

उत्तर

9

उबंटू पर, आप पैकेज openjdk-9-jre-headless स्थापित जब, एसबीटी क्योंकि वे 'अपने डाउनलोड सत्यापित नहीं कर सकता ओपनजेडीके 9 प्रमाणपत्रों के खिलाफ हस्ताक्षर नहीं किया। इसे ठीक करने के लिए, आपको OpenJDK 9 की स्थापना रद्द करने की जरूरत है:

$ apt-get remove openjdk-9-* 

तो सुनिश्चित करें कि आप openjdk-8-jre-headless इंस्टॉल किया गया है, और update-java-alternatives का उपयोग (विवरण के लिए https://askubuntu.com/a/731862/459610 देखें) डिफ़ॉल्ट JRE के रूप में चुनें।

उत्तर https://medium.com/@henricook/solution-to-sun-security-validator-validatorexception-e300dd7dba70#.wn7uh2z9q

(नोट में पाया: मैं एक Ubuntu मशीन पर अब नहीं कर रहा हूँ, इसलिए मैं इस की पुष्टि नहीं कर सकते हैं, लेकिन: तुम सिर्फ JDK करने के लिए डिफ़ॉल्ट जावा स्थापित करने के साथ दूर प्राप्त करने में सक्षम हो सकता है 8.)

+1

धन्यवाद! एफवाईआई आप केवल डिफ़ॉल्ट जावा को जेडीके 8 पर सेट कर सकते हैं। टर्मिनल में 'सुडो अपडेट-विकल्प - कॉन्फिग जावा' टाइप करें और पथ में 'जावा -8' के साथ विकल्प का चयन करें। फिर फिर से 'एसबीटी' चलाएं और यह काम करेगा (उम्मीद है)! –

+1

अभी भी जनवरी 18 में यह प्राप्त हो रहा है, जब जेडीके 9 आधिकारिक तौर पर बाहर है। – akauppi

+2

एसबीटी के लिए एक मुद्दा खोल दिया: https://github.com/sbt/sbt/issues/3847 – akauppi

संबंधित मुद्दे