Skip to content
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

An error occurred while connecting to the catalog #4346

Closed
alyssajotice opened this issue Apr 3, 2024 · 5 comments
Closed

An error occurred while connecting to the catalog #4346

alyssajotice opened this issue Apr 3, 2024 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@alyssajotice
Copy link

alyssajotice commented Apr 3, 2024

Brief description of your issue

When running Get-WinGetPackage I get the error An error occurred while connecting to the catalog.

@luxu-ms @jiayac

Steps to reproduce

I ran this command on a Dev Box using PowerShell 7. This is the source image: microsoftwindowsdesktop_windows-ent-cpc_win11-23h2-ent-cpc-os .

Versions:
image

Expected behavior

I expected Visual Studio Code to install.

Actual behavior

I get an error message.

Environment

Photo above.
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Apr 3, 2024
Copy link

github-actions bot commented Apr 3, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@denelon
Copy link
Contributor

denelon commented Apr 3, 2024

This looks like an earlier version of WinGet. I suggest getting the latest version of App Installer via the Microsoft Store in the Dev Box and trying again.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Apr 3, 2024
@denelon denelon added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Apr 3, 2024
@alyssajotice
Copy link
Author

Adding the Desktop App Installer fixed this issue:

$DesktopAppInstallerAppx = "$env:TEMP\DesktopAppInstaller.appx"
Invoke-WebRequest -Uri "[https://aka.ms/getwinget"](https://aka.ms/getwinget%22) -OutFile $DesktopAppInstallerAppx
Add-AppxPackage -Path $DesktopAppInstallerAppx -ForceApplicationShutdown

@alyssajotice
Copy link
Author

alyssajotice commented Apr 10, 2024

@denelon I am reopening this because the fix I listed above did not work on a Windows 11 Dev Box. I cannot download the App Installer via the Microsoft store.

Image: microsoftwindowsdesktop_windows-ent-cpc_win11-23h2-ent-cpc-os (version 1.0.0)

Edition	Windows 11 Enterprise
Version	23H2
Installed on	‎4/‎10/‎2024
OS build	22631.3296
Experience	Windows Feature Experience Pack 1000.22687.1000.0

winget info:

Windows: Windows.Desktop v10.0.22631.3296
Package: Microsoft.DesktopAppInstaller v1.17.10691.0

Issue:

PS C:\Users\Ally> Add-AppxPackage -Path $DesktopAppInstallerAppx -ForceApplicationShutdown
Add-AppxPackage: Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation.

Windows cannot install package Microsoft.DesktopAppInstaller_1.22.10861.0_x64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.8" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and minimum version 8.2310.30001.0, along with this package to install.

NOTE: For additional information, look for [ActivityId] 53774ade-8062-0006-00be-9289718bda01 in the Event Log or use the command line Get-AppPackageLog -ActivityID 53774ade-8062-0006-00be-9289718bda01

@alyssajotice alyssajotice reopened this Apr 10, 2024
@alyssajotice
Copy link
Author

Fixed with Repair-WinGetPackageManager -Latest -Force'

@denelon denelon added this to the 1.8 Client milestone May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants