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
23.1k stars 1.44k forks source link

Winget upgrade package, No applicable update found #1191

Closed kdpuvvadi closed 2 years ago

kdpuvvadi commented 3 years ago

Brief description of your issue

if i run winget upgraded packagename & update available, it should update the package but it shows No applicable update found even though it's showing the newer version available.

Steps to reproduce

winget upgrade list of the available updates winget upgrade --all or winget upgrade Python.Python.3

Expected behavior

It should update the actual selected package or all incase of --all

Actual behavior

throws No applicable update found and if i run winget install packagename then installs the update.

Environment

Windows 10 Enterprise 21H1 build 19043.1055 Experience Pack 120.2212.2020.0

[winget --info]
Windows Package Manager v1.0.11451
Windows: Windows.Desktop v10.0.19043.1055
Package: Microsoft.DesktopAppInstaller v1.11.11451.0
OfficialEsco commented 2 years ago

PowerToys are a complicated issue https://github.com/microsoft/winget-pkgs/issues/29199#issuecomment-933602917 Actual link to issue https://github.com/microsoft/winget-cli/issues/752

MagicFirefly commented 2 years ago

image

image

OfficialEsco commented 2 years ago

Ahhhhh i just realized the issue mid comment

Cryptomator changed from exe to msi after version 1.6.0 which is why you cannot upgrade.

denelon commented 2 years ago

@MagicFirefly we look at the installer type used for the current installation. If the new installer type doesn't match, we don't upgrade. I'm not sure how many times this scenario happens, so there may be more than one way to deal with it. I'll create a new issue.

USMA56795 commented 2 years ago

I'd imagine it doesn't happen often, but ideally winget would handle it gracefully. Perhaps prompt the user, or uninstall the old version entirely, etc. Various switches (e.g. force) could change such behavior.

derkrasseleo commented 2 years ago

7-Zip has this problem: image

OfficialEsco commented 2 years ago

Currently only the EXE is released.

derkrasseleo commented 2 years ago

Currently only the EXE is released.

This shouldn't be a problem right? Reinstalling does work btw

OfficialEsco commented 2 years ago

we look at the installer type used for the current installation. If the new installer type doesn't match, we don't upgrade. I'm not sure how many times this scenario happens, so there may be more than one way to deal with it. I'll create a new issue.

https://github.com/microsoft/winget-cli/pull/1649

According to that commit you should be asked if you want to replace the MSI with the EXE, however its not even implemented in version 1.2.3131-preview, so maybe it will be in the full version of 1.2 which is ETA 31 December (Unknown)

Nishith-Savla commented 2 years ago

Any update yet? I'm facing the same issue...

OfficialEsco commented 2 years ago

These issues should be worked around in https://github.com/microsoft/winget-cli/releases/tag/v1.3.431 The Cryptomator issue: https://github.com/microsoft/winget-cli/issues/1640

Nishith-Savla commented 2 years ago

These issues should be worked around in https://github.com/microsoft/winget-cli/releases/tag/v1.3.431 The Cryptomator issue: #1640

This doesn't appear to have fixed yet.... image

OfficialEsco commented 2 years ago

I can’t seem to find that package mentioned in this thread but it looks like a easy fix (will make a Fix PR in about 1h)

For any future relevant issues/info please read my comment from a different thread https://github.com/microsoft/winget-cli/issues/752#issuecomment-1048293063

Edit: Apparently its not as simple because i've found a new issue 😁 https://github.com/microsoft/winget-pkgs/issues/47777

bboysnick5 commented 2 years ago

