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
[bug] error NU1301 (Unable to load the service index for source https://api.nuget.org/v3/index.json.) when I am trying to create any .NET Application in Ubuntu 20.04 #12535
Comments
May be related to #5358. Is there any proxy configured in the environment?
|
Hey there, Thanks to answer to this issue, actually I check issue #5358 before and try everything suggested there but nothing solved the problem. Besides I checked "env | grep -i proxy" and "/etc/apt/apt.conf.d/proxy " and there isn't any proxy configured on my enviroment. If it helps to unfog this problem, I am going to stay tuned, Thank you very much beforehand!. |
Unfortunately NuGet isn't showing inner exceptions on these "unable to get service index" errors, making it hard to guess what the root cause was: #12530 From my own testing, |
Thank you very much, now I can see what is the cause of the connection issue and its looks like some incompatibility with the kernel of my environment
In theory its the last update of the kernel, and I just followed the steps on MS Docs to install de .NET SDK present on my environment. I would be glad to know if there is something I can do to fix the issue locally. |
This was a known issue, first reported a few months ago, but has been fixed in the main branch The fix will be part of NuGet 6.6, which isn't out yet. But if you can use a preview .NET SDK 7.0.3xx, it should work. If you're using a version of the .NET SDK that is available as part of Ubuntu's package repository, that's using what .NET calls "source build", and for reasons I don't understand they limit to the 1xx versions of the SDK, which means it won't contain NuGet's fix until version 8.0.1xx. But if you can use the Microsoft package feed, then you can get newer versions of the .NET SDK (but possibly not previews): https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu |
Thank you, could you please show me how to get the .NET SDN 7.0.3xx because the latest release of .NET 7.0.5 includes .NET SDK 7.0.203, but I don't see any trace of the nightly builds. Thank you beforehand! |
https://github.com/dotnet/installer/blob/main/README.md#table I am closing this as a duplicate of #11995 that is already fixed. |
Seeing this issue now in docker build. |
NuGet Product Used
dotnet.exe
Product Version
dotnet-sdk-7.0.202
Worked before?
No response
Impact
None
Repro Steps & Context
error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
Verbose Logs
The text was updated successfully, but these errors were encountered: