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.25k stars 1.45k forks source link

Error code: 0x80072eff while executing `winget upgrade --all` command #1800

Open sanamhub opened 2 years ago

sanamhub commented 2 years ago

Brief description of your issue

0x80072eff : unknown error while executing winget upgrade --all command on my windows terminal

Steps to reproduce

  1. Open windows terminal
  2. Paste winget upgrade --all
  3. Hit enter

Expected behavior

Update available updates for the packages

Actual behavior

An unexpected error occurred while executing the command: 0x80072eff : unknown error

Screenshot

image

Environment

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

Windows: Windows.Desktop v10.0.22000.376
Package: Microsoft.DesktopAppInstaller v1.16.13405.0

Note: I am running script on windows terminal
gldraphael commented 1 year ago

Similar issue here.

I had an old version of PowerShell installed through GitHub releases. Every time a new update was released, it required me to manually download PowerShell from GitHub releases.

I decided to try upgrading with winget upgrade Microsoft.PowerShell. It did not work, something about the existing installation using a different installation technology. I went ahead and uninstalled the existing installation from window's "Add or Remove Programs" interface.

And then tried installing with winget install Microsoft.PowerShell. Now I see one of two things:

0x80072eff : unknown error

Or I see it installing powershell indefinitely.

sanamhub commented 1 year ago

@denelon please have a look at this. (bug, 1+ year)

denelon commented 1 year ago

Can you share the output of winget --info and run the command with "--verbose-logs" and share the resulting log? The log location is available in the output of winget --info.

Optionally from https://github.com/microsoft/winget-cli/releases/tag/v1.4.3132-preview and newer versions, we have a new experimental feature that may be enabled to open the directory with the logs.

fsdrw08 commented 1 year ago

same to me, when I try to install microsoft.powershell by winget install, same error code throw out: 0x80072eff : unknown error

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

Windows: Windows.Desktop v10.0.22621.1105
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

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

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
anztim commented 1 year ago

@denelon

Can you share the output of winget --info and run the command with "--verbose-logs" and share the resulting log? The log location is available in the output of winget --info.

Optionally from https://github.com/microsoft/winget-cli/releases/tag/v1.4.3132-preview and newer versions, we have a new experimental feature that may be enabled to open the directory with the logs.

Same error occured when installing new package. I cannot guarantee that this error can be stably reproduced after rebooting.


~
❯ winget install Postman.Postman --verbose
Found Postman [Postman.Postman] Version 10.15.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://dl.pstmn.io/download/version/10.15.0/win64
An unexpected error occurred while executing the command:
InternetOpenUrl() failed.
0x80072ee7 : unknown error

Log file is very long. Most of them seem logging process of searching target package and downloading manifest.

WinGet-2023-07-11-08-28-40.417.log (after downloading manifest):

2023-07-11 08:28:48.289 [CLI ] Starting installer selection.
2023-07-11 08:28:48.290 [CLI ] Installer [X64,exe,User,en-US] is current best choice
2023-07-11 08:28:48.290 [CLI ] Completed installer selection.
2023-07-11 08:28:48.290 [CLI ] Selected installer Architecture: 2
2023-07-11 08:28:48.290 [CLI ] Selected installer URL: https://dl.pstmn.io/download/version/10.15.0/win64
2023-07-11 08:28:48.290 [CLI ] Selected installer InstallerType: exe
2023-07-11 08:28:48.290 [CLI ] Selected installer Scope: User
2023-07-11 08:28:48.290 [CLI ] Selected installer Language: en-US
2023-07-11 08:28:48.290 [CLI ] Manifest fields: Name [Postman], Version [10.15.0]
2023-07-11 08:28:48.325 [CLI ] Generated temp download path: C:\Users\*****\AppData\Local\Temp\WinGet\Postman.Postman.10.15.0\8ec77764dbca682c5ac05250480278f32437f0ba9637b4b3b655eabf3b6cbd6f
2023-07-11 08:28:48.325 [CORE] Downloading to path: C:\Users\*****\AppData\Local\Temp\WinGet\Postman.Postman.10.15.0\8ec77764dbca682c5ac05250480278f32437f0ba9637b4b3b655eabf3b6cbd6f
2023-07-11 08:28:48.326 [CORE] DeliveryOptimization downloading from url: https://dl.pstmn.io/download/version/10.15.0/win64
2023-07-11 08:28:48.341 [CORE] DO State 1, 0 / 0, Error 0x00000000, extended error 0x00000000
2023-07-11 08:28:51.109 [CORE] DO State 5, 0 / 0, Error 0x80072efe, extended error 0x00000000
2023-07-11 08:28:51.109 [CORE] DeliveryOptimization error: 0x80072efe, extended error: 0x00000000
2023-07-11 08:28:51.110 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\DODownloader.cpp(289)\WindowsPackageManager.dll!00007FFA35F64EAD: (caller: 00007FFA35F65751) Exception(1) tid(52bc) 80072EFE 
2023-07-11 08:28:51.114 [CORE] Started applying motw to C:\Users\*****\AppData\Local\Temp\WinGet\Postman.Postman.10.15.0\8ec77764dbca682c5ac05250480278f32437f0ba9637b4b3b655eabf3b6cbd6f with zone: 3
2023-07-11 08:28:51.122 [CORE] Finished applying motw
2023-07-11 08:28:51.123 [CORE] WinINet downloading from url: https://dl.pstmn.io/download/version/10.15.0/win64
2023-07-11 08:28:51.518 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(52)\WindowsPackageManager.dll!00007FFA35F457DE: (caller: 00007FFA35F46699) Exception(2) tid(52bc) 80072EFF     Msg:[InternetOpenUrl() failed.] 

2023-07-11 08:28:51.567 [CLI ] Failed to download, waiting a bit and retry. Url: https://dl.pstmn.io/download/version/10.15.0/win64
2023-07-11 08:28:52.079 [CORE] Downloading to path: C:\Users\*****\AppData\Local\Temp\WinGet\Postman.Postman.10.15.0\8ec77764dbca682c5ac05250480278f32437f0ba9637b4b3b655eabf3b6cbd6f
2023-07-11 08:28:52.079 [CORE] DeliveryOptimization downloading from url: https://dl.pstmn.io/download/version/10.15.0/win64
2023-07-11 08:28:52.086 [CORE] DO State 1, 0 / 0, Error 0x00000000, extended error 0x00000000
2023-07-11 08:28:54.722 [CORE] DO State 5, 0 / 0, Error 0x80072efe, extended error 0x00000000
2023-07-11 08:28:54.722 [CORE] DeliveryOptimization error: 0x80072efe, extended error: 0x00000000
2023-07-11 08:28:54.722 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\DODownloader.cpp(289)\WindowsPackageManager.dll!00007FFA35F64EAD: (caller: 00007FFA35F65751) Exception(3) tid(52bc) 80072EFE 
2023-07-11 08:28:54.751 [CORE] Started applying motw to C:\Users\*****\AppData\Local\Temp\WinGet\Postman.Postman.10.15.0\8ec77764dbca682c5ac05250480278f32437f0ba9637b4b3b655eabf3b6cbd6f with zone: 3
2023-07-11 08:28:54.752 [CORE] Finished applying motw
2023-07-11 08:28:54.752 [CORE] WinINet downloading from url: https://dl.pstmn.io/download/version/10.15.0/win64
2023-07-11 08:28:55.145 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(52)\WindowsPackageManager.dll!00007FFA35F457DE: (caller: 00007FFA35F46699) Exception(4) tid(52bc) 80072EFF     Msg:[InternetOpenUrl() failed.] 

2023-07-11 08:28:55.330 [CLI ] Caught wil::ResultException: D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(52)\WindowsPackageManager.dll!00007FFA35F457DE: (caller: 00007FFA35F46699) Exception(4) tid(52bc) 80072EFF     Msg:[InternetOpenUrl() failed.] 
❯ winget --info
Windows Package Manager (Preview) v1.6.1573-preview
Copyright (C) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1928
System Architechture: X64
Package: Microsoft.DesktopAppInstaller v1.21.1573.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

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

Group Policy                              State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled