winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Failed when searching Source

Open mcswainy opened this issue 2 years ago • 16 comments
trafficstars

Brief description of your issue

When I run winget upgrade, I get an error of : "Failed when searching source; results will not be included: msstore". And package update fails.

Steps to reproduce

run winget upgrade, I get an error of : "Failed when searching source; results will not be included: msstore". And package update fails.

Expected behavior

Winget should update the installed packages.

Actual behavior

I am unable to update/install packages.

Environment

C:\windows\system32>winget --info
Windows Package Manager v1.5.1572
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.3086
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1572.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

mcswainy avatar Jul 10 '23 12:07 mcswainy

Went looking through the Log files and I see this: `2023-07-10 08:11:30.805 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(137)\WindowsPackageManager.dll!00007FFFF1C15783: (caller: 00007FFFF1C150E8) Exception(1) tid(e33c) 8A150044 2023-07-10 08:11:30.805 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\CompositeSource.cpp(1084)\WindowsPackageManager.dll!00007FFFF1D0E312: (caller: 00007FFFF1BED6E3) LogHr(1) tid(e33c) 8A150044 Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Rest\Schema\HttpClientHelper.cpp(137)\WindowsPackageManager.dll!00007FFFF1C15783: (caller: 00007FFFF1C150E8) Exception(1) tid(e33c) 8A150044 ]

2023-07-10 08:11:30.805 [REPO] Failed to search source for correlation: msstore 2023-07-10 08:11:30.805 [REPO] Did not find Id [XPFCG5NRKXQPKT] in tracked source: msstore`

mcswainy avatar Jul 10 '23 12:07 mcswainy

Having same issue here. Doesn't matter if I run PS elevated or not.

MiketheMaker18 avatar Jul 26 '23 15:07 MiketheMaker18

same issue here - any solution yet?

PCAssistSoftware avatar Jul 27 '23 11:07 PCAssistSoftware

I had the same error message, and I was able to fix the issue by manually updating the App Installer in the Microsoft Store.

tmcknight avatar Jul 27 '23 12:07 tmcknight

I had the same error message, and I was able to fix the issue by manually updating the App Installer in the Microsoft Store.

Unfortunately I had already tried that and it hasn't solved it for me

PCAssistSoftware avatar Jul 27 '23 12:07 PCAssistSoftware

Brief description of your issue

When I run winget upgrade, I get an error of : "Failed when searching source; results will not be included: msstore". And package update fails.

Steps to reproduce

run winget upgrade, I get an error of : "Failed when searching source; results will not be included: msstore". And package update fails.

Expected behavior

Winget should update the installed packages.

Actual behavior

I am unable to update/install packages.

Environment

C:\windows\system32>winget --info
Windows Package Manager v1.5.1572
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.3086
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1572.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

I reset the source and that helped me.

I did, -winget source reset msstore

ghost avatar Aug 23 '23 09:08 ghost

My msstore source was listed as https://storeedgefd.dsx.mp.microsoft.com/v9.0, which returns

<Error>
<Message>No HTTP resource was found that matches the request URI 'https://useast.storeedgefd-origin.xbetservices.akadns.net/v9.0'.</Message>
</Error>

Don't know how that URL ended up in winget.

sfiruch avatar Sep 26 '23 08:09 sfiruch

I have the same problem. image

caglaryalcin avatar Sep 27 '23 12:09 caglaryalcin

It look like my msstore URL contain data on backward. https://storeedgefd.dsx.mp.microsoft.com/v9.0/information But it still say update failed for msstore. Could be there is msstore data was corrupted? Winget still run normally and update winget source normally without the msstore. Screenshot (4) Screenshot (6)

BrandonWanHuanSheng avatar Oct 14 '23 15:10 BrandonWanHuanSheng

@denelon. Where is the endpoint? Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a150044 : The rest source endpoint is not found.

BrandonWanHuanSheng avatar Oct 30 '23 09:10 BrandonWanHuanSheng

Running this from an elevated prompt fixed it for me:

winget source reset msstore

This is the solution from https://github.com/microsoft/winget-cli/issues/3419#issuecomment-1689635324 above, just formatted to be easier to notice and adding the note about elevation.

sharpjs avatar Nov 08 '23 15:11 sharpjs

Seem like it is not work for me.

BrandonWanHuanSheng avatar Nov 09 '23 05:11 BrandonWanHuanSheng

Having the same issue

Until we run the Winget one time with admin account it is showing me below error. No issues running with the System context.

I am running below is logged in user (Standard user account)

Winget search vscode Failed when searching source; results will not be included: winget No package found matching input criteria.

Winget install --exact --id GitHub.GitHubDesktop

Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing

winget list winget Name Id Version Source


App Installer Microsoft.AppInstaller 1.22.10661.0 winget Microsoft.UI.Xaml.2.8 Microsoft.UI.Xaml.2.8 8.2310.30001.0 winget Microsoft.UI.Xaml.2.7 Microsoft.UI.Xaml.2.7 7.2208.15002.0 winget Windows Package Manager Source (winget) Microsoft.Winget.Source_8wekyb3d8bbwe 2024.321.1946.202

winget --info Windows Package Manager v1.7.10661 Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.3296 System Architecture: X64 Package: Microsoft.DesktopAppInstaller v1.22.10661.0

winget list winget Name Id Version Source


App Installer Microsoft.AppInstaller 1.22.10661.0 winget Microsoft.UI.Xaml.2.8 Microsoft.UI.Xaml.2.8 8.2310.30001.0 winget Microsoft.UI.Xaml.2.7 Microsoft.UI.Xaml.2.7 7.2208.15002.0 winget Windows Package Manager Source (winget) Microsoft.Winget.Source_8wekyb3d8bbwe 2024.321.1946.202

winget --info Windows Package Manager v1.7.10661 Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.3296 System Architecture: X64 Package: Microsoft.DesktopAppInstaller v1.22.10661.0

Winget Directories

Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links Portable Links Directory (Machine) C:\Program Files\WinGet\Links Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages Portable Package Root C:\Program Files\WinGet\Packages Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages Installer Downloads %USERPROFILE%\Downloads

Links

Privacy Statement https://aka.ms/winget-privacy License Agreement https://aka.ms/winget-license Third Party Notices https://aka.ms/winget-3rdPartyNotice Homepage https://aka.ms/winget Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting State

LocalManifestFiles Disabled BypassCertificatePinningForMicrosoftStore Disabled InstallerHashOverride Disabled LocalArchiveMalwareScanOverride Disabled

KumarMudedla avatar Mar 21 '24 23:03 KumarMudedla

I think this helps as it solved my problem: https://learn.microsoft.com/en-us/answers/questions/1688882/how-do-we-fix-0x8a15000f-data-required-by-the-sour

mahvili avatar Aug 08 '24 06:08 mahvili

I solved the problem by using InstallerType as in my .json file below.

https://github.com/caglaryalcin/after-format/blob/main/files/apps/winget.json

caglaryalcin avatar Aug 08 '24 16:08 caglaryalcin