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

reinstall of Winget fails #3193

Open
3 tasks
TheBigBear opened this issue Feb 4, 2025 · 5 comments
Open
3 tasks

reinstall of Winget fails #3193

TheBigBear opened this issue Feb 4, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@TheBigBear
Copy link

Describe the bug

using Winget Reinstall under config -> fixes fails

Steps to reproduce

  1. Go to config fixes
  2. Click on WinGet Reinstall
  3. See the error.
Checking if Chocolatey is Installed...
===========================================
---      Chocolatey is installed        ---
===========================================
Version: v2.4.2
Chocolatey v2.4.2
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
   using:
     choco feature enable --name="exitOnRebootDetected"
   or pass the option --exit-when-reboot-detected.

Installing the following packages:
winget
By installing, you accept licenses for the packages.
Downloading package from source 'https://chocolatey.org/api/v2/'
Progress: Downloading microsoft-vclibs-140-00 14.0.33321... 100%

microsoft-vclibs-140-00 v14.0.33321 (forced)
microsoft-vclibs-140-00 package files install completed. Performing other installation steps.
ERROR: The type initializer for '<Module>' threw an exception.
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.
Failed to install winget-cli because a previous dependency failed.
Failed to install winget because a previous dependency failed.

Chocolatey installed 0/3 packages. 3 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.
 - winget - Failed to install winget because a previous dependency failed.
 - winget-cli - Failed to install winget-cli because a previous dependency failed.

Expected behavior

expect it would simply re-install winget

Screenshots

Additional context

Issue validation

  • I checked for duplicate issues.
  • I checked for already existing discussions.
  • I checked for an already existing pull request addressing the issue.
@theverloxs
Copy link

theverloxs commented Feb 6, 2025

something is messing up with python3 install that causes winget to want to reinstall and then chocolatey fails at installing everything except pyenv.win (i had a lot of programs selected, something messes up with it, when i deselect python3 everything works fine, for reference ive used this tool since it was released with no issues at all on my system.

@NotYourAverageGamer
Copy link

NotYourAverageGamer commented Feb 11, 2025

Is this by any chance a fresh windows 10 install?
If yes, open the Microsoft Store and let it initialize, then update the MS store apps, then run windows update and finally restart the PC.

Can't say I've run into this sort of issue on W11 yet but worth a shot if it's a fresh install

#3160 (comment)

@theverloxs
Copy link

I believe I discovered the issue, it was that the microsoft store was not installed, right now I use windows ltsc 2021, ltsc versions come barebones without anything installed, the fix i did was just entering "WSReset -i&&TimeOut 20&&WSReset -i&&exit" into an elevated cmd and then microsoft store was installed normally.

@TheBigBear
Copy link
Author

Is this by any chance a fresh windows 10 install? If yes, open the Microsoft Store and let it initialize, then update the MS store apps, then run windows update and finally restart the PC.

Can't say I've run into this sort of issue on W11 yet but worth a shot if it's a fresh install

#3160 (comment)

no, it is a win 11 pro 24H2 with there ms store installed, sorry should have said I only get this error on win 11 pro with 24h2

@TheBigBear
Copy link
Author

I believe I discovered the issue, it was that the microsoft store was not installed, right now I use windows ltsc 2021, ltsc versions come barebones without anything installed, the fix i did was just entering "WSReset -i&&TimeOut 20&&WSReset -i&&exit" into an elevated cmd and then microsoft store was installed normally.

thanks for your comment, but I am on win 11 pro with 24H2 and the Microsoft Windows store is installed and in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants