Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during restoring packages on Ubuntu #4089

Closed
AndreyAkinshin opened this issue Mar 31, 2015 · 9 comments
Closed

Error during restoring packages on Ubuntu #4089

AndreyAkinshin opened this issue Mar 31, 2015 · 9 comments

Comments

@AndreyAkinshin
Copy link
Member

I'm trying to install coreclr on Ubuntu 14.04 (https://github.com/dotnet/coreclr/wiki/Linux-instructions)

The command

$ mono nuget.exe restore -Source https://www.myget.org/F/dotnet-corefx/ -PackagesDirectory .

prints:

WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
WARNING: Error: SendFailure (Error writing headers)
Unable to find version '4.0.0-beta-22703' of package 'System.Console'.
Unable to find version '4.0.0-beta-22703' of package 'System.Diagnostics.Contracts'.
Unable to find version '4.0.10-beta-22703' of package 'System.Diagnostics.Debug'.
Unable to find version '4.0.0-beta-22703' of package 'System.Diagnostics.Tools'.
Unable to find version '4.0.10-beta-22703' of package 'System.Globalization'.
Unable to find version '4.0.10-beta-22703' of package 'System.IO'.
Unable to find version '4.0.0-beta-22703' of package 'System.IO.FileSystem.Primitives'.
Unable to find version '4.0.10-beta-22703' of package 'System.Reflection'.
Unable to find version '4.0.0-beta-22703' of package 'System.Resources.ResourceManager'.
Unable to find version '4.0.20-beta-22703' of package 'System.Runtime'.
Unable to find version '4.0.10-beta-22703' of package 'System.Runtime.Extensions'.
Unable to find version '4.0.0-beta-22703' of package 'System.Runtime.Handles'.
Unable to find version '4.0.20-beta-22703' of package 'System.Runtime.InteropServices'.
Unable to find version '4.0.10-beta-22703' of package 'System.Text.Encoding'.
Unable to find version '4.0.10-beta-22703' of package 'System.Text.Encoding.Extensions'.
Unable to find version '4.0.10-beta-22703' of package 'System.Threading'.
Unable to find version '4.0.10-beta-22703' of package 'System.Threading.Tasks'.

Also I haven't found the dotnet-corefx feed on myget. What should I do for restoring packages?

@akoeplinger
Copy link
Member

@AndreyAkinshin are you running the latest Mono 3.12? This is a common issue on earlier versions where the CA root certificates aren't imported in Mono's trust store automatically (you needed to run mozroots --import --sync on the old versions).

@AndreyAkinshin
Copy link
Member Author

@akoeplinger,

are you running the latest Mono 3.12?

Yes.

you need to run mozroots --import --sync

It helps, thanks! Can you update the wiki?

@akoeplinger
Copy link
Member

@AndreyAkinshin It should work automatically on Mono 3.12, presuming you've installed from the mono-project.com packages (there's an install hook in those packages that runs the new cert-sync tool, mozroots shouldn't be required anymore). Did you maybe compile Mono from source?

@AndreyAkinshin
Copy link
Member Author

Did you maybe compile Mono from source?

Yes.

@akoeplinger
Copy link
Member

That explains it then ;) You should be able to run sudo cert-sync /etc/ssl/certs/ca-certificates.crt in that case to get the same effect.

@MattWhilden
Copy link
Contributor

I've added a "NOTE" in the wiki. Let me know if you think that'll keep others from falling into this cleverly laid trap. 😄

@akoeplinger
Copy link
Member

@MattWhilden thanks :) Can we change the first part of the sentence to "This assumes you installed Mono from..." and link to the specifc comment with the solution?

@MattWhilden
Copy link
Contributor

Done. Let me know if anything else needs fixing up.

@saper
Copy link
Contributor

saper commented Jun 4, 2015

Quick note: besides certificate installation, it seems that Mono fails on TLS when TZ environment variable is unset (should assume UTC). Running env TZ=UTC mono ... fixed the issues :/

@msftgits msftgits transferred this issue from dotnet/coreclr Jan 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants