Open ArtistYay opened 2 hours ago
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
Brief description of your issue
Running the command
winget upgrade --all
and I'm getting an error ofAn unexpected error occurred while executing the command: Bad optional access
.Things I've tried:
winget source reset --force; winget source update
Manually Add
winget.exe
to PATH. I saw that I didn't have winget in my environment variable path so I added it with theC:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_8.1.19411.0_x64__8wekyb3d8bbwe
directory.I Tried to uninstall and reinstall the App installer but got a grey box.
Not sure if this will help but can't find the executable in file explorer.
Lastly, I tried renaming the pinning database but nothing like that is found in my file explorer.
System Specs:
winget --version v1.9.25180
Edition: Windows 11 Home Version: 23H2 OS build: 22631.4460 Experience: Windows Feature Experience Pack 1000.22700.1047.0
Here is my logs -> WinGet-2024-11-15-08-26-37.950.log
I also seen issue #4909 but don't think the issue was resloved.
Steps to reproduce
Run the
winget upgrade --all
commandExpected behavior
To upgrade the packages.
Actual behavior
Not upgrading the packages.
Environment