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

winget is down #3900

Closed
WizMe-M opened this issue Nov 16, 2023 · 6 comments
Closed

winget is down #3900

WizMe-M opened this issue Nov 16, 2023 · 6 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@WizMe-M
Copy link

WizMe-M commented Nov 16, 2023

Brief description of your issue

When I do smth like winget ls next result is returned:

Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
SSL Error: WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR internal error.

After I call winget source reset nothing happens, so I resetted the -n winget src.
Now I can't to add it back:

winget source add -n winget --arg https://cdn.winget.microsoft.com/cache/ --verbose-logs

Response is

Adding source:
  winget -> https://cdn.winget.microsoft.com/cache/
An unexpected error occurred while executing the command:
0x80090305 : unknown error

Logs for winget source add -n winget --arg https://cdn.winget.microsoft.com/cache/ --verbose-logs:
WinGet-2023-11-16-12-42-04.301.log

Steps to reproduce

Call any cmdlet to interact with winget source

Expected behavior

Source added, packages listed, packages updated etc.

Actual behavior

Returns errors like:

An unexpected error occurred while executing the command:
0x80090305 : unknown error
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
SSL Error: WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR internal error.

Environment

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

Windows: Windows.Desktop v10.0.22621.2715
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.3172.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
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
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Nov 16, 2023
@stephengillie stephengillie added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Nov 16, 2023
@stephengillie
Copy link

Can you try reinstalling with the package from here? https://aka.ms/getwinget

@denelon
Copy link
Contributor

denelon commented Nov 16, 2023

If that doesn't work, can you try running winget source reset --force as an administrator?

@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Nov 16, 2023
@WizMe-M
Copy link
Author

WizMe-M commented Nov 17, 2023

Yay, that helped. thank you!

@WizMe-M WizMe-M closed this as completed Nov 17, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Author-Feedback Issue needs attention from issue or PR author label Nov 17, 2023
@WizMe-M WizMe-M reopened this Nov 17, 2023
@WizMe-M
Copy link
Author

WizMe-M commented Nov 17, 2023

Damn, Im so sorry, I was too hasty...

> winget install --id GnuPG.Gpg4win
Failed in attempting to update the source: winget
Failed when searching source: msstore
An unexpected error occurred while executing the command:
SSL Error: WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR internal error.

The following packages were found among the working sources.
Please specify one of them using the --source option to proceed.
Name    Id            Source
----------------------------
Gpg4win GnuPG.Gpg4win winget
> winget install --id GnuPG.Gpg4win --source winget
Failed in attempting to update the source: winget
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80090305 : unknown error

So I tried to update source as recommended:

> winget source update --verbose --logs
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
Cancelled

Logs for winget source update --verbose --logs
WinGet-2023-11-17-10-51-01.545.log

@denelon
Copy link
Contributor

denelon commented Nov 17, 2023

Another thing you could try is to switch to "wininet" from the default downloader "DO" (Delivery Optimization). You can run winget settings the URL at the bottom of winget settings -? links to the page with examples.

@WizMe-M
Copy link
Author

WizMe-M commented Nov 18, 2023

I found out that the problem was in an application 'CryptoPro'. All I needed to do is to update that app to upper version

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

3 participants