Skip to content

"No installed package found matching input criteria." when attempting to update #2686

Open

Description

@tranquilcarbon

Brief description of your issue

when i run winget upgrade, several programs have updates. for some, such as mozilla thunderbird, attempting to run the update causes a "No installed package found matching input criteria." error.

if i uninstall the program and reinstall using winget, it works find however.

example command:
winget upgrade Mozilla.Thunderbird

Steps to reproduce

use command winget upgrade Mozilla.Thunderbird on version 102.4.1. it might appear.

Expected behavior

winget begins to upgrade the application

Actual behavior

winget throws a error "No installed package found matching input criteria."

Environment

Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2251
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

current affected programs:

Mozilla Thunderbird
(Mozilla.Thunderbird)

Activity

  1. ghost added
    Needs-Triage
    on Nov 10, 2022
  2. TheITCloudGuy commented on Nov 10, 2022

    @TheITCloudGuy

    Same issue here.

    Location: UK
    image

  3. tranquilcarbon commented on Nov 11, 2022

    @tranquilcarbon
    Author

    Same issue here.

    Location: UK image

    perhaps this is a issue with something in the UK, does winget use region specific servers or something like that?

    additionally, i have attached a screenshot, in case this helps.
    image

  4. added
    Issue-Bug
    and removed
    Needs-Triage
    on Nov 14, 2022
  5. LukasDotEU commented on Nov 19, 2022

    @LukasDotEU

    Same issue here in Germany since more than a week i think.
    Screenshot 2022-11-19 134100
    (basically the same just with German language)

    since i am in Germany it is probably not an issue regarding something in the UK

  6. szlevi commented on Nov 19, 2022

    @szlevi

    Yeah, I don't think it is country-specific - I'm in NYC and it's completely broken here too:

    image

    Not only that, but it also mis-detects the version to be 7.2.5.0 when I actually have 7.3.0 installed for some time now...

  7. irzyxel commented on Nov 26, 2022

    @irzyxel

    having that problem for a long time.
    winget upgrade lists a package. but then it doesnt upgarde, neiter by using --all nor by using any variant of its name.
    after a couple of days it usually works.

    PS C:\Users\Michael> winget upgrade
    Name                ID                                Version Verfügbar Quelle
    ------------------------------------------------------------------------------
    LibreOffice 7.4.2.1 TheDocumentFoundation.LibreOffice 7.4.2.1 7.4.2.3   winget
    1 Aktualisierungen verfügbar.
    1 Paket hat eine Versionsnummer, die nicht bestimmt werden kann. Wenn Sie „--include-unknown“ verwenden, werden möglicherweise weitere Ergebnisse angezeigt.
    PS C:\Users\Michael> winget upgrade Libreoffice
    Es wurden keine anwendbaren Aktualisierungen gefunden.
    PS C:\Users\Michael> winget upgrade TheDocumentFoundation.LibreOffice
    Es wurden keine anwendbaren Aktualisierungen gefunden.
    PS C:\Users\Michael> winget upgrade --all
    Name                ID                                Version Verfügbar Quelle
    ------------------------------------------------------------------------------
    LibreOffice 7.4.2.1 TheDocumentFoundation.LibreOffice 7.4.2.1 7.4.2.3   winget
    1 Aktualisierungen verfügbar.
    1 Paket hat eine Versionsnummer, die nicht bestimmt werden kann. Wenn Sie „--include-unknown“ verwenden, werden möglicherweise weitere Ergebnisse angezeigt.
    PS C:\Users\Michael>
    
  8. SamaelAmbrona commented on Nov 28, 2022

    @SamaelAmbrona

    I have same issue with a couple of packages. In the beginning I was able to solve the issue by uninstalling the package and install it again with Winget but after a couple of updates it fails again

  9. szlevi commented on Nov 28, 2022

    @szlevi

    In addition, I just discovered my PuTTY was removed - is it possible that, while failing to install the new one, winget first did successfully remove my existing version? If so, that's very much not cool...

  10. mdanish-kh commented on Nov 28, 2022

    @mdanish-kh
    Contributor

    In addition, I just discovered my PuTTY was removed - is it possible that, while failing to install the new one, winget first did successfully remove my existing version? If so, that's very much not cool...

    szlevi Please note that this was done intentionally to align with the publisher's changelog:

    Note: installing the 0.78 or later Windows installer will not automatically uninstall 0.77 or earlier, due to a change we've made to work around a bug. We recommend uninstalling the old version first, if possible. If both end up installed, uninstalling both and then re-installing the new version will fix things up.

    Please see microsoft/winget-pkgs#87021

  11. szlevi commented on Nov 28, 2022

    @szlevi

    In addition, I just discovered my PuTTY was removed - is it possible that, while failing to install the new one, winget first did successfully remove my existing version? If so, that's very much not cool...

    szlevi Please note that this was done intentionally to align with the publisher's changelog:

    Note: installing the 0.78 or later Windows installer will not automatically uninstall 0.77 or earlier, due to a change we've made to work around a bug. We recommend uninstalling the old version first, if possible. If both end up installed, uninstalling both and then re-installing the new version will fix things up.

    Please see microsoft/winget-pkgs#87021

    Ah, I see, thanks. So it's just a temp issue, right?

  12. mdanish-kh commented on Nov 28, 2022

    @mdanish-kh
    Contributor

    Ah, I see, thanks. So it's just a temp issue, right?

    That depends on the publisher. If future installers perform "in-place" upgrade instead of requiring the version to be manually uninstalled first, the behavior will be duly updated in the winget's manifest.

  13. tranquilcarbon commented on Nov 30, 2022

    @tranquilcarbon
    Author

    i've found another package that has the same issue, the microsoft visual C++ redistributable 2013, specifically the x64 version has the issue, not the x86 version which updated fine. can we have a developer explain why this issue is appearing?
    WindowsTerminal_CnyqQ1UGZm

  14. denelon commented on Dec 1, 2022

    @denelon
    Collaborator

    The matching logic is based on comparing what values are written to the registry (it's the same thing that powers what you see in Windows Apps & Features), and what metadata is listed in manifests in all configured sources. Sometimes the installer isn't reporting things consistently to the registry and in other cases, the manifest doesn't have all the variations of what is reported.

    WinGet looks at package family name, product code, upgrade code, display name, and display version. Depending on what is available, heuristics are used to determine the "best match" when there isn't an exact match.

    As the Visual C++ Redistributable packages can be installed side-by-side for different versions and different architectures, it's been more challenging to capture all the correct metadata for all the variations. We are incrementally making improvements with both the manifests and the client (matching logic and upgrade/install logic), but clearly there is still more work to be done.

  15. 35 remaining items

  16. SayakMukhopadhyay commented on Jan 13, 2025

    @SayakMukhopadhyay

    Uninstalling and reset the source didn't work for me. But if instead of using --id I use the --name, the upgrade works.

  17. ZeeroMX commented on Feb 3, 2025

    @ZeeroMX

    Uninstalling and reset the source didn't work for me. But if instead of using --id I use the --name, the upgrade works.

    I tried to use that modifier but I wasn't able to upgrade Microsoft.PowerShell, can you elaborate the command you used for the upgrade to work?

  18. codekoenig commented on Feb 4, 2025

    @codekoenig

    I tried to use that modifier but I wasn't able to upgrade Microsoft.PowerShell, can you elaborate the command you used for the upgrade to work?

    Copy the full name and version from the name field of the list command. As it contains spaces, don't forget to put it in quotes. In my case it was:

    winget update --name "PowerShell 7.4.6.0-x64"

    This seems to recognize the correct package, which does not work with id. In my case, this leads to a more helpful error message:

    A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.

    This is weird because I can see it's installed over winget. But I will try to uninstall. I uninstalled and reinstalled and now it shows as PowerShell 7-x64 in the winget list without any specific version number. Maybe this will fix future update issues ...

  19. wapenshaw commented on Feb 15, 2025

    @wapenshaw

    I am pretty sure I installed pnpm, nvm-windows and Papercut with winget and I still get this

    Image

    I've also tried winget source reset --force suggested in #2426 (comment)
    and its the same after.

  20. agedburd commented on Feb 24, 2025

    @agedburd

    Experiencing the same issue with Git. winget upgrade --id work around is working.

  21. amadou-6e commented on Mar 6, 2025

    @amadou-6e

    Issue like this happening for years is not normal

  22. oapy123 commented on Apr 3, 2025

    @oapy123

    The matching logic is based on comparing what values are written to the registry (it's the same thing that powers what you see in Windows Apps & Features), and what metadata is listed in manifests in all configured sources. Sometimes the installer isn't reporting things consistently to the registry and in other cases, the manifest doesn't have all the variations of what is reported.

    WinGet looks at package family name, product code, upgrade code, display name, and display version. Depending on what is available, heuristics are used to determine the "best match" when there isn't an exact match.

    As the Visual C++ Redistributable packages can be installed side-by-side for different versions and different architectures, it's been more challenging to capture all the correct metadata for all the variations. We are incrementally making improvements with both the manifests and the client (matching logic and upgrade/install logic), but clearly there is still more work to be done.

    There are a couple of classes of issues. One is when the installer type has changed. For the most part, I think we've isolated that path and resolved it.

    Another is when it's an MSI based installer and we aren't getting a good match for the "Product Code" or "Upgrade Code".

    Another is when the package is installed in either "user" or "machine" scope and the upgrade is defaulting to the opposite scope, or the user has a requirement in their settings which doesn't match the installed scope or the default scope specified in the manifest.

    Demitrius Nelon (@denelon) or anyone else in the know

    I just discovered Winget recently and was so excited to have an app to install and keep things up to date. It made setting up a new PC much easier than doing things the old way one app at a time. Then I was bummed to find out shortly thereafter that a large number of apps were consistently failing to update. I've spent an hour or so researching and from what I've gathered, it is very odd to me that these issues seem to have been going on for years and affecting a large number of users, I would have expected them to have been fixed by now. I'm sure there's a good reason they haven't but I'm curious where these issue lie on the roadmap and what's being done to address them. Is there an open Issue tracking the overall problem including the various classes of root causes at play? Are these issues something that the WinGet team has to fix, or is it issues that individual publishers need to fix, or both? Is there anything that end users can do to contribute, such as filing winget-cli bug reports for each individual app that fails to upgrade? Or filing bug reports directly with the individual app's publishers instead? Or if nothing else, are there specific existing Issues that we should +1 to help to quantify the scale of impact?

    I guess what I really want to know is if this is actively being worked on and likely to be fixed in the near future or if there is really no concerted overall effort/committment to fix. I much prefer to use a native solution but if there's no end in sight for these issues I might need to cut my losses and try another package manager for a while until these update issues are addressed.

  23. jessiewestlake commented on Apr 18, 2025

    @jessiewestlake

    Most of these issues seem to be related to using --id versus using --name and I noticed why that is while looking through the verbose logs from Olav Rønnestad Birkeland (@o-l-a-v) in issuecomment-2291473749.

    2024-08-15 16:58:30.300 [REPO] Adding manifest for [ARP\Machine\X64\VLC media player, 3.0.20] at relative path []
    2024-08-15 16:58:30.300 [REPO] Did not find an Id { ARP\Machine\X64\VLC media player }

    The application was discovered by name as installed, and a corresponding ID was not found before adding it to the list of installed packages that winget is tracking. winget matches that application to a specific one from its online source when displaying it in the upgrade list, but when going to actually upgrade/reinstall the application, it can't find the application by its ID in your registry.

    So, it seems to me, winget is gambling on the fact that it found the right package when it is displaying information in its upgrade list, but it is erring on the cautious side when it goes to actually upgrade the application on your system when you specified it by ID in the command and you don't specifically have that ID discovered on your system itself. When you specify to upgrade by name, it is satisfied when it finds an application on your system by that name.

    As to all the problems with discovering and upgrading applications from different user/machine scopes or with/without elevated privileges, I would like to figure out a way to understand that more clearly.

  24. github-account1111 commented on Jul 18, 2025

    @github-account1111

    Experiencing the same issue with Git. winget upgrade --id work around is working.

    The problem with the --id "workaround" (which IMO it isn't a workaround, but the correct way of doing it) is you can't string multiple --ids in a single command, so you're stuck running winget upgrade over and over. Shold stop being a problem when #5501 gets implemented... whenever that happens.

  25. tesfabpel commented on Feb 20, 2026

    @tesfabpel

    I have the same issue, even with uninstall...
    If you run winget list --id GodotEngine.GodotEngine.Mono you get a match;
    if you do winget uninstall --id GodotEngine.GodotEngine.Mono --all you'll get
    the error of this issue ("No installed package found matching input criteria.").

    BTW, it's the same with or without --id.

    In my case it's for GodotEngine.GodotEngine.Mono.

    Here's the console output.

    PS> winget list --id GodotEngine.GodotEngine.Mono
    Nome                Id                           Versione Disponibile Origine
    -----------------------------------------------------------------------------
    Godot Engine (Mono) GodotEngine.GodotEngine.Mono 4.5.1    4.6         winget
    PS> winget uninstall --id GodotEngine.GodotEngine.Mono --all
    Non è stato trovato alcun pacchetto installato corrispondente ai criteri di input.
    PS> winget update --id GodotEngine.GodotEngine.Mono
    Non è stato trovato alcun pacchetto installato corrispondente ai criteri di input.
  26. EdHerdman commented on Apr 20, 2026

    @EdHerdman

    Since PowerShell was mentioned, I thought I'd document my steps to get PowerShell updated with winget:

    I closed Terminal (Windows PowerShell) and used cmd (Administrator Command Prompt) for the first two commands.

    winget uninstall PowerShell
    winget install -id Microsoft.Powershell
    

    I left out some other commands I tried; they threw errors due to the different packages available. Finally, I checked that PowerShell's version was the up-to-date release:
    winget show Microsoft.PowerShell

  27. EdHerdman commented on Apr 20, 2026

    @EdHerdman

    Additionally, UniGetUI is useful as it has a nice list view showing you the sources, ids, and names of packages, when you have multiple sources.

    Terminal and PowerShell can be at variance too. When I launched Terminal it used to show more flavor text than PowerShell (like "try the latest PowerShell). I notice that after resetting and repairing Terminal (from the App Settings, or Apps -> Installed apps -> Terminal), it now shows the same simple string "PowerShell 7.6.0" as launching PowerShell; the only difference being that Terminal launches in the user directory and PowerShell launches in System32.

  28. masterflitzer commented on Apr 20, 2026

    @masterflitzer

    PowerShell launches in System32

    only if you start an admin session, which is not what you should use by default, a regular user session will start in your home dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-UpgradeIssue-Bug

    Type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions