winget-cli
winget-cli copied to clipboard
Unable to upgrade an installed package
Brief description of your issue
winget list lists the package, but winget upgrade fails to upgrade it.
Steps to reproduce
- install
Gyan.FFmpeg.Shared - run
winget list --id 'Gyan.FFmpeg.Shared' - run
winget upgrade --id 'Gyan.FFmpeg.Shared'
Expected behavior
winget list lists the package and winget upgrade upgrades it.
Actual behavior
PS C:\Users\antho> winget list --id 'Gyan.FFmpeg.Shared'
Name Id Version Available Source
-----------------------------------------------------------
FFmpeg (Shared) Gyan.FFmpeg.Shared 6.0 7.1.1 winget
PS C:\Users\antho> winget upgrade --id 'Gyan.FFmpeg.Shared'
No installed package found matching input criteria.
NativeCommandExitException: Program "winget.exe" ended with non-zero exit code: -1978335212.
PS C:\Users\antho>
Environment
Windows Package Manager v1.10.340
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.3775
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.340.0
Related issues: #4875 and #3910.
I'm having the same problem. I have a package installed that I've updated many times in the past with WinGet. Now winget upgrade is showing that there is an update, but it can't find it when running the winget upgrade <package id> command. I've had no issues with this in the past, so it seems to be a regression introduced in a recent winget version.
This is still an issue for me with both the Gyan.FFmpeg and yt-dlp.FFmpeg.
Windows Package Manager v1.12.420
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.7171
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.420.0