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 Out of Date but can't update #3073

Closed
chan-man opened this issue Nov 26, 2024 · 3 comments
Closed

Winget Out of Date but can't update #3073

chan-man opened this issue Nov 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@chan-man
Copy link

Describe the bug

When I try to install chrome for instance via winget I get an error stating winget is out of date. It tries to install and runs into an issue. I'm attaching an image.

To Reproduce

Run WinUtil
Select Chrome
Install

Expected behavior

Install Chrome or any other software

Screenshots

image

Additional context

This is a custom image but have tried it on non custom images as well.

@chan-man chan-man added the bug Something isn't working label Nov 26, 2024
@zmileski
Copy link

Duplicate of #3073 #3051 #3003

@chan-man
Copy link
Author

I'm not very versed in PowerShell but I did find a script that has helped me. Feel free to modify as tested and I will as well. I don't think this issue is related to WinUtil but still repairs the issue.
I first ran the following:
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
Which may or may not have done anything I'm not sure.
Then ran the following:
$progressPreference = 'silentlyContinue' $latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object {$_.EndsWith(".msixbundle")} $latestWingetMsixBundle = $latestWingetMsixBundleUri.Split("/")[-1] Write-Information "Downloading winget to artifacts directory..." Invoke-WebRequest -Uri $latestWingetMsixBundleUri -OutFile "./$latestWingetMsixBundle" Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx Add-AppxPackage $latestWingetMsixBundle

Once I ran this code it fully updated WinGet and I had no further issues.
I would like to note this is only happening on New OS installs for me at the moment. I'm sure the entirety of the code above isn't needed I just don't know what to remove.

@ChrisTitusTech
Copy link
Owner

Fixed in merge #3088

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