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

List/Upgrade not working #4805

Open
stiny861 opened this issue Sep 12, 2024 · 16 comments
Open

List/Upgrade not working #4805

stiny861 opened this issue Sep 12, 2024 · 16 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@stiny861
Copy link

Brief description of your issue

When running winget list, or winget upgrade, the icon will spin for a few seconds but not return any results. Using the search command reveals results. Using uninstall and install work as long as you specify a package name.

Steps to reproduce

run winget list

Expected behavior

return a list of installed packages

Actual behavior

nothing is returned

Environment

Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.4169
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.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
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Sep 12, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@stephengillie
Copy link

Hi @stiny861,

Can you post the logs from an attempt? These are probably under %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir, and winget --info can verify the location.

As a troubleshooting measure, can you try winget source reset?

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Sep 12, 2024
@denelon
Copy link
Contributor

denelon commented Sep 12, 2024

You can also append "--verbose-logs" to include more details and "--logs" to open the log directory when the command completes.

@denelon denelon added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Sep 12, 2024
@stiny861
Copy link
Author

stiny861 commented Sep 12, 2024

Hi @stiny861,

Can you post the logs from an attempt? These are probably under %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir, and winget --info can verify the location.

As a troubleshooting measure, can you try winget source reset?

Hi @stiny861,

Can you post the logs from an attempt? These are probably under %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir, and winget --info can verify the location.

As a troubleshooting measure, can you try winget source reset?

