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

With package instaled "update" says no package

Open MrHinsh opened this issue 8 months ago • 4 comments

Brief description of your issue

With nkdAgility.AzureDevOpsMigrationTools.Preview installed running update fails.

❯ winget list nkdAgility.AzureDevOpsMigrationTools.Preview
Name                                   Id                                           Version          Available        Source
----------------------------------------------------------------------------------------------------------------------------
Azure DevOps Migration Tools (Preview) nkdAgility.AzureDevOpsMigrationTools.Preview 16.1.1-Preview.2 16.1.1-Preview.4 winget
   ~\source\repos\azure-devops-migration-platform  main                                                                  MartinHinshelwoodNKD@NKDA-Behemoth   11:47:55 
❯ winget update nkdAgility.AzureDevOpsMigrationTools.Preview
No installed package found matching input criteria.

Steps to reproduce

  1. Install "nkdAgility.AzureDevOpsMigrationTools.Preview" version 16.1.1-Preview.2
  2. Run winget update nkdAgility.AzureDevOpsMigrationTools.Preview

Expected behavior

The package updates

Actual behavior

The package was not found

Environment

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

Windows: Windows.Desktop v10.0.26200.5600
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.230.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                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Enabled
ProxyCommandLineOptions                   Disabled

MrHinsh avatar May 20 '25 10:05 MrHinsh

Even with a clean uninstall/install i get the same beeaviour:

❯ winget install nkdAgility.AzureDevOpsMigrationTools.Preview
Found Azure DevOps Migration Tools (Preview) [nkdAgility.AzureDevOpsMigrationTools.Preview] Version 16.1.1-Preview.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Microsoft.DotNet.DesktopRuntime.8
      Microsoft.DotNet.Framework.DeveloperPack_4
Downloading https://github.com/nkdAgility/azure-devops-migration-tools/releases/download/v16.1.1-Preview.4/MigrationTools-16.1.1-Preview.4.zip
  ██████████████████████████████  23.8 MB / 23.8 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "devopsmigration"
Successfully installed
   ~\source\repos\NKDAgility.com  Add-new-Videos                                                                         MartinHinshelwoodNKD@NKDA-Behemoth   11:55:41 
❯ winget update nkdAgility.AzureDevOpsMigrationTools.Preview
No installed package found matching input criteria.
   ~\source\repos\NKDAgility.com  Add-new-Videos                                                                         MartinHinshelwoodNKD@NKDA-Behemoth   11:55:47 
❯

MrHinsh avatar May 20 '25 10:05 MrHinsh

Same thing happened to me today with notepad4:

Image

WinGet-2025-06-05-10-49-24.649.log

And same is happening to me with fmpeg as also mentioned in https://github.com/microsoft/winget-cli/issues/5401 and it plagues other packages I don't remember.

It seems there are other open issues describing same problem I guess: https://github.com/microsoft/winget-cli/issues/4632 https://github.com/microsoft/winget-cli/issues/4761 https://github.com/microsoft/winget-cli/issues/4751 but it seems it always goes nowhere

brkerez avatar Jun 05 '25 09:06 brkerez

This looks like a case where more than one package appears to be correlated.

You may want to add "--id" and "--exact" and possibily "--force" WinGet to update the package with the ID.

We still have challenges around "channels" where there is a stable version and a preview version for a package, so WinGet can't disambiguate based on the metadata in the registry and the manifest.

denelon avatar Jun 16 '25 17:06 denelon

This looks like a case where more than one package appears to be correlated.

You may want to add "--id" and "--exact" and possibily "--force" WinGet to update the package with the ID.

We still have challenges around "channels" where there is a stable version and a preview version for a package, so WinGet can't disambiguate based on the metadata in the registry and the manifest.

As mentioned in other issues, it looks like if affects package that have a shared prefix with other packages. None of the provided command-line switches help.

Image

kevingosse avatar Jun 16 '25 18:06 kevingosse

Duplicated issues:

  • #5102
  • #4875

Fred-Vatin avatar Aug 25 '25 01:08 Fred-Vatin