Winget "A newer package version is available in a configured source, but it does not apply to your system or requirements." tries to install wrong package #217693
Labels
Help-Wanted
This is a good candidate work item from the community.
Package-Update
This package needs to be updated
Brief description of your issue
Trying to upgrade Microsoft.OpenJDK.17 from installed version 17.0.13.11 to 17.0.14.7 failed. It looks like that winget tries to install for DE-DE (that's correct, there I am working from, but OS is EN-US) the ARM package instead of the (also available) x64 package. Details and log excerpt below.
Steps to reproduce
Hi,
winget list --upgrade-available --source=winget
winget upgrade Microsoft.OpenJDK.17 --verbose-logs
Log:
Web page Microsoft:
https://learn.microsoft.com/en-us/java/openjdk/download
Here you can check that there is of course a x64 package available:
No clue why winget tries to install on an x64 machine with an already installed x64 package an ARM version and saying that the locale is not correct?
Expected behavior
Winget installs the correct binary for the current OS with the OS localization.
Actual behavior
Winget tries to install the ARM binaries.
Environment
The text was updated successfully, but these errors were encountered: