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 not installing correctly #3051

Open
Thedinotamer opened this issue Nov 19, 2024 · 6 comments
Open

Winget not installing correctly #3051

Thedinotamer opened this issue Nov 19, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Thedinotamer
Copy link

Thedinotamer commented Nov 19, 2024

Describe the bug

Chocolatey gets installed but not winget, thus I can't install anything.

To Reproduce

Steps to reproduce the behavior:

  1. Click on 'config'
  2. Scroll down to 'reinstall winget'
  3. See error

Expected behavior

Screenshots

Additional context

Windows 11 Pro 24H2

microsoft-ui-xaml-2-7 v2.7.3 (forced) [Approved]
microsoft-ui-xaml-2-7 package files install completed. Performing other installation steps.
ERROR: The type initializer for '<Module>' threw an exception.
The install of microsoft-ui-xaml-2-7 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\microsoft-ui-xaml-2-7\tools\chocolateyInstall.ps1'.
 See log for details.
Downloading package from source 'https://community.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/4 packages. 4 packages failed.                                                                    See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - microsoft-ui-xaml-2-7 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-ui-xaml-2-7\tools\chocolateyInstall.ps1'.                                                                                                    See log for details.                                                                                                    - 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.                                                                                                                                                               Deployment operation progress: https://cdn.winget.microsoft.com/cache/source.msix                                          Processing                                                                                                              [oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo]                                                                                                                              ===========================================

Winget is not Installed. Continuing with install.
Downloading Winget Prerequsites

Downloading Microsoft.VCLibs Dependency...
Downloading Microsoft.UI.Xaml Dependency...

Downloading Winget and License File
Latest Version: v1.9.25200

Downloading...
Installing Winget w/ Prerequsites
Manually adding Winget Sources, from Winget CDN.
Winget Installed
Enabling NuGet and Module...
===========================================
--    Configuring winget packages       ---
===========================================
===========================================
Error: This command cannot be run due to the error: The file cannot be accessed by the system.

chocolatey.log

@Thedinotamer Thedinotamer added the bug Something isn't working label Nov 19, 2024
@k5tQp2ET
Copy link

Same here.

@KeyJou
Copy link

KeyJou commented Nov 24, 2024

Same bro

@CHOTY
Copy link

CHOTY commented Nov 24, 2024

I have issue with winget too. I have this windows since 2022 and winget was working fine. Suddenly i installed windows 11 version 23H2 22631 and winget isn't recognized as term.

@Hahubel1
Copy link

Hahubel1 commented Nov 25, 2024

Same here. Requirements / versions for winget keep changing.
I tried my own scripts. In the end I went for a script from PSGallery.

This works for me:

# Quick test using Winget-Install from PSGallery  
# NuGet is required 
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
# Install latest install script
Install-Module -Name Winget-Install -Force -AllowClobber -Repository PSGallery
# Call the script
&"C:\Program Files\WindowsPowerShell\Scripts\winget-install.ps1"
Now winutil is happy with the latest version of winget.
====Chris Titus Tech=====
=====Windows Toolbox=====
@{winget=7zip.7zip; choco=7zip}
Queueing 7zip.7zip for Winget install
===========================================
---        Winget is installed          ---
===========================================
Version: v1.9.25200
    - Winget is a release version.
    - Winget is Up to Date

Winget is already installed.

@CHOTY
Copy link

CHOTY commented Nov 25, 2024

thanks that helped

@aggrophobik
Copy link

Downloading package from source 'https://community.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 '' 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/4 packages. 4 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • microsoft-ui-xaml-2-7 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\microsoft-ui-xaml-2-7\tools\chocolateyInstall.ps1'.
    See log for details.
  • 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.

same issue for me, is this something i'm doing wrong?

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

6 participants