Completely broken.
No modules work.
Demo:
And that is for all modules and every setting.
@TheAnonymousXAlt from what I understand, there is a bug in windows' winget app. The first step you need to do is go to config and click the 'force reinstall winget' button. This should be pretty obvious if you look at your error message there in red.
Ok thanks!
@TheAnonymousXAlt from what I understand, there is a bug in windows' winget app. The first step you need to do is go to config and click the 'force reinstall winget' button. This should be pretty obvious if you look at your error message there in red.
theres no force option
@Grimmrp2 🙄 the box you want to click is 'winget reinstall'. This will force the app to be installed again.
@Grimmrp2 🙄 the box you want to click is 'winget reinstall'. This will force the app to be installed again.
it fails
@Grimmrp2 🙄 the box you want to click is 'winget reinstall'. This will force the app to be installed again.
it fails
Try following the instructions in the terminal.
I get the same. Still not working for me. I think it's my firewall. Can't seem to install new some new software now. Planning on a new clean Win11 OS sometime soon anyways.
@SbMan1 try running this command in a terminal as administrator: choco install winget -y --force
https://github.com/microsoft/winget-cli/releases/tag/v1.6.3482
try downloading the desktop installer, it might give it the fix needed, also you could be facing issues with tls
restart the computer after reinstalling winget
run this in powershell as admin after boot up
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winutil.ps1')
please let me know if this helps!
I have the same problem. Cannot seem to get winget to install anything and get same message as @Grimmrp2 is. It shows winget is installed but just freezes when trying to install something. Tried installing Brave Browser and HWinfo as tests and get following msg:
====Chris Titus Tech===== =====Windows Toolbox===== Checking if Chocolatey is Installed... Chocolatey Already Installed Checking if Winget is Installed... Running Alternative Installer and Direct Installing Winget Installed
-- Winget failed to install ---
Sorry, but a noob at PS and I have not been able to find powershell command to force reinstall. Any help would be appreciated.
Also tried the following:
Microsoft Windows [Version 10.0.19045.3930] (c) Microsoft Corporation. All rights reserved.
C:\Windows\system32>choco install winget -y --force Chocolatey v2.2.2 Installing the following packages: winget By installing, you accept licenses for the packages. winget v1.6.3482 already installed. Forcing reinstall of version '1.6.3482'. Please use upgrade if you meant to upgrade to a new version. Progress: Downloading microsoft-vclibs-140-00 14.0.30704.0... 100%
microsoft-vclibs-140-00 v14.0.30704 (forced) microsoft-vclibs-140-00 package files install completed. Performing other installation steps. Downloading microsoft-vclibs-140-00 from 'https://aka.ms/Microsoft.VCLibs.x86.14.00.Desktop.appx' Progress: 100% - Completed download of C:\ProgramData\chocolatey\lib\microsoft-vclibs-140-00\tools\Microsoft.VCLibs.x86.14.00.Desktop.appx (5.79 MB). Download of Microsoft.VCLibs.x86.14.00.Desktop.appx (5.79 MB) completed. Error - hashes do not match. Actual value was 'A7FB9D76E07B36D868179EB53FFD13740C25242176FA363F154798CF34EDD4A9'. ERROR: Checksum for 'C:\ProgramData\chocolatey\lib\microsoft-vclibs-140-00\tools\Microsoft.VCLibs.x86.14.00.Desktop.appx' did not meet '3195DB914BEA1534EE73582CD483C548A929AED2799D305B3BBF7411BA7A6C7D' for checksum type 'SHA256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary. The install of microsoft-vclibs-140-00 was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\microsoft-vclibs-140-00\tools\chocolateyInstall.ps1'. See log for details. Progress: Downloading winget 1.6.3482... 100%
winget v1.6.3482 (forced) [Approved] winget package files install completed. Performing other installation steps. The install of winget was successful. Software installed to 'C:\ProgramData\chocolatey\lib\winget'
Chocolatey installed 1/2 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- microsoft-vclibs-140-00 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-vclibs-140-00\tools\chocolateyInstall.ps1'. See log for details.
C:\Windows\system32
Not sure if this helps or not. Just an FYI in case it does.
My System: 11th Gen I9-11900K @5.1GHz 64 GB DDR4-3600 Windows 10 Pro - Ver 22H2 OS Build 19045.3930
Fresh Install - 02/01/2024
Check this out also can you show the log for C:\ProgramData\chocolatey\logs\chocolatey.log you can copy and paste it in file explorer it will open it in notepad
https://github.com/microsoft/terminal/issues/2369#issuecomment-535763987
if you have browser acess, go ahead and download it via the website and install it
i think you need the x64 version https://aka.ms/vs/17/release/vc_redist.x64.exe
I've tried installing the exe, no go, tried installing via choco with --ignore-checksum --force, no go. Winget is not found as a command.
Solved it, install winget from the microsoft/winget-cli repo.
sometimes directly from source is best, search online, Microsoft has tons of documentation etc
Solved it, install winget from the microsoft/winget-cli repo.
Before anyone comes asking for it. https://github.com/microsoft/winget-cli/releases
I am still unable to get it to work as well. I did notice when I try to install anything from WinUtil. it is running a second copy of Powershell and then immediately closes and says winget install failed on the initial PS screen.
Thanks
I've solved my issues. Thanks
what solved the issue?
I made this easier with a force in winget reinstall.
