Unable to load the service index (issues with additional feeds?)
See original GitHub issueSteps 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:
- Created 5 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top GitHub Comments
@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 rundotnet install -g ...
. Another solution is to see which feed is erroring out.You can find your nuget.config and the source feeds in
https://github.com/dotnet/cli/pull/9830