β 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!π€
UU
Unknown Userβ’400d ago
S
sarouixβ’400d ago
Yes, it is , also I tried with .net6.0 and the problem persists
UU
Unknown Userβ’400d ago
S
sarouixβ’400d ago
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
X
x0rldβ’400d ago
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...
S
sarouixβ’399d ago
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
UU
Unknown Userβ’399d ago
S
sarouixβ’399d ago
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
S
sarouixβ’399d ago
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...
S
sarouixβ’398d ago
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?
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
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
S
sarouixβ’398d ago
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.
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
Yes its is because 7.0.3xx its a nightly build
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
Sorry, I am going to rephrase it because its the product of a lapsus lol
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
Dont worry, me too, and I dont know what I was thinking
It does make sense now? Lol
UU
Unknown Userβ’398d ago
X
x0rldβ’398d ago
so the solution is waiting almost 1 year ? XD
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
Yes also I think it was something with the way ubuntu make the calls to the sdk-net installer
UU
Unknown Userβ’398d ago
M
MODiXβ’398d ago
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.
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
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
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
I am going to take that into account for future references and installations
UU
Unknown Userβ’398d ago
S
sarouixβ’398d ago
Yes I Installed .NET trough the Microsoft Feed or at least thas what I was thinking
A
Accordβ’390d ago
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.We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
52KMembers
View on DiscordWant results from more Discord servers?
More Postsβ
Does this styling code look right?I'm using this code for a simple hover effect. Im wondering if I'm doing this correctly:
<Window.Reβ ?[] operator for dictionariesIs not working. It is explained here. https://learn.microsoft.com/en-us/dotnet/csharp/language-referβ IAsyncEnumerable vs List<T> as parameter in methodI have a method that is overloaded and will take in a List<T> or IAsyncEnumerable. The method will bβ This code is bugged how can i solve it?```LogiwaEntities1 db = new LogiwaEntities1();
ProductData productData = new ProductDataβ
How to add hover effect to WPF button elementThis code I'm using isn't working. When I hover over buttons its a lightblue color.
<Style with or without refso i learned that in c#(or most oop languages) when you create a method that takes an object as a paβ
.net trying to find non-existent cs files`Error IDE1100 Error reading content of source file 'D:\Dev\C++\Test\TestCS\obj\Debug\net6.0\.β WPF - Binding to last child of collectionI have the following setup:
```csharp
public partial class StatusMessageService : ObservableObject
β
What does WPF want from me?I'm actually so tired of WPF and MVVM and all this contrived fuckin bs you guys
MainWindow control:β I apparently have an infinite loop, but I can't fix it to workI've tried a lot of stuff, even a "NewtonJson" fix I saw, but it wouldn't solve the problem because β
doing nothingdfgβ I would appreciate some help.So i have this assignment and in lieu of my grandma who passed this past week i've not had the opporβ Discord Bot Service ProblemDoes anyone know how to register that service properly?β abstract class vs interface```cs
public interface IFoo
{
protected static string GetFormattedTime() => DateTimeβ
Refit / RestLess API SDK StructureHey!
How do I structure an SDK for my API?
Let's say I have 2 resources: Users and Groups.
I coulβ Best way to display a continually updating list of messages```cs
@inject MerpieClient Client
@inject MerpieHubConnection HubConnection
@inject ILogger<MessageLβ How can I fix this I keep getting null value in my string variableβ How do I go from interface to implementation while navigating ASP.NET core code?I saw this youtube video and he seamlessly navigates the source? How can I do this? Thanks.Console Application published as PublishSingleFile the window auto close for few devloper.I have published a .exe file with runtime framework included, and distributed to other developer forβ
Set Background color for one specific Row in GridI have a WPF project and a grid with a bunch of rows and columns. How can I change the background co