microsoft / microsoft/winget-cli

Unable to upgrade an installed package

Open
#5,401 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Portable
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem from the winget list and winget upgrade entry points using Gyan.FFmpeg.Shared, then compare how each command resolves the installed package. Done means the listed package is recognized by winget upgrade and the available version installs successfully on the reported Windows environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.