Skip to content

WinGet is unable to interact with winget source from ssh session #5579

Description

@letrud

Brief description of your issue

Winget fails to retrieve source information for the "winget source" when "winget find python" is executed in a ssh session on a newly created windows 11 box with a newly created local admin user.

To fix the problem I had to run this from the same session, and it started working:
Add-AppxPackage -Register 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2025.707.1316.40_neutral__8wekyb3d8bbwe\AppxManifest.xml' -DisableDevelopmentMode -verbose

Steps to reproduce

  1. Create a new local user
  2. Make the local user local admin (that's what i did at least)
  3. Login with ssh
  4. Run winget find python

Expected behavior

"winget find python" should list packages from all sources (msstore and winget)

Actual behavior

user1@win11box C:\repos\cuda12>winget find python
Failed when searching source; results will not be included: winget
Name Id Version Source

Python 3.13 9PNRBTZXMB4Z Unknown msstore
Python 3.12 9NCVDN91XZQP Unknown msstore
Python 3.11 9NRWMJP3717K Unknown msstore
Python 3.10 9PJPW5LDXLZ5 Unknown msstore
Python 3.9 9P7QFQMJRFP7 Unknown msstore
Python 3.7 9NJ46SX7X90P Unknown msstore
Python 3.8 9MSSZTT1N39L Unknown msstore
Python Install Manager (Beta) 9NQ7512CXL7T Unknown msstore
计算机二级 Python 考试题库 9PBKTNDS9VSH Unknown msstore
CodeSnack Python 9N1QZ93HGFL2 Unknown msstore
Python Tkinter Designer 9NMT7V9NQWZZ Unknown msstore
InstantPython 9WZDNCRDC1W5 Unknown msstore

Relevant winget logs:
2025-07-07 14:58:34.215 [REPO] Authentication node not found. Assuming authentication type none.
2025-07-07 14:58:34.215 [REPO] User agent caller found: winget-cli
2025-07-07 14:58:34.216 [REPO] Adding to aggregated source: winget
2025-07-07 14:58:34.218 [CORE] Did not find extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2025-07-07 14:58:34.218 [REPO] Package not found Microsoft.Winget.Source_8wekyb3d8bbwe
2025-07-07 14:58:34.219 [FAIL] C:__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(446)\WindowsPackageManager.dll!00007FFF34BE4113: (caller: 00007FFF34BC8024) Exception(1) tid(3a34) 8A15000F
2025-07-07 14:58:34.219 [FAIL] C:__w\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(852)\WindowsPackageManager.dll!00007FFF34CBF077: (caller: 00007FFF349E5AB9) LogHr(1) tid(3a34) 8A15000F Msg:[C:__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(446)\WindowsPackageManager.dll!00007FFF34BE4113: (caller: 00007FFF34BC8024) Exception(1) tid(3a34) 8A15000F ]

2025-07-07 14:58:34.219 [REPO] Failed to open available source: winget

Environment

Windows 11 24H2 26100.4349
Windows Package Manager v1.11.400
Windows: Windows.Desktop v10.0.26100.4349
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.400.0

winget source list
Name    Argument                                      Explicit
--------------------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 false
winget  https://cdn.winget.microsoft.com/cache        false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Author-FeedbackIssue needs attention from issue or PR author

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions