question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load the service index (issues with additional feeds?)

See original GitHub issue

Steps to reproduce

I am playing around with dotnet tool install and very stuck. I get the “Unable to load the service index” error, but the ROOT cause I believe is that it’s attempting to look (for some reason) at my company’s nuget feed…

No idea why, or how to change it? Installing a tool should have nothing to do with this nuget feed, but I guess I’m somehow pointing to the wrong feed?

If I remove our feed from the Nuget.config it works as expected but I would rather not have to do that of course.

Expected behavior

I can install dotnet tools

Actual behavior

Unable to load the service index error : Unable to load the service index for source ----[C:\Users\jbooth1\AppData\Local\Temp\mz02lxyw.emb\restore.csproj] C:\Program Files\dotnet\sdk\2.1.302\NuGet.targets(114,5): error : Response status code does not indicate success: 401 (Unauthorized).

** I replaced the path to the nuget feed with ---- but it should be noted that it’s pointing to my company nuget feed, which has nothing to do with installing this tool…

Environment data

dotnet --info output: .NET Core SDK (reflecting any global.json): Version: 2.1.302 Commit: 9048955601

Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.302\

Host (useful for support): Version: 2.1.2 Commit: 811c3ce6c0

.NET Core SDKs installed: 1.0.0-preview2-003131 [C:\Program Files\dotnet\sdk] 1.1.0 [C:\Program Files\dotnet\sdk] 2.0.0 [C:\Program Files\dotnet\sdk] 2.1.2 [C:\Program Files\dotnet\sdk] 2.1.4 [C:\Program Files\dotnet\sdk] 2.1.100 [C:\Program Files\dotnet\sdk] 2.1.101 [C:\Program Files\dotnet\sdk] 2.1.102 [C:\Program Files\dotnet\sdk] 2.1.103 [C:\Program Files\dotnet\sdk] 2.1.104 [C:\Program Files\dotnet\sdk] 2.1.200 [C:\Program Files\dotnet\sdk] 2.1.301 [C:\Program Files\dotnet\sdk] 2.1.302 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

16reactions
wli3commented, Aug 27, 2018

@JBoothUA sorry for the delay. You could use https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script to download the latest 2.2.1xx branch’s build. And add --ignore-failed-sources when you run dotnet install -g .... Another solution is to see which feed is erroring out.

You can find your nuget.config and the source feeds in

windows: %appdata%\NuGet\nuget.config 
mac:  ~/.nuget/NuGet/NuGet.Config
3reactions
wli3commented, Aug 14, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Nuget connection attempt failed "Unable to load the service ...
I was trying to add an Azure Artifacts NuGet source. I followed Microsoft's instructions here, with one critical oversight. I forgot to replace ......
Read more >
Fixing NuGet error: Unable to load the service index for source
Solution 1. Use a NuGet config file. · Solution 2. Verify that your Personal Access Token hasn't expired · Solution 3. Run dotnet...
Read more >
VS 2022 - Unable to load the service index for source feed ...
sln file on my disk in both VS. Yesterday I had to migrate to a new laptop because of other reasons and the...
Read more >
Q&A
1.Error : Unable to load the service index for source https://pkgs.dev.azure.com/azurecom/_packaging/OnyxNugetsFeed/nuget/v3/index.json. 2.
Read more >
error NU1301: Unable to load the service index for source
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem. * You mistyped the name of the tool....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found