Closed clin1234 closed 3 days ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Could you try running winget source reset --force
from an administrative terminal and then check again?
[comment]: <[Policy] Issue-Bug>
Nope. Running winget update --verbose
still hangs. Had to Ctrl-C.
Output:
C:\Users\ךינשגכהד>winget update --verbose-logs
Failed in attempting to update the source: winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8007139f : The group or resource is not in the correct state to perform the requested operation.
Here's the attatched log: WinGet-2024-06-22-15-23-44.971.log
How about updating the source manually through the command:
Add-AppxPackage -Path "https://cdn.winget.microsoft.com/cache/source.msix"
(If for some reason that command doesn't work, you can download the source package manually from the URL and double-click on the .msix file to run)
Did't work. Tried the pwsh command and manual download.
Here are the logs: WinGet-2024-06-23-09-03-08.165.log WinGet-2024-06-23-09-01-17.434.log AppInstaller-2024-06-23-09-00-52.010.log AppInstaller-2024-06-23-09-00-52.882.log AppInstaller-2024-06-23-09-00-45.856.log AppInstaller-2024-06-20-21-30-37.317.log WinGet-2024-06-23-08-50-56.829.log WinGet-2024-06-23-08-49-48.980.log
All the above logs end abruptly at
"2024-06-23 08:50:57.381 [REPO] Adding to aggregated source: winget"
One of them having
"2024-06-22 15:26:30.547 [FAIL] C:__w\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(520)\WindowsPackageManager.dll!00007FFA71743B79: (caller: 00007FFA7174546A) Exception(1) tid(3d14) 8007139F The group or resource is not in the correct state to perform the requested operation. "
Which indicates the sources are in a bad state.
Could you run "winget source reset --force" again and share the logs? Worst case, we may need to investigate some additional data files at: C:\Users\
Resetting the source this time allowed listing updates and searching. Here are the logs
WinGet-2024-06-24-07-43-18.540.log WinGet-2024-06-24-07-42-54.702.log WinGet-2024-06-24-07-42-47.744.log
Resetting the source this time allowed listing updates and searching. Here are the logs
WinGet-2024-06-24-07-43-18.540.log WinGet-2024-06-24-07-42-54.702.log WinGet-2024-06-24-07-42-47.744.log
Thanks. Glad it's working again. The logs do show reset is successful (user_sources and sources_metadata are removed). I can only guess the previous reset attempt did not complete.
Brief description of your issue
Attempting to list installed packages updates hangs, or update sources hangs
Steps to reproduce
winget list --verbose
orwinget update --verbose
Expected behavior
List installed packages or updates.
Actual behavior
The indicator simply swirls around indefinitely.
Log attatched. WinGet-2024-06-21-15-51-26.570.log
Environment