C
C#sarouix

❔ 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
Failed to restore /home/saroui/Documents/NewFunction/NewFunction.csproj (in 553 ms). (TaskId:39)
(TaskId:39)
NuGet Config files used: (TaskId:39)
/home/saroui/.nuget/NuGet/NuGet.Config (TaskId:39)
(TaskId:39)
Feeds used: (TaskId:39)
https://api.nuget.org/v3/index.json (TaskId:39)

Done executing task "RestoreTask" -- FAILED. (TaskId:39)
17:28:33.086 1>Done building target "Restore" in project "NewFunction.csproj" -- FAILED.: (TargetId:42)
17:28:33.097 1>Done Building Project "/home/saroui/Documents/NewFunction/NewFunction.csproj" (Restore target(s)) -- FAILED.
Deferred Messages
17:28:33.101 0>
Failed to restore /home/saroui/Documents/NewFunction/NewFunction.csproj (in 553 ms). (TaskId:39)
(TaskId:39)
NuGet Config files used: (TaskId:39)
/home/saroui/.nuget/NuGet/NuGet.Config (TaskId:39)
(TaskId:39)
Feeds used: (TaskId:39)
https://api.nuget.org/v3/index.json (TaskId:39)

Done executing task "RestoreTask" -- FAILED. (TaskId:39)
17:28:33.086 1>Done building target "Restore" in project "NewFunction.csproj" -- FAILED.: (TargetId:42)
17:28:33.097 1>Done Building Project "/home/saroui/Documents/NewFunction/NewFunction.csproj" (Restore target(s)) -- FAILED.
Deferred Messages
17:28:33.101 0>
I don't know if tthis is something related to this prompt
X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/codesignctl.pem'. (TaskId:39)
X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/timestampctl.pem'. (TaskId:39)
Running restore with 4 concurrent jobs. (TaskId:39)
X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/codesignctl.pem'. (TaskId:39)
X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/timestampctl.pem'. (TaskId:39)
Running restore with 4 concurrent jobs. (TaskId:39)
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
.NET SDK:
Version: 7.0.202
Commit: 6c74320bc3

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/7.0.202/

Host:
Version: 7.0.4
Architecture: x64
Commit: 0a396acafe

.NET SDKs installed:
6.0.407 [/usr/share/dotnet/sdk]
7.0.202 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.15 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.15 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
.NET SDK:
Version: 7.0.202
Commit: 6c74320bc3

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: ubuntu.20.04-x64
Base Path: /usr/share/dotnet/sdk/7.0.202/

Host:
Version: 7.0.4
Architecture: x64
Commit: 0a396acafe

.NET SDKs installed:
6.0.407 [/usr/share/dotnet/sdk]
7.0.202 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.15 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.15 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
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
info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/codesignctl.pem'.
info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/timestampctl.pem'.
info : Adding PackageReference for package 'NuGet.Protocol' into project '/home/saroui/Documents/sample-app/TodoApi/TodoApi.csproj'.
error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error: The format of value '(Linux 6.2.10-1-liquorix-amd64 #1 ZEN SMP PREEMPT_DYNAMIC liquorix 6.2-13ubuntu1~focal (2023-04)' is invalid.
info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/codesignctl.pem'.
info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/7.0.202/trustedroots/timestampctl.pem'.
info : Adding PackageReference for package 'NuGet.Protocol' into project '/home/saroui/Documents/sample-app/TodoApi/TodoApi.csproj'.
error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error: The format of value '(Linux 6.2.10-1-liquorix-amd64 #1 ZEN SMP PREEMPT_DYNAMIC liquorix 6.2-13ubuntu1~focal (2023-04)' is invalid.
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
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.
Want results from more Discord servers?
Add your server
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