✅ [Solved] Dotnet restore is failing on new apps
I'm working with the CLI on linux. Any new app I create (console, web api, etc) running dotnet restore fails like this:
I have an existing project I pulled from github, dotnet restore works fine on it. Anyone know what is going on?
20 Replies
I found this https://learn.microsoft.com/en-us/answers/questions/926095/using-dotnet-6-on-arch-linux but my NuGet.config is fine:
Using dotnet 6 on Arch linux - Microsoft Q&A
Hello!
I have an issue with running dotnet apps on my arch linux system. A have installed packages that I need (dotnet-runtime and dotnet-sdk) so I can use dotnet in may terminal. Now I can create apps. But I can't run them. There is some problems…
I have an issue with running dotnet apps on my arch linux system. A have installed packages that I need (dotnet-runtime and dotnet-sdk) so I can use dotnet in may terminal. Now I can create apps. But I can't run them. There is some problems…
error : The HTTP request to 'GET https://api.nuget.org/v3/index.json' has timed out after 100000ms.that seems to be the core problem thats a json file it needs to be able to get for things to work.
yes, so why isn't it lol
thats for you to figure out I'm afraid.
try the standard network debugging stuff - test on a secondary device, check DNS records, check IP connectivity, etc
lmfao
this is not an actual networking issue, i can curl that json no problem
well its not a
dotnet
problem eithergood take
Well yeah. dotnet restore is used by millions of people every day, a very large number of those are linux users, and a non-trivial portion of those are arch users
it has to be something with your setup/configuration/system
its not the binary itself
does
dotnet restore --disable-parallel
helpnah, i tried it, i also tried uninstalling host and sdk and doing a fresh reinstall
i had a friend on arch linux confirm it breaks same way for him, he also tried it on a ubuntu docker container and reproduced it there
is the new cli just broken on linux?
Are you using the AUR or the Extra repo one or dotnet-install?
i have uninstalled / reinstalled to try both
right now i have the -bin ones from AUR
i actually spun up a virtualbox opensuse vm to try it there and it worked
but not sure wtf is going on in arch
Works fine for me
Have you installed the host?
i have dotnet-host-bin 8.0.6.sdk302-1
before i tried the aur ones i had the official host
Try running with --verbosity detailed
To get more info
@🍆
i had done that, didn't tell me much more but maybe you can make sense of it
cya in 100000ms
@Trace unfortunately it just looks like a normal restore until the error https://pastebin.mozilla.org/BXN9ycrX
Unknown User•7mo ago
Message Not Public
Sign In & Join Server To View
...whoops
so uninstalling / reinstalling from the official packages or the binaries from AUR did nothing to help
but just doing a manual install
Install .NET on Linux without using a package manager - .NET
Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually extract the binaries.
worked
thanks guys