-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed when searching source; results will not be included: winget #3303
Comments
Encountering same issue. |
Does running |
before this, the pc already done pc reset with cloud install. |
@JohnMcPMS what else do you suggest here? |
Without logs, it is hard to say what is happening. You can attach logs here, ( |
WinGetCOM-2023-06-07-18-08-42.759.log @JohnMcPMS |
@khewweifeng thanks so much for testing and helping us to find a solid repro! |
The files that start with |
For me, winget throws the same errors with and without privileges, even after resetting source. Afterwards i would probably reinstall this PC using the same iso, to check if that fixes it, provide logs, and if that fails, i can try fetching the iso again and reinstall - that being said i am not sure if these steps are all that helpful. Surprisingly, i reinstalled my main Desktop-PC on Monday using the same Iso on the same stick and its running fine there, even when i seemingly have the same versions of pretty much everything, even the newest winget update. EDIT - Clarification: Windows Store initially installed updates to a bunch of other random stuff on my Laptop (3D Viewer and such). Those Updates ran fine, then it started downloading an update for App-Installer. Winget was open in a Powershell and chugging along until then and both winget and store seized function THE SECOND it installed App-Installer Version 1.19.11071.0. All Store-Apps trying to get updates after that just failed to update after their Download completed. |
|
You can also append "--verbose-logs --logs" to the end of a command and logging will be "verbose", and the folder with the logs will open after the command completes. |
seems something fundamental was broken with that install - now after windows ran a few updates it doesnt even start... guess i will reinstall and see if can reproduce EDIT: Reinstalling the PC fixed it. Could be that Winget-cli and Store broke because both were doing stuff at the same time. -> broken Package-Library or so? Because now i first let Windows Store fully update all the stuff and THEN ran my wingetcommands and it works fine. |
@Shadowphoenix May I know how you reinstall? by using pc reset or usb drive method? because mine was reinstalled with pc reset (cloud install) method |
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. |
I experience the same behaviour. |
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 Looking in the logs I got an error about
Log snippet of the failure:
|
It Works absolutely!!! I was in the same situation of @khewweifeng Many thanks guys. |
The mentioned source package doesn't exist. |
Bases in my experience with this DAILY (I use winget every day), take in consideration 2 things: |
I was facing the same error message "Failed when searching source; results will not be included: winget". Adding my information, in my case I was trying to install git by the command The way it worked for me was signing in as the administrator user. I mention git because, although this instance is a new installation I do remember that I in another machine I have never been able to upgrade git using 'winget' under the similar circumstance, standard user trying to update 'machine' scope installation hence the issue might be reproducible trying with git installer. Also I just found out about the scope issues in case that is related. Best. |
I had the same issue and my solution was simply to upgrade "App Installer" in Microsoft Store. |
Confirmed this fixed it for me as well. Coming from a brand new Windows 11 install. |
I found this thread while experiencing the same issue. Turns out, if you are logged in as a non-admin and elevate your CLI-of-choice (CMD, Powershell, Terminal, etc.), winget will error as observed by myself and others in this thread. If you run your CLI as a non-admin, winget works as expected. It's strange that this behavior is not already compensated for by Windows, as being logged in as a standard user and elevating privileges only to do the sysadmin tasks required is a standard best practice. |
Yup. Brand new PC just today and winget is broken out of the box. |
In a fresh windows 11, was receiving this errors from winget.
The winget version was
Was trying with some commands in the PowerShell, commands like these.
And the errors were fixed. A screen recorded of where you can find de "App Installer" App. Recording.2024-05-25.183617.mp4 |
I have the same issue.
the version of winget shipping in win11 is unable to upgrade itself. @ALERTua: what's confusing about this? |
try Restart the Delivery Optimization service:
and next:
|
|
hi there |
Man Winget is so fragile. I get this seemingly randomly when I elevate to an admin account and it reappears after some time (not sure how long). I used to always just reinstall winget in the admin session and that would fix it. But computerquip-work's solution is much faster. Still, I have to reapply the fix randomly from time to time. I don't understand why winget is so fragile! Does MS seriously not have a single tester who isn't running their main PC as an admin at all times?? Having a separate admin account has been best practice for ages. |
Reinstalling AppInstaller fixed this for me, via. I ran this in a powershell window as admin
|
|
I'm not sure the root cause, but I was able to solve the failure to read the winget source by running the following command. I happened to run it as an admin, but I don't know if that's required. |
This solved it for me. Thank you! |
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
The text was updated successfully, but these errors were encountered: