【问题标题】:nuget command line utility package restore with mono on ubuntu在 ubuntu 上使用单声道还原 nuget 命令行实用程序包
【发布时间】:2014-09-20 15:20:58
【问题描述】:

我正在尝试使用nuget.exe 命令行实用程序通过nuget restore 命令恢复软件包。

我在 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 文件。

出了什么问题,我能做些什么来解决?

【问题讨论】:

标签: mono nuget nuget-package-restore


【解决方案1】:

您描述的问题与根安全证书有关。

在终端输入以下命令:

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

【讨论】:

  • 最近的更新,因为这对我不起作用:mozroots --import --sync --url https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
  • @ScottWeldon 现在似乎已移至hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/…。也许最简单的事情是简单地在谷歌搜索“mozilla certdata.txt”,因为这就是我寻找它的方式。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-01-07
  • 2016-11-01
  • 2012-02-20
  • 1970-01-01
  • 1970-01-01
  • 2017-12-04
  • 1970-01-01
相关资源
最近更新 更多