β Its there a way to fix this?
Hi there, currently I am trying to develop some functions to publish them to azure later, but right now I am having the following error when I run dotnet run/build or restore.
error NU1301: Unable to load the service index for source https://api.nuget.org/v3/index.json.
I am developing this functions on Ubuntu 20.04 using the last stable version of VS Code and dotnet-sdk-7.0
I searched for a solution all over internet but without a result for my specific case.
Thank you before hand!π€
32 Replies
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Yes, it is , also I tried with .net6.0 and the problem persists
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
With curl the index just run perfect, also works with different browsers so It doesnαΊ looks like a DNS or Proxy problem
Here it is how the error looks inside the restore verbosity
I don't know if tthis is something related to this prompt
https://github.com/NuGet/Home/issues/12027
looks like there is some issues with signature validation
GitHub
[Bug]: Package signature validation fails on Linux due to missing '...
NuGet Product Used dotnet.exe Product Version sdk:6.0.400 Worked before? No response Impact It's more difficult to complete my work Repro Steps & Context Dockerfile FROM mcr.microsoft.com/d...
I am gonna look this and see if it is my case
It looks like the bug was fixed at the last sdk update, that is the one that I am using, so no wonder what else could be
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Hi there again, this is the info I got using dotnet --info
it is normal to don't have a global .json file or enviroment variables?
Oh thanks, Actually is from Ubuntu 20.04 running as the OS for my personal machine, but I think maybe I can re-open the issue in the nuget repo
Ok so here it is the Issue created on the Nuget Repo https://github.com/NuGet/Home/issues/12535
GitHub
[bug] error NU1301 (Unable to load the service index for source htt...
NuGet Product Used dotnet.exe Product Version dotnet-sdk-7.0.202 Worked before? No response Impact None Repro Steps & Context Step one keep Ubuntu 20.04 with all its dependencies updated Try to...
Hi there again, so with the help of some of the people from NuGet, I get the possible Issue with NuGet, it looks like Kernel or Linux related
So, there is something I can do to fix this error locally on my machine?
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Okay I am going to try that
Well, It looks like I have to update to 22.04 or something, because the ca certs are already update
Hey there again, I was able to fix without upgrading, you only need to install a .NET SDK from 7.0.3xx or later, other option to fix this is issue is to wait until NuGet 6.6 its launched along .NET 8.0
Here you can check the required SDK https://github.com/dotnet/installer/blob/main/README.md#table
GitHub
installer/README.md at main Β· dotnet/installer
.NET SDK Installer. Contribute to dotnet/installer development by creating an account on GitHub.
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Yes its is because 7.0.3xx its a nightly build
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Sorry, I am going to rephrase it because its the product of a lapsus lol
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Dont worry, me too, and I dont know what I was thinking
It does make sense now? Lol
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
so the solution is waiting almost 1 year ? XD
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Yes also I think it was something with the way ubuntu make the calls to the sdk-net installer
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
tebeco#0205
is net7 actually supported/running on 20.x ?
Quoted by
<@!689473681302224947> from #Its there a way to fix this? (click here)
React with β to remove this embed.
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
that makes totally sense also, one of the NuGet staffers told me this
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
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
I am going to take that into account for future references and installations
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Yes I Installed .NET trough the Microsoft Feed or at least thas what I was thinking
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.