Using dotnet 6 on Arch linux

Шатравка Даниил 1 Reputation point
2022-07-14T00:05:29.603+00:00

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 with NuGet targets. This is an error message:

/usr/share/dotnet/sdk/6.0.106/NuGet.targets(130,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json.

I have checked a lot of forums but it didn't help me. I tried to install nuget, reinstall dotnet. Now i don't want to reinstall the whole system. )))

So, what should I do, to fix this problem.

Developer technologies | .NET | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2022-07-15T12:21:43.533+00:00

    Hello @Шатравка Даниил ,

    Welcome to Microsoft Q&A forum.

    Could you try to check if this index(package source) has been set correctly in the nuget.config file(~/.nuget/packages)? I also suggest you back it(nuget.config file) up and then remove it(or create a new basic one) and run your apps again.

    Besides, if you use any proxy, you may need to add related settings into the nuget.config file.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.