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

Some packages are ignored when removing multiple packages with `winget uninstall`

Open soredake opened this issue 2 years ago • 2 comments

Brief description of your issue

I have Microsoft.ZuneMusic_8wekyb3d8bbwe installed, but when i do sudo { winget uninstall --accept-source-agreements -h Clipchamp.Clipchamp_yxz26nhyzhsrt Microsoft.Todos_8wekyb3d8bbwe Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe Microsoft.WindowsCamera_8wekyb3d8bbwe Microsoft.Windows.Photos_8wekyb3d8bbwe Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe Microsoft.People_8wekyb3d8bbwe Microsoft.BingWeather_8wekyb3d8bbwe Microsoft.BingNews_8wekyb3d8bbwe AdvancedMicroDevicesInc-2.AMDLink_0a9344xs7nr4m microsoft.windowscommunicationsapps_8wekyb3d8bbwe Microsoft.ZuneMusic_8wekyb3d8bbwe }

I get this:

No installed package found matching input criteria.
Package not found: Clipchamp.Clipchamp_yxz26nhyzhsrt
No installed package found matching input criteria.
Package not found: Microsoft.Todos_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.WindowsCamera_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.Windows.Photos_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.People_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.BingWeather_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.BingNews_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: AdvancedMicroDevicesInc-2.AMDLink_0a9344xs7nr4m
No installed package found matching input criteria.
Package not found: microsoft.windowscommunicationsapps_8wekyb3d8bbwe

Microsoft.ZuneMusic_8wekyb3d8bbwe is ignored during batch winget uninstall for some reason.

Removing this package works fine if i remove only one package at time:

❯ sudo winget uninstall -h Microsoft.ZuneMusic_8wekyb3d8bbwe
Found Windows Media Player [Microsoft.ZuneMusic_8wekyb3d8bbwe]
Starting package uninstall...
  ██████████████████████████████  100%
Successfully uninstalled

Steps to reproduce

  1. Install Microsoft.ZuneMusic_8wekyb3d8bbwe if you don't have it already.
  2. Try to uninstall multiple packages with command like this winget uninstall --accept-source-agreements -h Clipchamp.Clipchamp_yxz26nhyzhsrt Microsoft.Todos_8wekyb3d8bbwe Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe Microsoft.WindowsCamera_8wekyb3d8bbwe Microsoft.Windows.Photos_8wekyb3d8bbwe Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe Microsoft.People_8wekyb3d8bbwe Microsoft.BingWeather_8wekyb3d8bbwe Microsoft.BingNews_8wekyb3d8bbwe AdvancedMicroDevicesInc-2.AMDLink_0a9344xs7nr4m microsoft.windowscommunicationsapps_8wekyb3d8bbwe Microsoft.ZuneMusic_8wekyb3d8bbwe

Expected behavior

Microsoft.ZuneMusic_8wekyb3d8bbwe is removed.

Actual behavior

Microsoft.ZuneMusic_8wekyb3d8bbwe should be removed, but for some reason winget ignored this package.

Environment

❯ winget --info
Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.

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

soredake avatar Nov 17 '23 11:11 soredake

Similar problem with FrancisBanyikwa.SiriKali, when i do (FrancisBanyikwa.SiriKali is not installed) winget just ignores this package:

❯ winget install --no-upgrade -h --accept-package-agreements --accept-source-agreements XP99VR1BPSBQJ2 WireGuard.WireGuard Microsoft.OfficeDeploymentTool Chocolatey.Chocolatey virtualbox Ryochan7.DS4Windows bluestacks AppWork.JDownloader google-drive GOG.Galaxy dupeguru Syncplay.Syncplay doublecmd wiztree Parsec.Parsec hamachi 7zip-zstd retroarch handbrake eaapp KeePassXCTeam.KeePassXC protonvpn multipass msedgeredirect afterburner strawberry-music AwthWathje.SteaScree PPSSPPTeam.PPSSPP sshfs-win Dropbox.Dash galaclient RamenSoftware.Windhawk qBittorrent.qBittorrent FrancisBanyikwa.SiriKali
A package version is already installed. Installation cancelled.
Package is already installed: XP99VR1BPSBQJ2
A package version is already installed. Installation cancelled.
Package is already installed: WireGuard.WireGuard
A package version is already installed. Installation cancelled.
Package is already installed: Chocolatey.Chocolatey
A package version is already installed. Installation cancelled.
Package is already installed: virtualbox
A package version is already installed. Installation cancelled.
Package is already installed: Ryochan7.DS4Windows
A package version is already installed. Installation cancelled.
Package is already installed: bluestacks
A package version is already installed. Installation cancelled.
Package is already installed: AppWork.JDownloader
Multiple packages found matching input criteria. Please refine the input.
Name         Id                 Source
--------------------------------------
Google Drive Google.Drive
Google Drive Google.GoogleDrive winget
Multiple packages found for: google-drive
A package version is already installed. Installation cancelled.
Package is already installed: GOG.Galaxy
A package version is already installed. Installation cancelled.
Package is already installed: dupeguru
A package version is already installed. Installation cancelled.
Package is already installed: Syncplay.Syncplay
A package version is already installed. Installation cancelled.
Package is already installed: doublecmd
A package version is already installed. Installation cancelled.
Package is already installed: wiztree
A package version is already installed. Installation cancelled.
Package is already installed: Parsec.Parsec
A package version is already installed. Installation cancelled.
Package is already installed: hamachi
A package version is already installed. Installation cancelled.
Package is already installed: 7zip-zstd
A package version is already installed. Installation cancelled.
Package is already installed: retroarch
A package version is already installed. Installation cancelled.
Package is already installed: handbrake
A package version is already installed. Installation cancelled.
Package is already installed: eaapp
A package version is already installed. Installation cancelled.
Package is already installed: KeePassXCTeam.KeePassXC
A package version is already installed. Installation cancelled.
Package is already installed: multipass
A package version is already installed. Installation cancelled.
Package is already installed: msedgeredirect
A package version is already installed. Installation cancelled.
Package is already installed: afterburner
A package version is already installed. Installation cancelled.
Package is already installed: AwthWathje.SteaScree
A package version is already installed. Installation cancelled.
Package is already installed: PPSSPPTeam.PPSSPP
A package version is already installed. Installation cancelled.
Package is already installed: sshfs-win
A package version is already installed. Installation cancelled.
Package is already installed: Dropbox.Dash
A package version is already installed. Installation cancelled.
Package is already installed: galaclient
A package version is already installed. Installation cancelled.
Package is already installed: RamenSoftware.Windhawk
A package version is already installed. Installation cancelled.
Package is already installed: qBittorrent.qBittorrent

soredake avatar Jan 03 '24 08:01 soredake

winget also ignores Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe and Microsoft.BingWeather_8wekyb3d8bbwe

soredake avatar Apr 10 '24 10:04 soredake