winget-cli: Failed when searching source; results will not be included: winget
Brief description of your issue
Failed when searching source; results will not be included: winget
Steps to reproduce
winget update
Expected behavior
update / install / find apps with winget
Actual behavior
Failed when searching source; results will not be included: winget
Environment
winget --info
Windows Package Manager v1.4.11071
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.2846
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.11071.0
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 29 (6 by maintainers)
I ran into this problem when I was in an elevated PowerShell prompt for an admin user who may not have ever logged in directly. This meant that winget wasn’t installed, so following the instructions at https://learn.microsoft.com/en-us/windows/package-manager/winget/ I ran the following to install winget:
However, that led to the error discussed in this ticket when trying to use
winget
.Looking in the logs I got an error about
Microsoft.Winget.Source_8wekyb3d8bbwe
so I tried installing that as well withAdd-AppxPackage
and that seemed to work:Log snippet of the failure:
Run powershell with non-admin can get results and update
@khewweifeng thanks so much for testing and helping us to find a solid repro!
Does running
winget source reset --force
as an administrator resolve this?I had the same issue and my solution was simply to upgrade “App Installer” in Microsoft Store.
It Works absolutely!!! I’ve done this in non admin and admin session too, and it works!
I was in the same situation of @khewweifeng
Many thanks guys.
I experience the same behaviour. BTW: Our company AD policy forbids MS Store for users PCs. My local admin account is not in AD domain. But chocolatey works fine as admin. In our domain we have a proxy, but I experience the same issues also without proxy on NAT network.
i always do it via Iso on USB - i chose completely deleting the old partition and reinstalling into a fresh new partition, because using the Overwrite-Method via Cloud or even from within the USB somehow ALWAYS ends up carrying over the bugs that led me to reinstalling in the first place, when i try that.
Without logs, it is hard to say what is happening. You can attach logs here, (
winget --info
will show you where they are) or you can submit a feedback item with http://aka.ms/winget-feedback .Cannot resolve
Here is the screenshot.