2014-09-20 33 views
3

我試圖使用nuget.exe命令行實用程序使用nuget restore命令還原包。nuget命令行實用程序包在ubuntu上使用單聲道還原

我在Ubuntu 14.04上,剛剛執行了apt-get update

調用mono --version回報: Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)

這是我的確切調用和響應:

$ mono nuget.exe restore 
WARNING: The initialization function tries to access Value on this instance 
WARNING: The initialization function tries to access Value on this instance 
WARNING: The initialization function tries to access Value on this instance 
WARNING: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure 
Unable to find version '2.0.14' of package 'FSharp.Data'. 
Unable to find version '1.3.0.1' of package 'FsUnit'. 
Unable to find version '1.3.0.1' of package 'FsUnit.Sample'. 
Unable to find version '2.6.3' of package 'NUnit'. 

我曾嘗試使用和不使用nuget.config文件相同的文件夾。

怎麼回事,我能做些什麼來解決?

+2

找到了答案這裏http://stackoverflow.com/questions/15181888/nuget-on-linux-error-getting-response-stream – Nick 2014-09-20 15:40:13

回答

3

您描述的問題與root安全證書有關。

在終端中輸入以下命令:

mozroots --import --sync 

按以下@ahri,這裏是一個更先進的最新答案:

mozroots --import --sync --url https://hg.mozilla.org/mozilla-central/raw-file/tip/security‌​/nss/lib/ckfw/builti‌​ns/certdata.txt 

Source

+0

更新的更新,因爲這不適合我:'mozroots --import --sync - -url https: // hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt' – ahri 2016-09-17 13:54:15

+0

@ahri那個URL也不適用於我。 – 2016-11-11 18:23:03

+0

@ScottWeldon它現在已經轉移到https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt。也許最簡單的事情就是簡單地搜索谷歌的「mozilla certdata.txt」,因爲這就是我尋找它的方式。 – ahri 2016-11-15 21:11:41

相關問題