winget-cli
winget-cli copied to clipboard
Unable to upgrade k6
Brief description of your issue
winget lists an available upgrade for k6 but then doesn't let me actually install it. Instead, it just keeps complaining that the upgrade is available.
Steps to reproduce
winget upgrade lists the following:
Name Id Version Available Source
-----------------------------------
k6 k6.k6 0.50.0 0.51.0 winget
1 upgrades available.
Then attempting winget upgrade k6.k6 gives this:
No applicable upgrade found.
A newer package version is available in a configured source, but it does not apply to your system or requirements.
Expected behavior
If an upgrade is listed as available, it should be installable.
Actual behavior
The upgrade is listed as available but then refuses to install.
Environment
Windows Package Manager v1.7.11261
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.4529
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
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:
- displaying upgrades available, but when trying to install 'No applicabale update found' (#2583), similarity score: 0.76
Closed similar issues:
- Can't upgrade
Microsoft.VCRedist.2015+.x86(#3546), similarity score: 0.77 - Upgrade available but not installing (#2037), similarity score: 0.77
- Upgrade available but not installable (#1476), similarity score: 0.76
- Unable to upgrade packages (#2009), similarity score: 0.75
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Big question: If the available package does not "apply to [my] system or requirements" then why is winget upgrade listing it as an available upgrade and trying to install it? Even doing winget upgrade --all throws the same error. Here are verbose logs from an installation attempt:
WinGet-2024-06-21-09-50-05.344.log
2024-06-21 09:50:07.076 [CLI ] Installer [X64,wix,User,en-US] not applicable: Installer scope does not match currently installed scope: User != Machine
2024-06-21 09:50:07.085 [CLI ] Terminating context: 0x8a15002b at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:bc
Looks like maybe k6 published the installer only in the "user" scope and I have this installed in "machine" scope? If that's true, then why isn't winget upgrade filtering this out properly? If the scopes don't match, it shouldn't be returned as a viable update because then winget upgrade --all fails too.
Hey, same problem happened with NeoVim My main problem with that was that I had to dig through the logs to get the problem instead of winget stdout (same happened with WinRAR but the problem there was Locale) not printing it in the cli make no sense
When trying to run K6 manually I was able to find out that I'm already upgraded to latest edition for my current operation system Windows 10.
May be K6 has its latest versionf or Windows 11 only.
I got following output when trying to upgrade K6
Microsoft Windows [Version 10.0.19045.5131]
(c) Microsoft Corporation. All rights reserved.
C:\Users\vaibhavPH>winget upgrade K6
No applicable upgrade found.
A newer package version is available in a configured source, but it does not apply to your system or requirements.
Last june I had the same issue with another package and I reported it in the winget-pkgs repository and it got solved. https://github.com/microsoft/winget-pkgs/issues/159215
Just wondering if the k6 package issue can be resolved the same way.