2024-09-12 15:28:37.116 [CORE] WinGet, version [1.8.1911], activity [{EDD44AFE-4AC0-4CC5-A7C0-3B62FB0E469A}]
2024-09-12 15:28:37.116 [CORE] OS: Windows.Desktop v10.0.22631.4169
2024-09-12 15:28:37.117 [CORE] Command line Args: "C:\Users\name\AppData\Local\Microsoft\WindowsApps\winget.exe" list --logs
2024-09-12 15:28:37.117 [CORE] Package: Microsoft.DesktopAppInstaller v1.23.1911.0
2024-09-12 15:28:37.117 [CORE] IsCOMCall:0; Caller: winget-cli
2024-09-12 15:28:37.122 [CLI ] WinGet invoked with arguments: 'list' '--logs'
2024-09-12 15:28:37.122 [CLI ] Found subcommand: list
2024-09-12 15:28:37.125 [CLI ] Leaf command to execute: root:list
2024-09-12 15:28:37.130 [CLI ] Executing command: list
2024-09-12 15:28:37.136 [REPO] Default source requested, multiple sources available, adding all to source references.
2024-09-12 15:28:37.136 [REPO] Adding to source references msstore
2024-09-12 15:28:37.137 [CORE] Default proxy is not set
2024-09-12 15:28:37.137 [REPO] REST HTTP Client helper does not use proxy
2024-09-12 15:28:37.137 [REPO] Adding to source references winget
2024-09-12 15:28:37.137 [CLI ] Created authentication arguments. Mode: silentPreferred, Account:
2024-09-12 15:28:37.143 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-12 15:28:37.143 [CORE] Found matching extension.
2024-09-12 15:28:37.146 [REPO] Multiple sources available, creating aggregated source.
2024-09-12 15:28:37.146 [REPO] Adding to aggregated source: msstore
2024-09-12 15:28:37.146 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-12 15:28:37.211 [REPO] Response status: 200
2024-09-12 15:28:37.211 [REPO] Authentication node not found. Assuming authentication type none.
2024-09-12 15:28:37.212 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information
2024-09-12 15:28:37.225 [REPO] Response status: 200
2024-09-12 15:28:37.225 [REPO] Authentication node not found. Assuming authentication type none.
2024-09-12 15:28:37.225 [REPO] Adding to aggregated source: winget
2024-09-12 15:28:37.229 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2024-09-12 15:28:37.229 [CORE] Found matching extension.
2024-09-12 15:28:37.246 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2024.912.1823.30_neutral__8wekyb3d8bbwe\Public\index.db'
2024-09-12 15:28:37.247 [REPO] Opened SQLite Index with version [2.0], last write [2024-09-12 12:21:16.000]
2024-09-12 15:28:37.506 [REPO] Creating new SQLite Index with version [Latest] at ':memory:'
2024-09-12 15:28:37.509 [REPO] Reading MSI UpgradeCodes
2024-09-12 15:28:37.706 [REPO] Reading MSI UpgradeCodes
2024-09-12 15:28:38.136 [REPO] Opening database for ReadWrite at 'C:\Users\name\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db'
2024-09-12 15:28:38.136 [REPO] Opened SQLite Index with version [1.3], last write [2023-05-04 07:55:24.000]
2024-09-12 15:28:38.146 [REPO] Opening database for ReadWrite at 'C:\Users\name\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-09-12 15:28:38.146 [REPO] Opened SQLite Index with version [1.3], last write [2024-09-12 08:27:03.000]
2024-09-12 15:28:38.433 [REPO] Found multiple matches for installed package [ARP\Machine\X64{91415F19-4C22-3609-A105-92ED3522D83C}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{91415f19-4c22-3609-a105-92ed3522d83c}'[Exact] Include:UpgradeCode='{aa783a14-a7a3-3d33-95f0-9a351d530011}'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2008redistributable'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2008redistributable(x64)'+'microsoft'[Exact]]
2024-09-12 15:28:38.433 [REPO] Checking match with package id: Microsoft.VCRedist.2008.x64
2024-09-12 15:28:38.433 [REPO] Checking match with package id: Microsoft.VCRedist.2008.x86
2024-09-12 15:28:38.433 [REPO] Found multiple packages with strong match fields
2024-09-12 15:28:38.433 [REPO] Appropriate available package could not be determined
2024-09-12 15:28:38.470 [REPO] Found multiple matches for installed package [ARP\Machine\X64{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{ad8a2fa1-06e7-4b0d-927d-6e54b3d31028}'[Exact] Include:UpgradeCode='{a8d19029-8e5c-4e22-8011-48070f9e796e}'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2005redistributable'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2005redistributable(x64)'+'microsoft'[Exact]]
2024-09-12 15:28:38.470 [REPO] Checking match with package id: Microsoft.VCRedist.2005.x64
2024-09-12 15:28:38.470 [REPO] Checking match with package id: Microsoft.VCRedist.2005.x86
2024-09-12 15:28:38.470 [REPO] Found multiple packages with strong match fields
2024-09-12 15:28:38.470 [REPO] Appropriate available package could not be determined
2024-09-12 15:28:38.545 [REPO] Found multiple matches for installed package [ARP\Machine\X86\qBittorrent] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='qbittorrent'[Exact] Include:NormalizedNameAndPublisher='qbittorrent'+'theqbittorrentproject'[Exact]]
2024-09-12 15:28:38.545 [REPO] Checking match with package id: qBittorrent.qBittorrent
2024-09-12 15:28:38.545 [REPO] Checking match with package id: qBittorrent.qBittorrent.Beta
2024-09-12 15:28:38.545 [REPO] Found multiple packages with strong match fields
2024-09-12 15:28:38.545 [REPO] Appropriate available package could not be determined
2024-09-12 15:28:38.558 [REPO] Found multiple matches for installed package [ARP\Machine\X86{098c6ff7-1af1-4c4a-b86f-c60608c98e31}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{098c6ff7-1af1-4c4a-b86f-c60608c98e31}'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x86)'+'microsoft'[Exact]]
2024-09-12 15:28:38.558 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.5
2024-09-12 15:28:38.558 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.3_1
2024-09-12 15:28:38.558 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.6
2024-09-12 15:28:38.558 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.7
2024-09-12 15:28:38.558 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.8
2024-09-12 15:28:38.558 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.Preview
2024-09-12 15:28:38.567 [REPO] Found multiple matches for installed package [ARP\Machine\X86{20d5df4e-006c-4d6d-a0dc-490d009b9786}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{20d5df4e-006c-4d6d-a0dc-490d009b9786}'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x64)'+'microsoft'[Exact]]
2024-09-12 15:28:38.567 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.5
2024-09-12 15:28:38.567 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.3_1
2024-09-12 15:28:38.567 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.6
2024-09-12 15:28:38.567 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.7
2024-09-12 15:28:38.567 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.8
2024-09-12 15:28:38.567 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.Preview
2024-09-12 15:28:38.573 [REPO] Found multiple matches for installed package [ARP\Machine\X86{33832ff3-5583-4b81-b270-d9fd42760e1a}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{33832ff3-5583-4b81-b270-d9fd42760e1a}'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x64)'+'microsoft'[Exact]]
2024-09-12 15:28:38.574 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.8
2024-09-12 15:28:38.574 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.3_1
2024-09-12 15:28:38.574 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.5
2024-09-12 15:28:38.574 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.6
2024-09-12 15:28:38.574 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.7
2024-09-12 15:28:38.574 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.Preview
2024-09-12 15:28:38.602 [REPO] Found multiple matches for installed package [ARP\Machine\X86{710f4c1c-cc18-4c49-8cbf-51240c89a1a2}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{710f4c1c-cc18-4c49-8cbf-51240c89a1a2}'[Exact] Include:UpgradeCode='{86c9d5aa-f00c-4921-b3f2-c60af92e2844}'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2005redistributable'+'microsoft'[Exact]]
2024-09-12 15:28:38.602 [REPO] Checking match with package id: Microsoft.VCRedist.2005.x86
2024-09-12 15:28:38.602 [REPO] Checking match with package id: Microsoft.VCRedist.2005.x64
2024-09-12 15:28:38.608 [REPO] Found multiple matches for installed package [ARP\Machine\X86{72d830b7-c2f1-4108-b0d6-323a704a9d78}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{72d830b7-c2f1-4108-b0d6-323a704a9d78}'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x86)'+'microsoft'[Exact]]
2024-09-12 15:28:38.608 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.6
2024-09-12 15:28:38.608 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.3_1
2024-09-12 15:28:38.608 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.5
2024-09-12 15:28:38.608 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.7
2024-09-12 15:28:38.608 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.8
2024-09-12 15:28:38.608 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.Preview
2024-09-12 15:28:38.619 [REPO] Found multiple matches for installed package [ARP\Machine\X86{889610CC-4337-4BDB-AC3B-4F21806C0BDE}_is1] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{889610cc-4337-4bdb-ac3b-4f21806c0bde}_is1'[Exact] Include:NormalizedNameAndPublisher='unigetui'+'martícliment'[Exact]]
2024-09-12 15:28:38.619 [REPO] Checking match with package id: SomePythonThings.WingetUIStore
2024-09-12 15:28:38.619 [REPO] Checking match with package id: SomePythonThings.WingetUIStore.Pre-release
2024-09-12 15:28:38.619 [REPO] Found multiple packages with strong match fields
2024-09-12 15:28:38.619 [REPO] Appropriate available package could not be determined
2024-09-12 15:28:38.624 [REPO] Found multiple matches for installed package [ARP\Machine\X86{9A25302D-30C0-39D9-BD6F-21E6EC160475}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{9a25302d-30c0-39d9-bd6f-21e6ec160475}'[Exact] Include:UpgradeCode='{aa783a14-a7a3-3d33-95f0-9a351d530011}'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2008redistributable'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftvisualc2008redistributable(x86)'+'microsoft'[Exact]]
2024-09-12 15:28:38.624 [REPO] Checking match with package id: Microsoft.VCRedist.2008.x64
2024-09-12 15:28:38.624 [REPO] Checking match with package id: Microsoft.VCRedist.2008.x86
2024-09-12 15:28:38.624 [REPO] Found multiple packages with strong match fields
2024-09-12 15:28:38.624 [REPO] Appropriate available package could not be determined
2024-09-12 15:28:38.666 [REPO] Found multiple matches for installed package [ARP\Machine\X86{ecb94bc3-963d-412a-b141-8b7c32ef103f}] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{ecb94bc3-963d-412a-b141-8b7c32ef103f}'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime'+'microsoft'[Exact] Include:NormalizedNameAndPublisher='microsoftwindowsdesktopruntime(x64)'+'microsoft'[Exact]]
2024-09-12 15:28:38.666 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.6
2024-09-12 15:28:38.666 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.3_1
2024-09-12 15:28:38.666 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.5
2024-09-12 15:28:38.666 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.7
2024-09-12 15:28:38.666 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.8
2024-09-12 15:28:38.666 [REPO] Checking match with package id: Microsoft.DotNet.DesktopRuntime.Preview
2024-09-12 15:28:38.698 [REPO] Did not find Id [Twilio.Authy] in tracked source: winget
2024-09-12 15:28:38.837 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/9NRWMJP3717K?Market=US
2024-09-12 15:28:38.858 [REPO] Response status: 200

I did try a winget source reset and a winget source reset --force but it did not fix it.

@stiny861
Copy link
Author

You can also append "--verbose-logs" to include more details and "--logs" to open the log directory when the command completes.

Interestingly when I try winget list --logs, it does not open the log directory. Only reason I found them was stephengillie's comment.

@denelon
Copy link
Contributor

denelon commented Sep 12, 2024

Do you have UniGetUI or SomePythonThings.WingetUIStore performing updates or anything else in the background? Do you have more than one version of either of those installed (you should be able to see that in Windows Apps & Features).

@stiny861
Copy link
Author

Do you have UniGetUI or SomePythonThings.WingetUIStore performing updates or anything else in the background? Do you have more than one version of either of those installed (you should be able to see that in Windows Apps & Features).

Yes i have UniGetUI. THat is actually how i discovered this issue as all of a sudden all of the winget packages stopped updating. It only every updates python and powershell now. I tried to manually go to winget to updating thinking the UI broke, but nothing was showing in there either.

@denelon
Copy link
Contributor

denelon commented Sep 13, 2024

UniGetUI shouldn't cause any bad interactions unless something is regularly calling WinGet APIs to do work. We make sure only one instance of WinGet's functionality is running at a time to avoid possible race conditions.

I'll add Marti to the thread. He's the maintainer for UniGetUI. Maybe he's seen this before or might have an idea.

@marticliment have you seen this before? I'm tempted to see if uninstalling UniGetUI and doing a source reset with a source update would address the core issue here, then reinstalling UniGetUI to see if that helps.

@stiny861
Copy link
Author

Just to see what would happen, I did uninstall UniGetUI and did the source reset but that didn't do anything. I have not reinstalled it yet.

@marticliment
Copy link

Some users have reported to me a similar problem where winget.exe only reports installed packages when ran as administrator. This issue tends to appear after the user has ran the command winget install|uninstall|update somePackage with administrator rights. This problem got fixed for the affected users by deleting the WinGet folders under %localappdata%

@stiny861, perhaps it would be interesting to reinstall UniGetUI and take a look both at both UniGetUI logs and at Package Manager logs (selecting, of course, WinGet (Verbose)), to see how WinGet is responding when called through COM API.

@stiny861
Copy link
Author

This is the UniGet UI log, or part of it at least.
[9/13/2024 3:53:58 PM] Dependency WinGet PowerShell Module for manager Winget is present
[9/13/2024 3:53:58 PM] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[9/13/2024 3:53:58 PM] Found 0 available updates from Pip
[9/13/2024 3:53:58 PM] Found 0 installed packages from Pip
[9/13/2024 3:53:59 PM] Found 0 available updates from Chocolatey
[9/13/2024 3:53:59 PM] Found 0 installed packages from Chocolatey
[9/13/2024 3:54:00 PM] Found 2 installed packages from PowerShell
[9/13/2024 3:54:01 PM] Found 1 available updates from PowerShell
[9/13/2024 3:54:01 PM] Error finding updates on manager Winget
[9/13/2024 3:54:01 PM] System.Runtime.InteropServices.COMException (0x800706BE)
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.Management.Deployment.IPackageCatalogMethods.FindPackages(IObjectReference _obj, FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 6217
at Microsoft.Management.Deployment.PackageCatalog.FindPackages(FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 2578
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetLocalWinGetPackages(INativeTaskLogger logger) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 202
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.<>c__DisplayClass4_0.<GetAvailableUpdates_UnSafe>b__0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 137
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetAvailableUpdates_UnSafe(WinGet Manager) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 137 at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.<GetAvailableUpdates_UnSafe>b__27_0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 133 at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.GetAvailableUpdates_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 133
at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.GetAvailableUpdates() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 189
[9/13/2024 3:54:01 PM] Error finding installed packages on manager Winget
[9/13/2024 3:54:01 PM] System.Runtime.InteropServices.COMException (0x800706BE)
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.Management.Deployment.IPackageCatalogMethods.FindPackages(IObjectReference _obj, FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 6217
at Microsoft.Management.Deployment.PackageCatalog.FindPackages(FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 2578
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetLocalWinGetPackages(INativeTaskLogger logger) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 202
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.<>c__DisplayClass5_0.<GetInstalledPackages_UnSafe>b__0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 157
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetInstalledPackages_UnSafe(WinGet Manager) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 157 at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.<GetInstalledPackages_UnSafe>b__28_0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 138 at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.GetInstalledPackages_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 138
at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.GetInstalledPackages() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 215

This is the verbose package manager log.

Logged native task on manager Winget. Task type is ListInstalledPackages
Process start time: 9/13/2024 3:53:57 PM
Process end time: UNFINISHED

-- Task information
...

The task has not finished yet

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListSources
Process start time: 9/13/2024 3:53:58 PM
Process end time: 9/13/2024 3:53:58 PM

-- Task information
...

The task reported success

——————————————————————————————————————————

Logged native task on manager Winget. Task type is ListUpdates
Process start time: 9/13/2024 3:53:58 PM
Process end time: UNFINISHED

-- Task information
...

The task has not finished yet

——————————————————————————————————————————

@stiny861
Copy link
Author

For additional info, even when running winget from an admin session the packages and updates do not show.

@marticliment
Copy link

As from the shared logs, it looks the issue shows as COMException with Error Code 0x800706BE

[9/13/2024 3:54:01 PM] System.Runtime.InteropServices.COMException (0x800706BE)
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.Management.Deployment.IPackageCatalogMethods.FindPackages(IObjectReference _obj, FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 6217
at Microsoft.Management.Deployment.PackageCatalog.FindPackages(FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 2578
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetLocalWinGetPackages(INativeTaskLogger logger) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 202
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.<>c__DisplayClass4_0.<GetAvailableUpdates_UnSafe>b__0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 137
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetAvailableUpdates_UnSafe(WinGet Manager) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 137 at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.<GetAvailableUpdates_UnSafe>b__27_0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 133 at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.GetAvailableUpdates_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 133
at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.GetAvailableUpdates() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 189
[9/13/2024 3:54:01 PM] Error finding installed packages on manager Winget
[9/13/2024 3:54:01 PM] System.Runtime.InteropServices.COMException (0x800706BE)
at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr)
at ABI.Microsoft.Management.Deployment.IPackageCatalogMethods.FindPackages(IObjectReference _obj, FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 6217
at Microsoft.Management.Deployment.PackageCatalog.FindPackages(FindPackagesOptions options) in C:\SomePrograms\WingetUI-Store\src\WindowsPackageManager.Interop\obj\x64\Release\net8.0-windows10.0.19041.0\Generated Files\CsWinRT\Microsoft.Management.Deployment.cs:line 2578
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetLocalWinGetPackages(INativeTaskLogger logger) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 202
at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.<>c__DisplayClass5_0.<GetInstalledPackages_UnSafe>b__0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 157
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location --- at UniGetUI.PackageEngine.Managers.WingetManager.NativeWinGetHelper.GetInstalledPackages_UnSafe(WinGet Manager) in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGetHelpers\NativeWinGetHelper.cs:line 157 at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.<GetInstalledPackages_UnSafe>b__28_0() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 138 at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at UniGetUI.PackageEngine.Managers.WingetManager.WinGet.GetInstalledPackages_UnSafe() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.Managers.WinGet\WinGet.cs:line 138
at UniGetUI.PackageEngine.ManagerClasses.Manager.PackageManager.GetInstalledPackages() in C:\SomePrograms\WingetUI-Store\src\UniGetUI.PackageEngine.PackageManagerClasses\Manager\PackageManager.cs:line 215

@marticliment
Copy link

What happens if you rename the folder C:\Users\<username>\AppData\Local\Microsoft\WinGet to C:\Users\<username>\AppData\Local\Microsoft\WinGet.old?

This is what I know fixed similar issues for some UniGetUI users

@stiny861
Copy link
Author

Nothing happened. Forder did not get recreated. I tried switching the UI to the bundled winget and got this in the logs.
[9/13/2024 4:58:32 PM] Dependency WinGet PowerShell Module for manager Winget is present
[9/13/2024 4:58:32 PM] LoadComponentsAsync finished executing. All managers loaded. Proceeding to interface.
[9/13/2024 4:58:32 PM] Found 0 available updates from Pip
[9/13/2024 4:58:32 PM] Found 0 installed packages from Pip
[9/13/2024 4:58:33 PM] Found 0 available updates from Chocolatey
[9/13/2024 4:58:33 PM] Found 0 installed packages from Chocolatey
[9/13/2024 4:58:34 PM] Found 2 installed packages from PowerShell
[9/13/2024 4:58:34 PM] Found 445 installed packages from Winget
[9/13/2024 4:58:35 PM] Found 32 available updates from Winget
[9/13/2024 4:58:35 PM] Found 1 available updates from PowerShell

It is now showing packages and updates, so it looks like something in the embedded winget stopped working.

So to be clear, the UI now shows packages, but the CLI does not.

@stiny861
Copy link
Author

Does anyone have any additional thoughts or things for me to try to troubleshoot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

4 participants