-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While in SSH, running WinGet raises the ResourceUnavailable error. #513
Comments
Same problem. Windows 10 Pro, 2004 Build 19041 |
This is still happening. |
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. |
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. |
I believe this is actually an issue in OpenSSH: |
I'll keep this Issue open so we can track the PowerShell Issue to see if that resolves this problem. |
all SSH logins are connected into windows against 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. |
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. |
Correction :
Nothing to do with store or Winget or AppInstaller. MSIX packaging requirement is the culprit. MSIX is this much crap, only supports per user install , no ssh, no winRM , no all users install/uninstall, no running under system account , no drivers supports etcs and so on. Note : This MSIX packaging crap derivates from APPX format which was the app packaging format of another disaster app model known as UWP apps. this crap format has been from there from 2018 yet None of Microsoft's own heavy duty apps use this MSIX crap, example- VS Code , Visual Studio , Microsoft Edge (chromium), Office, Teams ; all of them use MSI or traditional EXE format. Ref : |
Im not sure what you are trying to accomplish complaining about MSIX here.... |
point 0 : don't expect me to get into a sort of debate because I won't. but he defense needs to understand some logistics. |
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. |
Brief description of your issue
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
WinGet
Expected behavior
Should be execute and be accessible by the system as we usually would without using SSH.
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: