Featured image of post Fix: winget not updating after upgrade

Fix: winget not updating after upgrade

No installed package found matching input criteria.

No installed package found matching input criteria.

After upgrading winget, I received this cryptic message any time I tried to update my packages. To help others, and my future self, the solution is the following:

1
2
winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe
winget source reset --force

All this does is uninstall the current package sources, like you might see on debian linux with repos, and then resets the locations.

reset

The reset subcommand resets the client back to its original configuration, and removes all sources except the default. Only use this subcommand in rare cases. Because the command changes user access, using reset requires administrator privileges.

Because the reset command removes all sources, you must force the action by using the –force option.

Extra

In your PowerShell $PROFILE you can use the following PowerShell function to make updates and upgrades a smoother process by hiding click-throughs and combining commands (if you’re using scoop and winget).

1
2
3
4
5
6

function Update-ScoopWinget {
  winget update --all
  winget upgrade --all --silent --accept-package-agreements --accept-source-agreements --force
  scoop update *
}
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy