You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
While in SSH, running WinGet raises the ResourceUnavailable error. #513
While in Windows 10 Pro using SSH, running WinGet raises an error stating that the file cannot be accessed by the system. Otherwise (without SSH), the command runs just fine.
Steps to reproduce
Start an SSH using an administrator's credentials
Run WinGet
Expected behavior
Should be execute and be accessible by the system as we usually would without using SSH.
Actual behavior
ResourceUnavailable: Program 'winget.exe' failed to run: The file cannot be accessed by the system.
Environment
[winget --info]
Windows Package Manager v0.1.41821 Preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19041.388
Package: Microsoft.DesktopAppInstaller v1.0.41821.0
Any other software?
Reacted by Slenkis, Jakub Čábera, belveruski, Falko Menge, clayms, lovetheguitar, jantari and SilverMira
I suspect that this is due to the App Execution Alias that is used to expose winget.exe from a UWP package. I don't know though if the issue is that SSH is doing something beyond CreateProcess and is not happy with the stub file, or if you are trying to SSH into another session/machine/user that does not have the package registered.
Generally the resolution to this falls into the category of requesting a different distribution mechanism, ie an unpackaged exe or msi to install the package manager from.
all SSH logins are connected into windows against NT AUTHORITY\Network .
running store apps (in this case winget) requires connecting into windows againt NT AUTHORITY\Interactive aka GUI and hence they can not be run from SSH logins aka NT AUTHORITY\Network.
AFAIK, this is by design behavior and can only be changed if winget team separates winget from appInstaller or from store.
Thanks for the explanation. Unfortunately the main reason I installed winget was to be able to run it remotely.
Reacted by Muhammad Asif Mohtesham, Frieder Bluemle, Philippe Blain and jantari
I believe this issue is fully external, and there is a bug tracking this at PowerShell/Win32-OpenSSH#1632 be sure to add your 👍 to help raise priority.
Activity
belveruski commentedon Jul 27, 2020
Same problem.
Windows 10 Pro, 2004 Build 19041
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
bbqsrc commentedon Jan 4, 2021
This is still happening.
JohnMcPMS commentedon Jan 7, 2021
I suspect that this is due to the App Execution Alias that is used to expose winget.exe from a UWP package. I don't know though if the issue is that SSH is doing something beyond CreateProcess and is not happy with the stub file, or if you are trying to SSH into another session/machine/user that does not have the package registered.
Generally the resolution to this falls into the category of requesting a different distribution mechanism, ie an unpackaged exe or msi to install the package manager from.
bbqsrc commentedon Jan 7, 2021
The user I ssh into is the user that installed winget in the first place. 😄
I am happy with any installation mechanism, so the moment that is possible, let me know and I can test if it resolves this issue.
peter-dolkens commentedon Mar 24, 2021
I believe this is actually an issue in OpenSSH:
PowerShell/Win32-OpenSSH#1632
denelon commentedon Mar 24, 2021
I'll keep this Issue open so we can track the PowerShell Issue to see if that resolves this problem.
chrisbrasington commentedon Jun 4, 2021
Thanks for the explanation. Unfortunately the main reason I installed winget was to be able to run it remotely.
petervk commentedon Jun 21, 2021
Is there any way to get this to work? I would love to be able to SSH into my other windows machines to run winget to update them.
Masamune3210 commentedon Jul 13, 2021
Im not sure what you are trying to accomplish complaining about MSIX here....
denelon commentedon Sep 23, 2021
I believe this issue is fully external, and there is a bug tracking this at PowerShell/Win32-OpenSSH#1632 be sure to add your 👍 to help raise priority.