winget-cli: winget source update causes error 0x800700B7

Brief description of your issue

When I attempt to search for a package, list packages, or update sources, the command fails with an error.

Steps to reproduce

winget source update

Expected behavior

Expecting command to execute without error.

Actual behavior

An unexpected error occurred while executing the command:
Install failed: An internal error occurred with error 0x800700B7. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
0x800700b7 : Cannot create a file when that file already exists.

Environment

[winget --info]
Windows Package Manager v0.2.2941 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19042.610
Package: Microsoft.DesktopAppInstaller v1.11.2941.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 16 (14 by maintainers)

Most upvoted comments

@denelon can confirm the issue is gone with 1.0.12576

@Karl-WE this should be in the current Pre-release version here at GitHub.

I will do so. If I can confirm you might want to add it to fixed issues list in the release history

Yes, this v1.0.12576 release should contain the fix. Please feel free to reopen the issue if it’s not working for your scenario. Thanks.

Hi @Karl-We The fix is merged but not released yet, I’ll definitely update this thread when it’s released. Thanks.

I think it’s fixed as part of this commit, where we change to use package full name instead of package family name for installed packages indexing, this will avoid duplicate entries causing ERROR_ALREADY_EXISTS https://github.com/microsoft/winget-cli/pull/1395/files#diff-1d47bcf6a8ced8a2bf524dafe8086d9c7105d9cf7c942bd14254a99e18e1b36a

Thanks for reopening and working on a remediation @denelon. If there is anything I could provide or test a private build please let me know.

@Karl-WE thanks for digging into this one! We may not be able to change the behavior for the MSIX package, but at least we might be able to provide a better error in the short term.