I am getting an error when I try to load a simple project using .NET 5.0.
Apparently, it is on the Nuget package.
All answers which I have searched not worked for me, their problems it seems because of proxy settings. Be noticed that I am not under a proxy which means I have full access to all websites including de nuget.org
I am just doing this:
dotnet run
and aI getting these errors:
dotnet/sdk/5.0.101/NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.
dotnet/sdk/5.0.101/NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception.
dotnet/sdk/5.0.101/NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
I believe is something because of the TLS certificate, not sure.
Important Tips:
On .Net Core 3.1 works
I am using Linux Mint 20 (Based on Ubuntu)
My OpenSSL config:
OpenSSL 1.1.1g 21 Apr 2020
Here the output of my .net info
Version: 5.0.101
Commit: d05174dc5a
Runtime Environment:
OS Name: linuxmint
OS Version: 20
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/5.0.101/
Host (useful for support):
Version: 5.0.1
Commit: b02e13abab
.NET SDKs installed:
2.1.811 [/usr/share/dotnet/sdk]
2.2.402 [/usr/share/dotnet/sdk]
3.1.404 [/usr/share/dotnet/sdk]
5.0.101 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.All 2.1.23 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.23 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.10 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.23 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App]```
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…