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

Failed when opening source(s) #4018

Closed
Pixel556 opened this issue Dec 31, 2023 · 6 comments
Closed

Failed when opening source(s) #4018

Pixel556 opened this issue Dec 31, 2023 · 6 comments
Milestone

Comments

@Pixel556
Copy link

Brief description of your issue

image
Winget gives me an error every time I try to use winget show or winget install, saying that "Failed when opening source(s); try the source reset command if the problem persists.

I tried to do winget source reset --force and winget source reset, it was successful but the problem persisted. I also tried winget source update which outputs this:

PowerShell 7.4.0
PS C:\Windows>winget source update
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
Cancelled
PS C:\Windows>_

I don't interrupt the process while winget is updating its sources, but for some reason it automatically cancels at Updating source: winget....

Can anybody help me this? I'm new to Winget, so I don't really know much.

Steps to reproduce

Only thing needed to do is: winget show Insert.AnyPackageHere or winget install Insert.AnyPackageHere

Expected behavior

Winget would install my package without errors.

Actual behavior

Winget is spitting out an error whenever I try to use winget show or winget install.

Environment

Windows: Windows.Desktop v10.0.22631.2861
System Architecture: Arm64
Package: Microsoft.DesktopAppInstaller v1.20.441.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Dec 31, 2023
@Trenly
Copy link
Contributor

Trenly commented Dec 31, 2023

What is the full output of winget --info

@Pixel556
Copy link
Author

Pixel556 commented Jan 1, 2024

Windows Package Manager (Preview) v1.5.441-preview

Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.2861
System Architecture: Arm64
Package: Microsoft.DesktopAppInstaller v1.20.441.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

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

@Trenly
Copy link
Contributor

Trenly commented Jan 1, 2024

Windows Package Manager (Preview) v1.5.441-preview

You will need to update your version of WinGet, since the original CDN which was hardcoded into version 1.5 has been retired.

@Pixel556
Copy link
Author

Pixel556 commented Jan 2, 2024

You will need to update your version of WinGet
And how am I supposed to do that? Running winget source update doesn't do anything. It just updates the source for the Microsoft Store but not Winget itself.

@Trenly
Copy link
Contributor

Trenly commented Jan 2, 2024

And how am I supposed to do that? Running winget source update doesn't do anything. It just updates the source for the Microsoft Store but not Winget itself.

As mentioned in the issue, you can use the installer from https://aka.ms/getwinget. Or, since you’re currently using a preview version, you can download the latest preview version from the GitHub releases pge

@stephengillie stephengillie removed the Needs-Triage Issue need to be triaged label Jan 2, 2024
@denelon
Copy link
Contributor

denelon commented Jan 3, 2024

Just for others who might also want to stay on prerelease versions we have https://aka.ms/getwingetpreview available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants