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.54k stars 1.39k forks source link

winget install results in 0x80072f8f : unknown error #4460

Open chiragptl039 opened 1 month ago

chiragptl039 commented 1 month ago

Brief description of your issue

winget install 'company portal' Winget install 'Power BI Desktop' winget install 'Windows Terminal'

2024-05-08 11:04:51.668 [REPO] Opening database for ReadWrite at 'C:\Users\User\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\StoreEdgeFD\installed.db' 2024-05-08 11:04:51.669 [REPO] Opened SQLite Index with version [1.7], last write [2024-05-08 10:59:39.000] 2024-05-08 11:04:51.672 [REPO] Sending http POST request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/manifestSearch 2024-05-08 11:04:51.886 [REPO] Response status: 200 2024-05-08 11:04:51.887 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/packageManifests/9N0DX20HK701?Market=DE 2024-05-08 11:04:51.908 [REPO] Response status: 200 2024-05-08 11:04:51.909 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:PackageFamilyName='microsoft.windowsterminal_8wekyb3d8bbwe'[Exact] Include:NormalizedNameAndPublisher='windows terminal'+'microsoft corporation'[Exact] 2024-05-08 11:04:51.920 [REPO] Opening database for ReadWrite at 'C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' 2024-05-08 11:04:51.921 [REPO] Opened SQLite Index with version [1.7], last write [2024-05-08 10:59:39.000] 2024-05-08 11:04:51.943 [CLI ] Found one app. App id: 9N0DX20HK701 App name: Windows Terminal 2024-05-08 11:04:51.953 [REPO] Attempting to open pinning database: C:\Users\user\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db 2024-05-08 11:04:51.954 [CLI ] Manifest fields: Name [Windows Terminal], Version [Unknown] 2024-05-08 11:04:53.237 [CLI ] Package agreements accepted in prompt 2024-05-08 11:04:53.683 [FAIL] WindowsPackageManager.dll!00007FFFA19539EC: LogHr(1) tid(3ac4) 80072F8F 2024-05-08 11:04:53.683 [FAIL] WindowsPackageManager.dll!00007FFFA188B31B: LogHr(2) tid(3ac4) 80072F8F 2024-05-08 11:04:53.686 [CLI ] Caught winrt::hresult_error: 0x80072f8f : unknown error

WinGet, version [1.7.11261] Package: Microsoft.DesktopAppInstaller v1.22.11261.0

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

@chiragptl039 - Does the behavior change if you use --source winget with your install command?

chiragptl039 commented 1 month ago

@Trenly - I can install applications from the Winget source, but it seems that the store application couldn't be installed using Winget. An error occurred when I accepted the agreements.

PS C:\Users\user> winget install Microsoft.PowerBI -s winget Found Microsoft PowerBI Desktop [Microsoft.PowerBI] Version 2.128.1380.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. Agreements for Microsoft PowerBI Desktop [Microsoft.PowerBI] Version 2.128.1380.0 Version: 2.128.1380.0 Publisher: Microsoft Corporation Publisher Url: https://www.microsoft.com/en-us Publisher Support Url: https://support.microsoft.com/en-us Author: Microsoft Corporation Homepage: https://powerbi.microsoft.com License: Proprietary License Url: https://powerbi.microsoft.com/en-us/desktop-eula/ Privacy Url: https://privacy.microsoft.com/en-us/privacystatement Copyright: Copyright (c) Microsoft Corporation. All rights reserved. Copyright Url: https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx Agreements: End User License Agreement (EULA): https://powerbi.microsoft.com/en-us/desktop-eula/

The publisher requires that you view the above information and accept the agreements before installing. Do you agree to the terms? [Y] Yes [N] No: y Downloading https://download.microsoft.com/download/8/8/0/880BCA75-79DD-466A-927D-1ABF1F5454B0/PBIDesktopSetup_x64.exe ██████████████████████████████ 487 MB / 487 MB Successfully verified installer hash Starting package install... The installer will request to run as administrator, expect a prompt. Successfully installed PS C:\Users\user> winget install 9WZDNCRFJ3PZ -s msstore Found Company Portal [9WZDNCRFJ3PZ] Version Unknown This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user. Agreements for Company Portal [9WZDNCRFJ3PZ] Version Unknown Version: Unknown Publisher: Microsoft Corporation Publisher Url: http://go.microsoft.com/fwlink/?LinkId=273865 Publisher Support Url: http://go.microsoft.com/fwlink/?LinkId=273866 License: http://go.microsoft.com/fwlink/?LInkId=518263 Privacy Url: http://go.microsoft.com/fwlink/?LinkID=316999 Copyright: © 2022. Microsoft. All rights reserved. Agreements: Category: Business Pricing: Free Free Trial: No Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction Seizure Warning: https://aka.ms/microsoft-store-seizure-warning Store License Terms: https://aka.ms/microsoft-store-license

The publisher requires that you view the above information and accept the agreements before installing. Do you agree to the terms? [Y] Yes [N] No: y An unexpected error occurred while executing the command: 0x80072f8f : unknown error

Trenly commented 1 month ago

[Policy] msstore