winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Winget failed to install

Open santhosh110599 opened this issue 2 years ago • 21 comments

After I try to install an app from Windows utility tool, it says Winget failed to install despite installing it.

santhosh110599 avatar Feb 05 '24 09:02 santhosh110599

I had this issue tonight after a new windows install (in this case I was using the microwin from CTT). It might not be the exact same issue as you but the steps I took to resolve may fix your problem as well.

Issue: Open Terminal window -> Type Winget - Error: "Unable to find application" or Try to install any program from CTT tool- Also fails, but refers to checksum issues, tried to repair winget from within CTT tool - also fails with Checksum mismatch

Cause: Windows Store is running an old version and wont allow the 'App Installer' to install

https://learn.microsoft.com/en-us/windows/package-manager/winget/ _Install winget Windows Package Manager winget command-line tool is available on Windows 11 and modern versions of Windows 10 as a part of the App Installer.

You can get App Installer from the Microsoft Store. If it's already installed, make sure it is updated with the latest version._

Solution: Manually open the Windows Store, Trigger an update, MS Store will reopen in the new version, Trigger another update and this time the 'App Installer' should install.

Confirm: Open up terminal/PS and type winget / Attempt to install any program from CTT tool

updated

zzwdup avatar Feb 05 '24 10:02 zzwdup

Thank you for your suggestion.

I tried what you said, but apparently I have the latest version of winget. When I tried using the utility in another system (which also has the same version of winget), I was able to install applications.

What is going on here?

santhosh110599 avatar Feb 05 '24 15:02 santhosh110599

You may also try resetting windows updates. It usually works here

Yuuh15 avatar Feb 05 '24 16:02 Yuuh15

Thank you for your suggestion.

I tried what you said, but apparently I have the latest version of winget. When I tried using the utility in another system (which also has the same version of winget), I was able to install applications.

What is going on here?

np, have you tried using winget without the tool? isolate the issue with elevated prompt using winget directly? and see what windows is doing, post back any errors you get (or google them)

Elevate CMD/Terminal/Powershell

winget #hit enter and see what windows returns winget search 7zip #if winget is responding with options then try searching winget install 7zip.7zip #if search is working, try installing

Here is what you should see

PS C:\Users\zzRIG> winget
Windows Package Manager v1.6.3482
Copyright (c) Microsoft Corporation. All rights reserved.

The winget command line utility enables installing applications and other packages from the command line.

usage: winget  [<command>] [<options>] ...... 

PS C:\Users\RIG> winget search 7zip
Name              Id                     Version            Match         Source
--------------------------------------------------------------------------------
7-Zip             7zip.7zip              23.01              Moniker: 7zip winget
7-Zip ZS          mcmilk.7zip-zstd       22.01 ZS v1.5.5 R2 Tag: 7zip     winget
NanaZip Preview   M2Team.NanaZip.Preview 3.0.756.0          Tag: 7zip     winget
NanaZip           M2Team.NanaZip         2.0.450.0          Tag: 7zip     winget
7-Zip Alpha (msi) 7zip.7zip.Alpha.msi    21.03.00.0                       winget
7-Zip Alpha (exe) 7zip.7zip.Alpha.exe    23.00                            winget

PS C:\Users\RIG> winget install 7zip.7zip
Found 7-Zip [7zip.7zip] Version 23.01
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://www.7-zip.org/a/7z2301-x64.msi

If winget is actually working then somthing might be going wrong with chocolatey. The CTT tool stores its logs here C:\ProgramData\chocolatey\logs The main log file to review is the chocolatey.log (bottom is file is latest entries) Reviewing this will provide more insight onto what is going wrong.

edited - update formatting for easier reading edited - added comment about logs

zzwdup avatar Feb 05 '24 22:02 zzwdup

Maybe include the version of winget, seems like version v1.2.10691 isn't working properly (there are a lot of issues about winget not installing and I have experienced myself problems on a fresh install of Windows 23H2)

Seems like a solution to a similar issue ( #1557 ) as been already committed by @ChrisTitusTech and the problem may be fixed when merged into main

In the meantime you could try to reinstall winget yourself Here some options:

  • using the official release on Github: https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
  • choco: choco install winget --force

possumdoe avatar Feb 06 '24 01:02 possumdoe

This is now fixed in the latest update today.

ChrisTitusTech avatar Feb 06 '24 20:02 ChrisTitusTech

I think winget is just broken.(See image below)

image It won't install a package by microsoft.

TheAnonymousXII avatar Feb 06 '24 22:02 TheAnonymousXII

@TheAnonymousXAlt - this might help.

https://github.com/microsoft/winget-cli/issues/3068

zzwdup avatar Feb 06 '24 22:02 zzwdup

Guys, is anyone else having problems to install any of the applications? I can't install any applications after the latest commit: WindowsTerminal_bz49CSSVAB

Yuuh15 avatar Feb 06 '24 23:02 Yuuh15

Guys, is anyone else having problems to install any of the applications? I can't install any applications after the latest commit: WindowsTerminal_bz49CSSVAB

Got this too i thought it was my windows 11, as i just installed it first time on my laptop hours ago.

ubrider avatar Feb 07 '24 00:02 ubrider

Guys, is anyone else having problems to install any of the applications? I can't install any applications after the latest commit: WindowsTerminal_bz49CSSVAB

Facing the same issue since today. I forced a Winget reinstall with choco install winget --force just in case that was the issue, but it didn't help. I'm guessing that something broke with the new commit, as installations worked fine for me until yesterday on three other PCs. Happy to assist in any way to help fix this.

prakhar64 avatar Feb 07 '24 05:02 prakhar64

I have the same error message Sent from my iPadOn Feb 6, 2024, at 10:23 PM, Prakhar Srivastava @.***> wrote:

Guys, is anyone else having problems to install any of the applications? I can't install any applications after the latest commit:

Facing the same issue since today. I forced a Winget reinstall with choco install winget --force just in case that was the issue, but it didn't help. I'm guessing that something broke with the new commit, as installations worked fine for me until yesterday on three other PCs. Happy to assist in any way to help fix this.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

bca009 avatar Feb 07 '24 07:02 bca009

Guys, is anyone else having problems to install any of the applications? I can't install any applications after the latest commit: WindowsTerminal_bz49CSSVAB

Facing the same issue since today. I forced a Winget reinstall with choco install winget --force just in case that was the issue, but it didn't help. I'm guessing that something broke with the new commit, as installations worked fine for me until yesterday on three other PCs. Happy to assist in any way to help fix this.

Same, I discover this fabulous tool last week, and it worked perfectly.

ubrider avatar Feb 07 '24 10:02 ubrider

Got the same error. Did this from here, but it didn't help.

You can bypass the store with the following commands to get winget installed:

Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Script -Name winget-install -Force
winget-install.ps1

nepumax avatar Feb 07 '24 10:02 nepumax

Got this same error; this error is also discussed here, but no solution yet.

nkap90 avatar Feb 07 '24 12:02 nkap90

I've ran into the same issue on two HyperV VM's I spun up today/yesterday, and this worked from above:

Got the same error. Did this from here, but it didn't help.

You can bypass the store with the following commands to get winget installed:

Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Script -Name winget-install -Force
winget-install.ps1

Kupie avatar Feb 08 '24 01:02 Kupie

An update from my side -- I'm no longer facing this issue. Things seem to have resolved themselves. Is that the case with everyone else, too?

prakhar64 avatar Feb 08 '24 13:02 prakhar64

Having the same problem - new windows 11 pro on lenovo - please reopen the ticket

image image

I did the same steps on a new laptop MSI everything there works fine, here is a problem on Lenovo. There is also a problem with Home Dev.

SmartInteractiveGroup avatar Mar 14 '24 20:03 SmartInteractiveGroup

Solution https://github.com/microsoft/winget-cli/issues/725#issuecomment-835394620

4budab1 avatar Sep 09 '24 16:09 4budab1

Hi All, I was having the same issues today, November 5, 2024. i was doing a fresh install on Windows 11 23H2 22631.2861.

I discovered I needed to upgrade the terminal interface. For some unknown reason, as soon as I installed Windows Terminal directly through winget. Winget showed there where two apps that needing upgrading for me and Microsoft.WindowsTerminal was one of them. Once I installed the upgrade, opened Windows Terminal Version: 1.21.2911.0.

I went to irm christitus.com/win | iex I was then able to see winget was installed and it finally started installing apps from the WinUtil. I feel the WinUtil will be broken, if you try to use the powershell terminal straight from a fresh install right out of the box.

anthonyrpitts avatar Nov 05 '24 03:11 anthonyrpitts