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

Brand new Windows 11 machine has winget installed but all commands don't return anything #4549

Closed StevenBucher98 closed 3 months ago

StevenBucher98 commented 3 months ago

Brief description of your issue

I recently started a new Windows 11 VM and wanted to use WinGet to install my packages but it does not seem to work at all for any installs searches and lists. I can however type winget and see the help so its installed?

Steps to reproduce

Fresh install Windows 11 machine in parallels on an M1 Mac

Try to run any subcommand that does not just return text (i.e not winget, or winget --info)

Expected behavior

I am able to install packages from winget

Actual behavior

Whichever shell I am using gets hung and returns to the prompt but now is blue: image

Happens on cmd.exe and powershell.exe with or without Windows Terminal: image

Happens with loads of winget subcommands: image

Environment

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

Windows: Windows.Desktop v10.0.22631.2861
Package: Microsoft.DesktopAppInstaller v1.17.10691.0

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

This is all in a Parallels VM on a M1 ARM64 Mac.
github-actions[bot] commented 3 months 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.

StevenBucher98 commented 3 months ago

installing app installer from MSFT store seems to work

Trenly commented 3 months ago

If you're on a version less than 1.6.3482 (as shown in the screenshot), you need to update to the latest version of WinGet. Please see the troubleshooting steps - https://github.com/microsoft/winget-cli/tree/master/doc/troubleshooting#executing-winget-exits-with-no-message

Close with reason: CDN retired; WinGet requires Update