Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winget failed to install #1571

Closed
santhosh110599 opened this issue Feb 5, 2024 · 18 comments
Closed

Winget failed to install #1571

santhosh110599 opened this issue Feb 5, 2024 · 18 comments

Comments

@santhosh110599
Copy link

santhosh110599 commented Feb 5, 2024

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

@zzwdup
Copy link

zzwdup commented Feb 5, 2024

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

@santhosh110599
Copy link
Author

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?

@Yuuh15
Copy link
Contributor

Yuuh15 commented Feb 5, 2024

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

@zzwdup
Copy link

zzwdup commented Feb 5, 2024

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

@possumdoe
Copy link

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:

@ChrisTitusTech
Copy link
Owner

This is now fixed in the latest update today.

@TheAnonymousXII
Copy link

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

image
It won't install a package by microsoft.

@zzwdup
Copy link

zzwdup commented Feb 6, 2024

@TheAnonymousXAlt - this might help.

microsoft/winget-cli#3068

@Yuuh15
Copy link
Contributor

Yuuh15 commented Feb 6, 2024

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

@ubrider
Copy link

ubrider commented Feb 7, 2024

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.

@prakhar64
Copy link

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.

@bca009
Copy link

bca009 commented Feb 7, 2024 via email

@ubrider
Copy link

ubrider commented Feb 7, 2024

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.

@nepumax
Copy link

nepumax commented Feb 7, 2024

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

@nkap90
Copy link

nkap90 commented Feb 7, 2024

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

@Kupie
Copy link

Kupie commented Feb 8, 2024

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

@prakhar64
Copy link

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?

@SmartInteractiveGroup
Copy link

SmartInteractiveGroup commented Mar 14, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests