-
Notifications
You must be signed in to change notification settings - Fork 256
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
Notice: NuGet Restore Failures on Linux distributions using NSS or ca-certificates #10712
Comments
NSS
or ca-certificates
NSS
or ca-certificates
You mentioned to comment, so here I am. Freshly new install of dotnet on fresh Debian 10 (new VPS after OVH fire): Aaaand it's failing very hard for me. |
I believe that version of $ docker run --rm -it mcr.microsoft.com/dotnet/sdk:5.0
# cat /etc/os-release | grep PRETTY
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
# apt update && apt upgrade -y
# apt list --upgradeable
Listing... Done
# apt list ca-certificates
Listing... Done
ca-certificates/stable,stable-updates,now 20200601~deb10u2 all [installed]
# dotnet --version
5.0.201
# dotnet new blazorwasm -o app
# cd app
# dotnet build
Build succeeded.
0 Warning(s)
0 Error(s) Related context: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962596 |
@JonDouglas Here is snippet:
And this goes on for all the packages and dependencies. I came here from #10491 , actually this: #10491 (comment) solved the issue for me. It was fresh install of this machine (done week ago), although image might've been old, so ca-certificates might've been updated. Maybe update is the problem, as it's not checking the certificate? @richlander I am not sure, it looks a lot like the issue from linked Notice, although I might be wrong. If so, please disregard my comments. |
@domints Inside the bug report of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962596 there seems to suggest that updating the package does not automatically trust the CA.
Perhaps try the solution in #10491 (comment) EDIT: We shared the same link 😄 |
An updated .NET 5 build is now available that resolves this issue: https://devblogs.microsoft.com/dotnet/net-april-2021-updates/ |
Closing this issue as we believe the mitigation has propagated through the ecosystem and no major influx of reports have occurred since recent OS releases in the spring/summer. |
Hey friends,
We're aware of an upcoming change in Linux distributions in which an upstream change in the popular Network Security Services(nss) and
ca-certificates
packages can disrupt yourdotnet restore
experience on .NET 5+.For more information about this issue, see the following announcement:
NuGet/Announcements#56
If you have run into an issue in .NET 5 with
dotnet restore
on a Linux distribution already, please feel free to comment with your OS &dotnet
version information so we can add it to our on-going matrix of impacted Linux distributions.We are currently working on a service release to resolve this shortly.
The text was updated successfully, but these errors were encountered: