Skip to content
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

"winget source update" doesn't work via ssh #3476

Closed
Rarder44 opened this issue Jul 27, 2023 · 2 comments
Closed

"winget source update" doesn't work via ssh #3476

Rarder44 opened this issue Jul 27, 2023 · 2 comments
Labels
Resolution-Duplicate Issue is a duplicate
Milestone

Comments

@Rarder44
Copy link

Brief description of your issue

connecting via ssh to a machine and running the "winget source update" command the winget source (and other sources using the "source.msix" package) is not updated.
( as in screenshot )
Fatto = Done
Annullato = Canceled
image

every now and then the message "done" comes out but in any case the source is not updated (by relaunching the command the loading bar reappears)

if the same command is run locally, everything works.

I attach the winget log:
WinGet-2023-07-27-14-54-26.620.log

however, I made a powershell script that downloads the "source.msix" packages one by one and installs them; the workaround also works via ssh and by re-running the "winget source update" command the packages are detected as updated.

updateWingetSources.ps1.txt

the script should also work in multiple languages but since it relies on a regex to find some data and i only tested it in italian, give me some feedback....
( by the way, sorry but the comments are in Italian... )

Steps to reproduce

PC 1:
install OpenSSH
install / update winget ( 1.5.1881 / 1.6.1573-preview i tried both )

PC 2:
connect via ssh to PC 1 ( ssh admin@192.168.XXX.XXX )
run the command "winget source update"
(warning: if there are no packages to update, everything seems to work but simply because it is not installing any ".msix")

Expected behavior

that the sources are updated correctly

Actual behavior

the "source.msix" sources are detected to be updated but are not installed
image

Environment

PC 1 (as in the example): 


Gestione pacchetti Windows v1.5.1881
Copyright (c) Microsoft Corporation. Tutti i diritti sono riservati.

Windows: Windows.Desktop v10.0.19045.3271
Architettura di sistema: X64
Pacchetto: Microsoft.DesktopAppInstaller v1.20.1881.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Collegamenti
------------------------------------------------------------------------------------
Informativa sulla privacy    https://aka.ms/winget-privacy
Contratto di licenza         https://aka.ms/winget-license
Comunicazioni di terze parti https://aka.ms/winget-3rdPartyNotice
Home page                    https://aka.ms/winget
Condizioni di Windows Store  https://www.microsoft.com/en-us/storedocs/terms-of-sale

Impostazione amministrazione              Stato
------------------------------------------------------
LocalManifestFiles                        Disabilitate
BypassCertificatePinningForMicrosoftStore Disabilitate
InstallerHashOverride                     Disabilitate
LocalArchiveMalwareScanOverride           Disabilitate
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Jul 27, 2023
@denelon
Copy link
Contributor

denelon commented Jul 27, 2023

Duplicate of #1474

WinGet currently doesn't work via SSH. This is most likely an outcome of the App Installer being installed as an MSIX package and the differences between the "account" a user is connecting to when they use SSH.

@microsoft-github-policy-service
Copy link
Contributor

Hello @Rarder44,

We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!

Template: msftbot/duplicate/closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Issue is a duplicate
Projects
None yet
Development

No branches or pull requests

2 participants