Restoring nuget command line utility package from mono on ubuntu
I am trying to restore packages using a command nuget restore
using a command line utility nuget.exe
.
I'm on Ubuntu 14.04 and just executed apt-get update
.
The call mono --version
returns:
Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
Here is my exact challenge and answer:
$ 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'.
I have tried with and without a file nuget.config
in the same folder.
What is going wrong and what can I do to resolve?
source to share
The problem you are describing is related to root security certificates.
Enter the following command in the terminal:
mozroots --import --sync
Like @ahri below, here's a more modern answer:
mozroots --import --sync --url https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
source to share