winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

displaying upgrades available, but when trying to install 'No applicabale update found'

Open Raffaello opened this issue 3 years ago • 7 comments

Brief description of your issue

Having these upgrades listed: winget upgrade

Microsoft .NET SDK 6.0.304 (x64)                     Microsoft.DotNet.SDK.6       6.0.304          6.0.401       winget
Microsoft Visual C++ 2015-2022 Redistributable (x64… Microsoft.VCRedist.2015+.x86 14.32.31332.0    14.34.31823.3 winget
Windows Software Development Kit - Windows 10.0.190… Microsoft.WindowsSDK         < 10.0.22000.832 10.0.22621.1  winget

upgrading them:

PS C:\>winget upgrade  Microsoft.DotNet.SDK.6
No applicable update found.                                                                                  
PS C:\>winget upgrade  Microsoft.VCRedist.2015+.x86
No applicable update found.                                                                           
PS C:\>winget upgrade  Microsoft.WindowsSDK
No installed package found matching input criteria.

Steps to reproduce

not sure...

Expected behavior

either not displaying the upgrade or upgrade the pacakges. (or eventually if it is the case like a reboot is required to notify the user that a reboot is required)

Actual behavior

not upgrading the listed packages.

Environment

Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.2006
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0


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

Raffaello avatar Oct 09 '22 15:10 Raffaello

Have you tried changing the repositories source?

ghost avatar Oct 09 '22 15:10 ghost

Have you tried changing the repositories source?

no i haven't

Raffaello avatar Oct 09 '22 15:10 Raffaello

Have you tried changing the repositories source?

no i haven't

I installed Microsoft.WindowsSDK 10.0.22000.832 and was able to re-create the issue you were having. The upgrade package is available to download manually https://download.microsoft.com/download/f/6/7/f673df4b-4df9-4e1c-b6ce-2e6b4236c802/windowssdk/winsdksetup.exe

ghost avatar Oct 09 '22 16:10 ghost

I have this same issue with several machines. For example:

`PS C:\Users\seers> winget upgrade Name Id Version Available Source PuTTY release 0.77 (64-bit) PuTTY.PuTTY 0.77.0.0 0.78.0.0 winget

PS C:\Users\seers> winget upgrade PuTTY.PuTTY No installed package found matching input criteria. `

I've seen this exact thing before as well, sometimes with MS Visual C++ redistributes, sometimes third-party packages like this. Any ideas?

SeerSnively avatar Nov 28 '22 22:11 SeerSnively

Can you perform the upgrade with the --verbose-logs flag and upload the logs here?

stephengillie avatar Dec 13 '22 17:12 stephengillie

Ah! At least for my PuTTY example, it was that it found two matching apps so it drops out. Here is the end of the normal log.

2022-12-13 14:52:41.282 [REPO] Found multiple matches for tracking package [PuTTY.PuTTY] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{01bf69b2-a358-43bb-8678-f9e3da1ea55f}'[Exact] Include:ProductCode='{2b9f1234-d8ed-45c0-b865-511405f4734f}'[Exact] Include:ProductCode='{4eef2644-700f-46f8-9655-915145248986}'[Exact] Include:ProductCode='{e078c644-a120-4668-ad62-02e9fd530190}'[Exact] Include:ProductCode='{f043faa1-9284-4e36-9226-d81254768b16}'[Exact] Include:ProductCode='{fdb77018-8b16-456d-aac9-0cfa01a36d92}'[Exact] Include:NormalizedNameAndPublisher='putty'+'simontatham'[Exact]] 2022-12-13 14:52:41.282 [REPO] Checking match with package id: {4EEF2644-700F-46F8-9655-915145248986} 2022-12-13 14:52:41.282 [REPO] Checking match with package id: {E078C644-A120-4668-AD62-02E9FD530190} 2022-12-13 14:52:41.282 [REPO] Found multiple packages with strong match fields 2022-12-13 14:52:41.282 [REPO] Appropriate installed package could not be determined 2022-12-13 14:52:41.309 [REPO] Found multiple matches for available package [PuTTY.PuTTY] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:ProductCode='{01bf69b2-a358-43bb-8678-f9e3da1ea55f}'[Exact] Include:ProductCode='{06db09ec-52d5-47fa-a0f3-d70ed6407481}'[Exact] Include:ProductCode='{127b996b-5308-4012-865b-9446451ea326}'[Exact] Include:ProductCode='{1e0d5689-40f1-4e46-abbb-eaac68b5cd89}'[Exact] Include:ProductCode='{2b9f1234-d8ed-45c0-b865-511405f4734f}'[Exact] Include:ProductCode='{4eef2644-700f-46f8-9655-915145248986}'[Exact] Include:ProductCode='{6f6a552c-e717-4560-92ec-94a680449a9f}'[Exact] Include:ProductCode='{8cfe5e4e-970a-4380-a782-af6e609574f1}'[Exact] Include:ProductCode='{8f276e88-8c75-43af-a245-7112ae5af2da}'[Exact] Include:ProductCode='{959d1ca2-9536-481c-86dd-155c09227f22}'[Exact] Include:ProductCode='{966dfb99-193e-422e-a5ea-3c79b068fc0c}'[Exact] Include:ProductCode='{a63efcb6-02cd-40f2-829c-411ff4eee106}'[Exact] Include:ProductCode='{e078c644-a120-4668-ad62-02e9fd530190}'[Exact] Include:ProductCode='{f043faa1-9284-4e36-9226-d81254768b16}'[Exact] Include:ProductCode='{fdb77018-8b16-456d-aac9-0cfa01a36d92}'[Exact] Include:NormalizedNameAndPublisher='putty'+'simontatham'[Exact]] 2022-12-13 14:52:41.309 [REPO] Checking match with package id: {4EEF2644-700F-46F8-9655-915145248986} 2022-12-13 14:52:41.309 [REPO] Checking match with package id: {E078C644-A120-4668-AD62-02E9FD530190} 2022-12-13 14:52:41.310 [REPO] Found multiple packages with strong match fields 2022-12-13 14:52:41.310 [REPO] Appropriate installed package could not be determined 2022-12-13 14:52:41.310 [CLI ] No app found matching input criteria 2022-12-13 14:52:41.326 [CLI ] Terminating context: 0x8a150014 at D:\a_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\WorkflowBase.cpp:32b

SeerSnively avatar Dec 13 '22 23:12 SeerSnively

Related #3011

sitiom avatar Feb 26 '23 03:02 sitiom

While it doesn't match the OP's behavior exactly, I see this often but it's always been when there are more than one match e.g.,

2023-05-01 14:31:21.526 [REPO] Finding installed package from tracking package using system reference search: Query:[none] Include:NormalizedNameAndPublisher='visualstudiolocator'+'microsoft'[Exact]
2023-05-01 14:31:21.527 [REPO] Found multiple matches for tracking package [Microsoft.VisualStudio.Locator] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:NormalizedNameAndPublisher='visualstudiolocator'+'microsoft'[Exact]]
2023-05-01 14:31:21.527 [REPO]   Checking match with package id: Microsoft.VisualStudio.Locator_Microsoft.Winget.Source_8wekyb3d8bbwe
2023-05-01 14:31:21.527 [REPO]   Checking match with package id: Microsoft.VisualStudio.Locator__DefaultSource
2023-05-01 14:31:21.527 [REPO]   Appropriate installed package could not be determined
2023-05-01 14:31:21.542 [REPO] Finding installed package from available package using system reference search: Query:[none] Include:NormalizedNameAndPublisher='visualstudiolocator'+'microsoft'[Exact]
2023-05-01 14:31:21.544 [REPO] Found multiple matches for available package [Microsoft.VisualStudio.Locator] in source [Microsoft.Winget.Source_8wekyb3d8bbwe] when searching for [Query:[none] Include:NormalizedNameAndPublisher='visualstudiolocator'+'microsoft'[Exact]]
2023-05-01 14:31:21.544 [REPO]   Checking match with package id: Microsoft.VisualStudio.Locator_Microsoft.Winget.Source_8wekyb3d8bbwe
2023-05-01 14:31:21.544 [REPO]   Checking match with package id: Microsoft.VisualStudio.Locator__DefaultSource
2023-05-01 14:31:21.544 [REPO]   Appropriate installed package could not be determined
2023-05-01 14:31:21.544 [CLI ] No app found matching input criteria
2023-05-01 14:31:21.550 [CLI ] Terminating context: 0x8a150014 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\WorkflowBase.cpp:377

Why two entries are there, I don't know. I'm the maintainer of the vswhere manifest and did just update it a week or two ago, but I only ever installed it once and only one vswhere.exe is found in my PATH, in case that has anything to do with it; though, doubtful since winget found two entries in the database.

/cc @tydunkel

heaths avatar May 01 '23 21:05 heaths