microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.35k stars 1.45k forks source link

i think winget is broken beyond repair for me `InternetOpenUrl() failed. 0x80072efd : unknown error` `Failed in attempting to update the source: winget` #4994

Open elvisisvan opened 4 days ago

elvisisvan commented 4 days ago

Brief description of your issue

i know, you've seen this same damn bug reported countless times but this one is different because i did my thorough research into no little amount of the same reports, hear me out:

i believe i have tried every publicly available ways to troubleshoot this without using vpn but still to no avail, winget consistently fails to update its own source; Image

i have noticed winget runs flawlessly in a fresh installation of windows 10 21h2 but once i updated to 22h2, the moment the 22h2 install package reach 100% and conclude, winget breaks and start to show "Failed in attempting to update the source: winget" in response to any winget install command and along with that comes

An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072efd : unknown error

Image

administrator powershell, winget source reset --force; winget source update, firewall, SSL 3.0 + TLS 1.2, replace source https://cdn.winget.microsoft.com/cache with https://winget.azureedge.net/cache, ipconfig /flushdns, troubleshoot internet connections, update AppInstaller package in microsoft store,

i've tried it all, as of today this looks hopeless so far

Image

reference to the all sources i gathered troubleshooting methods from: https://windowsloop.com/fix-failed-in-attempting-to-update-the-source-winget-error/#check-internet https://github.com/microsoft/winget-cli/issues/2956#issuecomment-1479023513 https://github.com/microsoft/winget-cli/issues/566#issuecomment-1427024985 https://github.com/microsoft/winget-cli/issues/1826#issuecomment-2041896317 https://github.com/microsoft/winget-cli/issues/2666#issuecomment-1303448425

Steps to reproduce

winget intstall Microsoft.WindowsAppRuntime.1.5

Expected behavior

package Microsoft.WindowsAppRuntime.1.5 install successfully

Actual behavior

Failed in attempting to update the source: winget
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072efd : unknown error

Environment

Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.5131
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
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
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled
mdanish-kh commented 4 days ago

I'm trying to see if this works: Can you manually download the source packages from https://cdn.winget.microsoft.com/cache/source2.msix, double-click to install and see if that works?