winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Completely broken.

Open TheAnonymousXII opened this issue 2 years ago • 20 comments

No modules work.

Demo: image image image

And that is for all modules and every setting.

TheAnonymousXII avatar Feb 01 '24 22:02 TheAnonymousXII

@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.

accidental-expert avatar Feb 01 '24 22:02 accidental-expert

Ok thanks!

TheAnonymousXII avatar Feb 01 '24 23:02 TheAnonymousXII

@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 image

Grimmrp2 avatar Feb 02 '24 00:02 Grimmrp2

@Grimmrp2 🙄 the box you want to click is 'winget reinstall'. This will force the app to be installed again.

accidental-expert avatar Feb 02 '24 01:02 accidental-expert

@Grimmrp2 🙄 the box you want to click is 'winget reinstall'. This will force the app to be installed again.

it fails

image

Grimmrp2 avatar Feb 02 '24 01:02 Grimmrp2

@Grimmrp2 🙄 the box you want to click is 'winget reinstall'. This will force the app to be installed again.

it fails

image

Try following the instructions in the terminal.

accidental-expert avatar Feb 02 '24 01:02 accidental-expert

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 avatar Feb 02 '24 01:02 SbMan1

@SbMan1 try running this command in a terminal as administrator: choco install winget -y --force

Yuuh15 avatar Feb 02 '24 01:02 Yuuh15

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!

berlintay avatar Feb 02 '24 03:02 berlintay

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.

LP-DSS avatar Feb 02 '24 12:02 LP-DSS

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

LP-DSS avatar Feb 02 '24 13:02 LP-DSS

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

berlintay avatar Feb 02 '24 14:02 berlintay

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.

petterssonjonas avatar Feb 02 '24 17:02 petterssonjonas

Solved it, install winget from the microsoft/winget-cli repo.

petterssonjonas avatar Feb 02 '24 17:02 petterssonjonas

sometimes directly from source is best, search online, Microsoft has tons of documentation etc

berlintay avatar Feb 02 '24 17:02 berlintay

Solved it, install winget from the microsoft/winget-cli repo.

Before anyone comes asking for it. https://github.com/microsoft/winget-cli/releases

v-Kaefer avatar Feb 02 '24 19:02 v-Kaefer

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

LP-DSS avatar Feb 02 '24 22:02 LP-DSS

I've solved my issues. Thanks

LP-DSS avatar Feb 02 '24 23:02 LP-DSS

what solved the issue?

berlintay avatar Feb 03 '24 02:02 berlintay

I made this easier with a force in winget reinstall.

ChrisTitusTech avatar Feb 03 '24 17:02 ChrisTitusTech