-
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
Uninstall via SSH: "A specified logon session does not exist. It may already hav e been terminated." error with several products #2537
Comments
When you are using ssh, are you connecting to a specific user/Windows account that has winget provisioned, or are you connecting to the system account? The Windows Package Manager is distributed with the App Installer which is an MSIX package. The package needs to be registered for an "interactive" account that has been logged into. If you are using the "system" context, the package is not registered. |
Thanks for your answer. |
I should have stated "interactive session". The Windows Package Manager doesn't get registered for an account until a user has "logged in" to an account on the local machine. If you log on as "system" then you can use winget in that account. If you're just remoting in, it may not be registered. Using my AAD account, I was able to:
and subsequently:
|
I am not sure to understand, but I think I have to insist on the fact that everything work (install apps from both msstore and winget sources, list apps, uninstall apps installed via winget...) EXCEPT uninstall some apps, like for instance Phone Link, Edge, Xbox Bar... |
having the same issue |
Same issue here. |
@ClementDelannoySlateDigital we've identified this Issue as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the referenced Issue. Thanks for your report! Be sure to add your 👍 to the other issue to help raise the priority. |
Hello, |
This is a bit troublesome considering that I am trying to remotely administer a bunch of VMs and winget commands are unable to resolve remotely. |
Brief description of your issue
Using winget via ssh (Open SSH), I cannot uninstall most of the builtin apps.
For instance, running 'winget uninstall "Phone Link"' will fail via ssh, but not in a graphical session.
Steps to reproduce
Run
winget uninstall "Phone Link"
via an ssh session
Expected behavior
The product is uninstalled
Actual behavior
>winget uninstall "Phone Link" Failed in attempting to update the source: winget Found Phone Link [Microsoft.YourPhone_8wekyb3d8bbwe] Starting package uninstall... Uninstall failed with exit code: 0x80070520 : A specified logon session does not exist. It may already have been terminated.
Environment
>winget --info Windows Package Manager v1.3.2091 Copyright (c) Microsoft Corporation. All rights reserved. Windows: Windows.Desktop v10.0.19044.2006 System Architecture: X64 Package: Microsoft.DesktopAppInstaller v1.18.2091.0
The text was updated successfully, but these errors were encountered: