Brief description of your issue
winget upgrade says:
Failed in attempting to update the source: winget
Name Id Version Available Source
-----------------------------------------------------------------------------------------------------------------
..
Will try solutions at Issue #1656 next
Edit: winget source reset --force seems to (not) have worked:
PS > winget source reset --force
Resetting all sources...Done
PS > winget upgrade
**Failed** in attempting to update the source: **winget**
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").
Do you agree to all the source agreements terms?
[Y] Yes [N] No: Y
Name Id Version Available Source
-----------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run winget upgrade
Expected behavior
Download fresh package list.
Actual behavior
Some kind of exception in WindowsPackageManager.dll
Log from winget upgrade --verbose-logs:
2022-11-04 09:00:33.493 [CORE] WinGet, version [1.3.2691], activity [{08B9A50E-A084-4E6B-A786-E7914D0114DC}]
2022-11-04 09:00:33.493 [CORE] OS: Windows.Desktop v10.0.22000.1165
2022-11-04 09:00:33.493 [CORE] Command line Args: "C:\Users\henk\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade --verbose-logs
2022-11-04 09:00:33.493 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-04 09:00:33.493 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 09:00:33.498 [CLI ] WinGet invoked with arguments: 'upgrade' '--verbose-logs'
2022-11-04 09:00:33.498 [CLI ] Found subcommand: upgrade
2022-11-04 09:00:33.499 [CLI ] Leaf command to execute: root:upgrade
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 09:00:33.501 [CORE] Admin settings was not found
2022-11-04 09:00:33.501 [CLI ] Executing command: upgrade
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 09:00:33.501 [YAML] Detected UTF-8
2022-11-04 09:00:33.501 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 09:00:33.501 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-11-04 09:00:33.501 [REPO] Adding to source references msstore
2022-11-04 09:00:33.502 [REPO] Adding to source references winget
2022-11-04 09:00:33.502 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 09:00:33.502 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 09:00:33.502 [YAML] Detected UTF-8
2022-11-04 09:00:33.502 [REPO] Source past auto update time [5 mins]; it has been at least 1456 mins
2022-11-04 09:00:33.634 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(1) tid(3614) 8051100F
2022-11-04 09:00:33.635 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFD30F0F321: (caller: 00007FFD30DF195B) LogHr(1) tid(3614) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(1) tid(3614) 8051100F ]
2022-11-04 09:00:33.635 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 09:00:35.676 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(2) tid(3614) 8051100F
2022-11-04 09:00:35.676 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(516)\WindowsPackageManager.dll!00007FFD30F0E909: (caller: 00007FFD30CDE155) LogHr(2) tid(3614) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(2) tid(3614) 8051100F ]
2022-11-04 09:00:35.676 [REPO] Failed to update source: winget
2022-11-04 09:00:35.676 [REPO] Multiple sources available, creating aggregated source.
Environment
winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.1165
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
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
Brief description of your issue
winget upgradesays:Will try solutions at Issue #1656 next
Edit:
winget source reset --forceseems to (not) have worked:Steps to reproduce
Run
winget upgradeExpected behavior
Download fresh package list.
Actual behavior
Some kind of exception in WindowsPackageManager.dll
Log from
winget upgrade --verbose-logs:Environment