microsoft / microsoft/winget-cli

Failed to open the predefined source/Failed when searching source: msstore

Open
#3,259 48 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Source Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Hello I am currently getting the error:
"Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x800700b7 : Cannot create a file when that file already exists."

When trying to use winget. I have tried to install the latest dev build but that has not solved the issue. I tried a few different steps found in other posts such as updating sources but no go. This error is on my work computer running normal build of win 11.

Oddly I'm also having issues with winget on my home PC with win 11 beta ring but that error says the following:
"Failed when searching source: msstore
An unexpected error occurred while executing the command:
0x8a150044 : The rest source endpoint is not found."

I can make two separate posts if that is better.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported winget source failures on Windows 11, focusing separately on the predefined source and the msstore source. Compare the two reported error codes and the attempted source-update steps; done means identifying a reproducible cause and a confirmed fix or clearly scoped follow-up.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.