How to Fix PowerShell Update Errors with Winget?

0
65
Asked By CuriousCat42 On

I'm trying to update PowerShell using Winget, but I'm running into some issues. When I use the command "winget list --id Microsoft.PowerShell --upgrade-available", I get an error saying 'Failed when searching source; results will not be included: winget' and 'No installed package found matching input criteria.'

Then, when I attempt to update with "winget install --id Microsoft.PowerShell", I see the error: 'Failed when searching source: winget' and 'An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing.' Winget is installed on my system, so I'm wondering if I'm doing something wrong or if there's another issue.

2 Answers

Answered By HelpfulWanderer On

Just a heads up, Winget won’t update the version of PowerShell that comes with Windows itself. If it was bundled with your OS, it might not show up for updates. You can check by looking at the version of PowerShell in your system settings, or running the command "$PSVersionTable.PSVersion" in PowerShell.

Answered By TechSavvy_123 On

You might want to try resetting the Winget source with the command: "winget source reset winget" followed by "winget source update". That can often help clear up any issues with searching for packages.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.