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.08k stars 1.44k forks source link

Nothing seemingly happens, terminal turns purple #3915

Closed DwifteJB closed 10 months ago

DwifteJB commented 10 months ago

Brief description of your issue

Nothing happens when trying to install or search for apps, then the terminal goes purple and the cursor disappears.

Install Log:

2023-11-20 21:05:25.026 [CORE] OS: Windows.Desktop v10.0.22631.2715
2023-11-20 21:05:25.026 [CORE] Command line Args: winget  install Microsoft.Powertoys 
2023-11-20 21:05:25.026 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10691.0
2023-11-20 21:05:25.026 [CORE] IsCOMCall:0; Caller: winget-cli
2023-11-20 21:05:25.032 [CLI ] WinGet invoked with arguments: 'install' 'Microsoft.Powertoys'
2023-11-20 21:05:25.032 [CLI ] Found subcommand: install
2023-11-20 21:05:25.032 [CLI ] Leaf command to execute: root:install
2023-11-20 21:05:25.036 [CLI ] Executing command: install
2023-11-20 21:05:25.045 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2023-11-20 21:05:25.045 [REPO] Default source requested, multiple sources available, adding all to source references.
2023-11-20 21:05:25.045 [REPO] Adding to source references msstore
2023-11-20 21:05:25.045 [REPO] Adding to source references winget
2023-11-20 21:05:25.046 [REPO] Source past auto update time [5 mins]; it has been at least 28341905 mins

Search Log (verbose):

2023-11-20 21:07:52.430 [CORE] WinGet, version [1.2.10691], activity [{5196064D-CB69-42CD-9FF7-C6522FFFA753}]
2023-11-20 21:07:52.431 [CORE] OS: Windows.Desktop v10.0.22631.2715
2023-11-20 21:07:52.431 [CORE] Command line Args: winget  search visual --verbose-logs
2023-11-20 21:07:52.431 [CORE] Package: Microsoft.DesktopAppInstaller v1.17.10691.0
2023-11-20 21:07:52.431 [CORE] IsCOMCall:0; Caller: winget-cli
2023-11-20 21:07:52.435 [CLI ] WinGet invoked with arguments: 'search' 'visual' '--verbose-logs'
2023-11-20 21:07:52.435 [CLI ] Found subcommand: search
2023-11-20 21:07:52.436 [CLI ] Leaf command to execute: root:search
2023-11-20 21:07:52.436 [CLI ] Executing command: search
2023-11-20 21:07:52.439 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-11-20 21:07:52.448 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-11-20 21:07:52.448 [YAML] Detected UTF-8
2023-11-20 21:07:52.448 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2023-11-20 21:07:52.448 [REPO] Default source requested, multiple sources available, adding all to source references.
2023-11-20 21:07:52.448 [REPO] Adding to source references msstore
2023-11-20 21:07:52.448 [REPO] Adding to source references winget
2023-11-20 21:07:52.449 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-11-20 21:07:52.449 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-11-20 21:07:52.449 [YAML] Detected UTF-8Q
2023-11-20 21:07:52.449 [REPO] Source past auto update time [5 mins]; it has been at least 5 mins
2023-11-20 21:07:52.449 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2023-11-20 21:07:52.449 [REPO] Source past auto update time [5 mins]; it has been at least 28341907 mins

Steps to reproduce

Run winget search x or winget install x

Expected behavior

Terminal turns purple, and nothing seems to happen.

image

Actual behavior

Want it to install, or download stuff.

Environment

Windows Package Manager v1.2.10691
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.2715
Package: Microsoft.DesktopAppInstaller v1.17.10691.0                                                                                                                                                                                            
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
DwifteJB commented 10 months ago

Seems to fix itself when I updated winget manually using

Add-AppxProvisionedPackage -Online -PackagePath ./Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle