Version packages always have issues with non-existent versions
The bug exist all the time and couldn't solve,the winget has this bug all the time! It's all get on winget.
The bug exist all the time and couldn't solve,the winget has this bug all the time! It's all get on winget.
Are you using UniGet? Is this issue still reproducible via winget.exe CLI?
16:31:58 D:\Repository 18ms pwsh
$ komac.exe list-versions EpicGames.EpicGamesLauncher | Show-Columns
1.3.0.0 1.3.78.0 1.3.128.0 1.3.149.0 1.3.155.0 1.3.170.0 1.3.176.0
1.3.23.0 1.3.82.0 1.3.135.0 1.3.150.0 1.3.159.0 1.3.173.0 1.3.189.0
1.3.67.0 1.3.93.0 1.3.142.0 1.3.151.0 1.3.161.0 1.3.175.0
16:32:16 D:\Repository 1.573s pwsh
$ winget.exe download -d .\winget-pkgs\bin\ -e EpicGames.EpicGamesLauncher -v 1.3.189.0
已找到 Epic Games Launcher [EpicGames.EpicGamesLauncher] 版本 1.3.189.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://epicgames-download1.akamaized.net/Builds/UnrealEngineLauncher/Installers/Windows/EpicInstaller-20.1.0.msi?launcherfilename=EpicInstaller-20.1.0.msi
██████████████████████████████ 83.2 MB / 83.2 MB
已成功验证安装程序哈希
已下载安装程序: .\winget-pkgs\bin\Epic Games Launcher_1.3.189.0_Machine_X64_wix_en-US.msi
16:34:38 D:\...\winget-pkgs [master ≡] 1ms pwsh
$ winget.exe search Microsoft.WinGet.Client
找不到与输入条件匹配的程序包。
16:35:12 D:\...\winget-pkgs [master ≡] 0ms pwsh
$ winget.exe search -e Daum.PotPlayer
名称 ID 版本 源
-------------------------------------------
PotPlayer Daum.PotPlayer 26.06.26.0 winget
16:35:28 D:\...\winget-pkgs [master ≡] 2.948s pwsh
$ komac.exe list-versions Daum.PotPlayer | Show-Columns
25.09.09.0 26.01.14.0 26.04.01.0 26.04.22.0 26.06.22.0 26.06.23.0 26.06.26.0
16:35:52 D:\...\winget-pkgs [master ≡] 1.465s pwsh
$ winget.exe download -d .\bin\ -e Daum.PotPlayer -v 26.06.26.0
已找到 PotPlayer [Daum.PotPlayer] 版本 26.06.26.0
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://t1.daumcdn.net/potplayer/PotPlayer/Version/Latest/PotPlayerSetup64.exe
██████████████████████████████ 54.7 MB / 54.7 MB
安装程序哈希不匹配;若要重写此检查,请使用 --ignore-security-hash
16:36:50 D:\...\winget-pkgs [master ≡] 0ms pwsh
$ winget.exe search -e Tencent.WeChat.Universal
名称 ID 版本 源
-------------------------------------------------
WeChat Tencent.WeChat.Universal 4.1.11.24 winget
16:37:14 D:\...\winget-pkgs [master ≡] 1.441s pwsh
$ komac.exe list-versions Tencent.WeChat.Universal | Show-Columns
4.1.1.19 4.1.5.30 4.1.6.46 4.1.7.1000 4.1.8.107 4.1.9.57 4.1.10.53 4.1.11.24
16:37:23 D:\...\winget-pkgs [master ≡] 2.311s pwsh
$ winget.exe download -d .\bin\ -e Tencent.WeChat.Universal -v 4.1.11.24
已找到 微信 [Tencent.WeChat.Universal] 版本 4.1.11.24
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
正在下载 https://dldir1v6.qq.com/weixin/Universal/Windows/WeChatWin_4.1.11.exe
██████████████████████████████ 228 MB / 228 MB
已成功验证安装程序哈希
已下载安装程序: .\bin\微信_4.1.11.24_Machine_X64_nullsoft_zh-Hans-CN.exe
I can't sure if WinGet can be upgraded by itself. I'm using the preview version of WinGet, previously downloaded from GitHub Releases via ABDM.
PotPlayer uses a vanity URL which always points to the latest version. When a new version is published, the manifest will fail with https://github.com/microsoft/winget-pkgs/labels/Error-Hash-Mismatch. This is intended.
- Related #395243
I'm using UniGet, but the latest version shown by WinGet is always an enterprise internal beta version that cannot be downloaded. I wonder how they achieve this. The built-in version WinGet updated through the Windows 11 App Store is actually newer than the version shown here.
I use
winget upgrade winget
But since the updates are rare, I have never had the occasion of doing it manually.
Just checked doesn't work as winget will be in use while updating. Microsoft store will be best for update as well as installing winget (App Installer).
The latest version of what, exactly?
I'll take a guess that the problem is about Microsoft.Winget.Client and not the other 3 in the screenshot. If yes, I suppose testing out:
- Open PowerShell, probably as an admin.
- Run
winget rm "Microsoft.Winget.Client"to uninstall the bugged Winget version. - If successful, run
winget update Microsoft.AppInstaller --forceto make sure the non-bugged version gets updated. - Should step 3 fail, download and install one of the MSIXBundle files from https://github.com/microsoft/winget-cli/releases