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
22.97k stars 1.43k forks source link

Error Updating `winget` source - No more endpoints available from mapper #4706

Open Trenly opened 1 month ago

Trenly commented 1 month ago

Brief description of your issue

I was on an enterprise managed PC running Win10, and then upgraded to Win11. On Win10, winget was working without issue. After the upgrade to Win11, the winget source fails to update

I will say that this is likely not a WinGet specific issue, but I wasn't sure where to put it so thought I would start here. Additionally, clearer messaging around the failure would be appreciated as opposed to just Cancelled

Steps to reproduce

Unknown;

Expected behavior

Sources to update correctly

Actual behavior

PS C:\Users\REDACTED> winget source update --verbose --logs
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
  █████████████████████▎          71%
Cancelled

Log: WinGet-2024-08-05-09-40-24.988.log

2024-08-05 09:40:30.961 [CORE] Starting AddPackage operation #1: file:///C:/Users/REDACTED/AppData/Local/Temp/WinGet/Microsoft.Winget.Source_8wekyb3d8bbwe.msix SkipSmartScreen: 1
2024-08-05 09:40:30.963 [CORE] Begin waiting for operation #1
2024-08-05 09:40:30.963 [CORE] Begin blocking for operation #1
2024-08-05 09:40:31.837 [CORE] Deployment operation #1: error 0x800706D9: While processing the request, the system failed to register the windows.firewall extension due to the following error: There are no more endpoints available from the endpoint mapper.

.
2024-08-05 09:40:31.837 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FFE371E81E9: (caller: 00007FFE371E4863) Exception(2) tid(576c) 800706D9 There are no more endpoints available from the endpoint mapper.

    Msg:[Operation failed: error 0x800706D9: While processing the request, the system failed to register the windows.firewall extension due to the following error: There are no more endpoints available from the endpoint mapper.

.] 

Environment

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

Windows: Windows.Desktop v10.0.22631.2861
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.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
github-actions[bot] commented 1 month ago

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:

Closed similar issues:

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

Trenly commented 1 month ago

@denelon - I was correct in my assumption that this wasn't a winget-specific issue, as it was affecting any MSIX installs and any store installs. I'm not sure if you want to keep this open for anything, or if this should be closed as there is a fix and it isn't directly related to WinGet. Unless you want me to add something to the troubleshooting doc?


After some troubleshooting, it was caused by Windows Defender failing to load; Resolution steps found on MS Answers - https://answers.microsoft.com/en-us/windows/forum/windows_11-performance/windows-firewall-0x800706d9/75c015d5-259d-42ed-bd93-1486ae039ee8?messageId=092332b2-9dbd-453a-9946-1431f88e432a

denelon commented 1 month ago

That's a great find!