microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.53k stars 1.39k forks source link

Multiple packages with same name, id and source #4477

Closed eblis closed 1 month ago

eblis commented 1 month ago

Brief description of your issue

I have 2 packages with the same Name, Id and source. One of them is listed as having an update available, the other one is listed as being at the latest version.

> winget list --verbose "Double Commander" -s winget
Name             Id                        Version Available
------------------------------------------------------------
Double Commander alexx2000.DoubleCommander 1.1.14
Double Commander alexx2000.DoubleCommander 1.0.11  1.1.14
winget list --verbose "Double Commander"
Name             Id                        Version Available Source
-------------------------------------------------------------------
Double Commander alexx2000.DoubleCommander 1.1.14            winget
Double Commander alexx2000.DoubleCommander 1.0.11  1.1.14    winget

Steps to reproduce

I do not know how this could happen. I've read several other issues where it says that the issue is that the packages have different sources, but it doesn't look to be the case for me, i have the exact same source, winget for both.

Expected behavior

The package should only be listed once, not multiple times .. it's the same package.

Actual behavior

I have two packages with the same Id, Name and Source and I have no idea how to remove one of them. I cannot use winget to upgrade the package as it says that there are multiple matches and I should refine the search, but there's nothing different about the two entries, I can't refine by Id, Name or Source.

winget upgrade -e "Double Commander" -s winget
Multiple installed packages found matching input criteria. Please refine the input.
Name             Id
------------------------------------------
Double Commander alexx2000.DoubleCommander
Double Commander alexx2000.DoubleCommander

Environment

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

Windows: Windows.Desktop v10.0.19045.4170
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.11261.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

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
github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

eblis commented 1 month ago

Looks to be similar to the found issues, a side-by-side issue.