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

Đang mở Phù hợp với người mới
#6,645 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu từ lệnh winget list với cờ --upgrade-available, rồi tái hiện lại bằng --id Microsoft.PowerShell khi gói đã ở phiên bản mới nhất. Tìm trong mã nguồn thông báo “No installed package found matching input criteria” để xác định nơi bộ lọc nâng cấp trả về thông báo này. Hoàn thành khi một gói đã cài và đang ở phiên bản mới nhất nhận được thông báo rõ ràng, chẳng hạn cho biết không có bản nâng cấp nào, thay vì thông báo không tìm thấy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
26.6k
Fork
1.8k
Merge trung bình
4 ngày 12 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/winget-cli

Tất cả issue của microsoft/winget-cli

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.