Open wli3 opened 4 years ago
From @wli3 on Sunday, April 26, 2020 2:41:38 AM
Is the error actually says C:\Users*.dotnet
with a star in it (instead of you edited our your name)?
If so, the error might be caused by setting a non exists DOTNET_CLI_HOME
or USERPROFILE
environment variable
From @Calicedetabarnac on Sunday, April 26, 2020 8:36:37 PM
Hi, No it's my name there, the path is good until 10gaxnri.bop where this folder is not created Thank you
From @jonsequitur on Monday, April 27, 2020 6:31:31 PM
The correct tool name to install is Microsoft.dotnet-interactive
. Have you tried uninstalling that and also, if you previously installed it as dotnet-interactive
, that as well?
From @Calicedetabarnac on Monday, April 27, 2020 9:36:25 PM
Hi jonsequitur, none of the installed worked, I've just ran the uninstalled followed by the installed, same issue
dotnet tool uninstall --global Microsoft.dotnet-interactive
A tool with the package Id 'microsoft.dotnet-interactive' could not be found.
Tools are uninstalled using their package Id which may be different
from the tool name you use when calling the tool. You can find the tool names
and the corresponding package Ids for installed tools using the command
'dotnet tool list'.
dotnet tool install --global Microsoft.dotnet-interactive
Failed to install tool package 'microsoft.dotnet-interactive': Could not find a part of the path 'C:\Users\Bob\.dotnet\tools\.store\.stage\f5rj3bwr.h5d\microsoft.dotnet-interactive'.
Tool 'microsoft.dotnet-interactive' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
From @jonsequitur on Monday, April 27, 2020 11:40:10 PM
Did you try dotnet tool uninstall --global dotnet-interactive
?
From @Calicedetabarnac on Tuesday, April 28, 2020 2:25:23 AM
Did you try
dotnet tool uninstall --global dotnet-interactive
?dotnet tool uninstall --global dotnet-interactive
A tool with the package Id 'dotnet-interactive' could not be found.
Tools are uninstalled using their package Id which may be different from the tool name you use when calling the tool. You can find the tool names and the corresponding package Ids for installed tools using the command 'dotnet tool list'.
From @wli3 on Tuesday, April 28, 2020 4:26:56 AM
@jonsequitur you move this issue to dotnet/sdk.
I did get several bug report have similar problem. But I could never repro it. I suspect something to do with antivirus scan or race condition on IO access
This line might caused the race https://github.com/dotnet/sdk/blob/master/src/Cli/dotnet/ToolPackage/ToolPackageInstaller.cs#L113
Is it possible to have more detailed logs?
Sorry it is no more detailed log. Although from the error message, I can tell where the error happened. Should be in this line
Can I help in any way?, any updates? Thanks
Thank you! I think I can keep going with existing information. I don't have any update for now
I'm trying to follow this guide I have similar problem:
C:\Users\sergi>dotnet tool install -g --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive
Attempting to cancel the build...
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): warning MSB4220: Waiting for the currently executing task "RestoreTask" to cancel. [C:\Users\sergi\AppData\Local\Temp\sxwozflg.ror\restore.csproj]
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): warning MSB4220: Waiting for the currently executing task "RestoreTask" to cancel. [C:\Users\sergi\AppData\Local\Temp\sxwozflg.ror\restore.csproj]
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): warning MSB4220: Waiting for the currently executing task "RestoreTask" to cancel. [C:\Users\sergi\AppData\Local\Temp\sxwozflg.ror\restore.csproj]
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): warning MSB4220: Waiting for the currently executing task "RestoreTask" to cancel. [C:\Users\sergi\AppData\Local\Temp\sxwozflg.ror\restore.csproj]
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): warning MSB4220: Waiting for the currently executing task "RestoreTask" to cancel. [C:\Users\sergi\AppData\Local\Temp\sxwozflg.ror\restore.csproj]
C:\Program Files\dotnet\sdk\3.1.301\NuGet.targets(128,5): error : Restore canceled! [C:\Users\sergi\AppData\Local\Temp\sxwozflg.ror\restore.csproj]
The tool package could not be restored.
Tool 'microsoft.dotnet-interactive' failed to install. This failure may have been caused by:
*** You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.**
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
tool resolver cache folder entry needs its own environment variable separate from DOTNET_CLI_HOME
From @Calicedetabarnac on Thursday, April 23, 2020 12:39:31 AM
Describe the bug
I'm trying to install Microsoft.dotnet-interactive tool but have this issue, I tried the following commands
Failed to install tool package 'microsoft.dotnet-interactive': Could not find a part of the path 'C:\Users\*\.dotnet\tools\.store\.stage\10gaxnri.bop\microsoft.dotnet-interactive'. Tool 'microsoft.dotnet-interactive' failed to install. This failure may have been caused by:
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
Runtime Environment: OS Name: Windows OS Version: 10.0.18362 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.100\
Host (useful for support): Version: 3.1.0 Commit: 65f04fb6db
.NET Core SDKs installed: 2.1.604 [C:\Program Files\dotnet\sdk] 2.1.802 [C:\Program Files\dotnet\sdk] 3.1.100 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download
Any idea? Thank you
Did this error occur while using
dotnet interactive
?Screenshots
N/A
Please complete the following:
Copied from original issue: dotnet/interactive#352