So go 1.18 is out and winget does show 1.18 with search command. But cannot upgrade. [interesting] (as it's more verbose and easier to type plus more programming like than emoji)

Cynyster commented 2 years ago

This is still an issue

PowerShell 7.2.4
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS C:\Users\*****> winget upgrade
Name                                            Id                           Version        Available      Source
-----------------------------------------------------------------------------------------------------------------
Cisco Webex Meetings                            Cisco.CiscoWebexMeetings     41.11.5        42.4.1.12      winget
TeraCopy                                        CodeSector.TeraCopy          3.8.2          3.9.0          winget
Microsoft Visual C++ 2008 Redistributable - x86 Microsoft.VC++2008Redist-x86 9.0.30729.4148 9.0.30729.6161 winget
Webex                                           Cisco.WebexTeams             42.4.1.22032   42.5.0.22259   winget
Microsoft Visual C++ 2008 Redistributable - x64 Microsoft.VC++2008Redist-x64 9.0.30729.4148 9.0.30729.6161 winget
Microsoft Teams                                 Microsoft.Teams              1.3.0.13565    1.5.00.11163   winget
Google Chrome                                   Google.Chrome                101.0.4951.67  102.0.5005.63  winget
7 upgrades available.
5 packages have version numbers that cannot be determined. Use "--include-unknown" to see all results.
PS C:\Users\*****> winget upgrade -q Cisco.CiscoWebexMeetings
No applicable update found.
PS C:\Users\*****>
digulla commented 2 years ago

Please provide more details in the error message when winget thinks it can't update (like "app was installed manually; please uninstall, first").

lmachegger commented 2 years ago

I have the same issue "No applicable update found." for the package PostgreSQL.PostgreSQL. Even when I freshly install this package, it shows an available update, but when trying to update I get "no applicable update found." Broken packages like this make winget upgrade --all completely unusable for me.

# m4chei WORKSTATION ~ [15:35:32]
❯ winget install PostgreSQL.PostgreSQL
Found PostgreSQL 14 [PostgreSQL.PostgreSQL] Version 14
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://get.enterprisedb.com/postgresql/postgresql-14.1-1-windows-x64.exe
  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   284 MB /  284 MB
Successfully verified installer hash
Starting package install...
Successfully installed
# m4chei WORKSTATION ~ [15:38:05]
❯ winget upgrade
Name               Id                    Version  Available   Source
--------------------------------------------------------------------
PostgreSQL 14      PostgreSQL.PostgreSQL 9.5      14          winget
heroku             Heroku.HerokuCLI      Unknown  7.53.0.0    winget
Python 2           Python.Python.2       2.7.150  2.7.18150   winget
SharpKeys          RandyRants.SharpKeys  3.9.2000 3.9.4000    winget
VMware Workstation VMware.WorkstationPro 16.1.2   16.2.3      winget
Python 3           Python.Python.3       3.4.4150 3.10.5150.0 winget
6 upgrades available.
# m4chei WORKSTATION ~ [15:38:20]
❯ winget upgrade PostgreSQL.PostgreSQL
No applicable update found.
# m4chei WORKSTATION ~ [15:38:30]
❯
OfficialEsco commented 2 years ago

@lmachegger you have PostgreSQL 9.5 installed somewhere else on your computer and/or remaining registry strings from PostgreSQL 9.5.

However we could probably split the major versions into different folders(packages) as they can be installed side by side

Use RevoUninstaller to actually get a clean install.

insurgent commented 1 year ago

Also same issue with trying to update MS VCRedist: WingetIssue

emoxam commented 1 year ago

The same problem with winget upgrade --id="Logitech.LGS" -e A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version. winget upgrade --id="ParadoxInteractive.ParadoxLauncher" -e No applicable update found.

winget upgrade

Name Id Version Available Source

Google Chrome Google.Chrome 60.0.3112.78 108.0.5359.125 winget Monkey's Audio x64 MonkeysAudio.MonkeysAudio 8.03 9.04 winget Notepad++ (32-bit x86) Notepad++.Notepad++ 7.9.1 8.4.8 winget Microsoft Visual C++ 2013 Redistributable (x64) … Microsoft.VCRedist.2013.x64 12.0.30501.0 12.0.40664.0 winget Punto Switcher 4.2.6 Yandex.PuntoSwitcher 4.2.6.1275 4.4.4.489 winget Logitech Gaming Software 5.10 Logitech.LGS 5.10.127 9.04.28 winget Royal TS 6.01.50504.0 RoyalApps.RoyalTS 6.1.50504.0 6.1.51214.0 winget Telegram Desktop Telegram.TelegramDesktop 4.3.2 4.4.1 winget Paradox Launcher v2 ParadoxInteractive.ParadoxLauncher 2.1.0 2.4.0 winget NVIDIA GeForce Experience 3.24.0.135 Nvidia.GeForceExperience 3.24.0.135 3.26.0.154 winget NVIDIA GeForce NOW 2.0.47.115 Nvidia.GeForceNow 2.0.47.115 2.0.47.125 winget Epic Games Launcher EpicGames.EpicGamesLauncher 1.2.17.0 1.3.23.0 winget Microsoft Visual C++ 2013 Redistributable (x86) … Microsoft.VCRedist.2013.x86 12.0.30501.0 12.0.40664.0 winget 13 upgrades available.

emoxam commented 1 year ago

Or another issue

winget upgrade --id="Nvidia.GeForceExperience" -e Found NVIDIA GeForce Experience [Nvidia.GeForceExperience] Version 3.26.0.154 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://us.download.nvidia.com/GFE/GFEClient/3.26.0.154/GeForce_Experience_v3.26.0.154.exe β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 124 MB / 124 MB Successfully verified installer hash Starting package install... Successfully installed

winget upgrade --id="Nvidia.GeForceNow" -e Found NVIDIA GeForce NOW [Nvidia.GeForceNow] Version 2.0.47.125 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Downloading https://ota-downloads.nvidia.com/ota/GeForceNOW-release_D88B3C.exe β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ 138 MB / 138 MB Successfully verified installer hash Starting package install... Successfully installed

Buit winget upgrade shows that nothing changed!

JTellington commented 1 year ago

If you are trying to upgrade PowerShell and you use the Terminal application, it is possible that winget installs are being downloaded - but are being stored in the Terminal application as an additional profile. This is what happened to me. I installed an updated PowerShell and the $PSVersionTable command kept returning the same 5.XX version after I used winget to upgrade to 7.XX. I think it'll be sooooo awesome if MS consolidated all CLI to the Terminal application πŸ™ƒ. If not possible, at least integrate the products a bit better. As of right now - Terminal, Powershell, Powershell Preview all seem to behave somewhat independently.

Masamune3210 commented 1 year ago

The PowerShell that you download and install has to be separate from the in-box version because they are managed, updated, and handled in general differently from each other.

BADF00D commented 1 year ago

This still seems to be a problem:

PS C:\Users\user> $PSVersionTable.PSVersion

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      3      4

PS C:\Users\user> winget --version
v1.4.11071
PS C:\Users\user> winget upgrade
Name                                                              Id                                    Version       Available     Source
------------------------------------------------------------------------------------------------------------------------------------------
NVM for Windows 1.1.10                                            CoreyButler.NVMforWindows             1.1.10        1.1.11        winget
Visual Studio Community 2022                                      Microsoft.VisualStudio.2022.Community 17.5.4        17.6.2        winget
JetBrains Rider 2022.3.2                                          JetBrains.Rider                       2022.3.2      2023.1        winget
Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.34.319… Microsoft.VCRedist.2015+.x64          14.34.31931.0 14.36.32532.0 winget
JetBrains ETW Host Service (x64)                                  JetBrains.ReSharper                   > 2022.2.2    2022.3.3      winget
OpenSSL 3.0.8 (64-bit)                                            ShiningLight.OpenSSL                  1.0.0         3.1.1         winget
6 upgrades available.
3 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
PS C:\Users\user> winget upgrade --id Microsoft.VisualStudio.2022.Community
No applicable upgrade found.
PS C:\Users\user> winget upgrade --id Microsoft.VCRedist.2015+.x64
No applicable upgrade found.
PS C:\Users\user>
rafaelelter commented 1 year ago

I was having this issue with the Microsoft Visual C++ 2013 Redistributable (x86) package. I figured out that winget was correctly showing that the package had an available upgrade, but it was showing the wrong id when listing the available upgrades. It was using the id of the x64 version, which was already upgraded. Once I used the correct id, the problem was solved.

PS C:\> winget upgrade
Name                                                Id                             Version        Available      Source
-----------------------------------------------------------------------------------------------------------------------
Windows PC Health Check                             Microsoft.WindowsPCHealthCheck 3.1.2109.29003 3.7.2204.15001 winget
Microsoft Visual C++ 2013 Redistributable (x86) - … Microsoft.VCRedist.2013.x64    12.0.30501.0   12.0.40664.0   winget
2 upgrades available.

PS C:\>  winget list Microsoft.VCRedist.2013
Name                                                       Id                          Version      Available    Source
-----------------------------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.40… Microsoft.VCRedist.2013.x64 12.0.40664.0              winget
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30… Microsoft.VCRedist.2013.x86 12.0.30501.0 12.0.40664.0 winget
denelon commented 1 year ago

Hey all, this issue was closed. Take a look at open Issues with the "Area-Matching" label to see current gaps and work in progress.

JoydeepMallick commented 8 months ago

Actual behavior

throws No applicable update found and if i run winget install packagename then installs the update.

Environment

Windows 10 Enterprise 21H1 build 19043.1055 Experience Pack 120.2212.2020.0

[winget --info]
Windows Package Manager v1.0.11451
Windows: Windows.Desktop v10.0.19043.1055
Package: Microsoft.DesktopAppInstaller v1.11.11451.0

Check this out :- https://github.com/microsoft/winget-cli/issues/2686

This command did help me:-

winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe 
winget source reset --force