`winget list --upgrade-available` says no installed package found matching input criteria when package is up to date

オープン 初心者向け
#6,645 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
cli

調査の方向性

winget list コマンドと --upgrade-available フラグから始め、パッケージが既に最新の状態で --id Microsoft.PowerShell を付けて再現してください。ソース内で「No installed package found matching input criteria」というメッセージを検索し、アップグレードフィルターがそれを返している箇所を特定します。インストール済みで最新のパッケージに対して、見つからないという文言ではなく、アップグレードは利用できない旨など明確なメッセージが表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Issue-Bug Needs-Triage
Relevant area(s)

WinGet CLI

Relevant command(s)

No response

Brief description of your issue

I upgraded powershell to latest version, then run below to confirm no more updates were needed:

PS> winget list --id Microsoft.PowerShell --upgrade-available
No installed package found matching input criteria.

This is confusing/bad message.

Without --upgrade-available, winget list --id Microsoft.PowerShell correctly shows the installed version.
The current message makes it sound as if WinGet no longer recognizes the installed package.

Steps to reproduce
  1. Install PowerShell 7 with WinGet.
  2. Run winget list --id Microsoft.PowerShell --upgrade-available while an update is available.
  3. Upgrade it with winget upgrade --id Microsoft.PowerShell.
  4. Run the list command again.
Expected behavior

Microsoft.PowerShell version 7.6.9.0, no update needed

Actual behavior

No installed package found matching input criteria.

Environment
[winget --info]

Windows Package Manager v1.29.380
© 2026 Microsoft. All rights reserved.

Windows: Windows.Desktop v10.0.26200.9457
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.380.0

WinGet Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads
Configuration Modules              %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
ConfigurationProcessorPath                Disabled
DefaultProxy                              Disabled
主要言語
C++
スター
26.6k
フォーク
1.8k
平均マージ
4日 12時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/winget-cli のほかの issue

microsoft/winget-cli の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。