Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winget upgrade package, No applicable update found #1191

Closed
kdpuvvadi opened this issue Jun 19, 2021 · 76 comments · Fixed by #1649
Closed

Winget upgrade package, No applicable update found #1191

kdpuvvadi opened this issue Jun 19, 2021 · 76 comments · Fixed by #1649
Assignees
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@kdpuvvadi
Copy link

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
Copy link

Hmmm, i can't replicate this..

PS C:\Users\Esco> winget install Python.Python.3 --version 3.9.4150.0
Found Python 3.9.4150.0 [Python.Python.3]
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://www.python.org/ftp/python/3.9.4/python-3.9.4-amd64.exe
  ██████████████████████████████  27.0 MB / 27.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Users\Esco> winget upgrade
Name     Id              Version    Available  Source
-----------------------------------------------------
Python 3 Python.Python.3 3.9.4150.0 3.9.5150.0 winget
PS C:\Users\Esco> winget upgrade --all
Found Python 3 [Python.Python.3]
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://www.python.org/ftp/python/3.9.5/python-3.9.5-amd64.exe
  ██████████████████████████████  27.0 MB / 27.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed

@kdpuvvadi
Copy link
Author

Here my output


❯ winget upgrade
Name                              Id                      Version      Available   Source
-----------------------------------------------------------------------------------------
Mozilla Firefox                   Mozilla.Firefox         89.0         89.0.1      winget
VLC media player                  VideoLAN.VLC            3.0.15       3.0.16      winget
Zoom                              Zoom.Zoom               5.6.5 (823)  5.6.1016    winget
VNCViewer                         RealVNC.VNCViewer       6.1.1.28093  6.21.406    winget
Microsoft Windows Desktop Runtime Microsoft.dotnetRuntime 3.1.13.29816 5.0.7.30113 winget

❯ winget upgrade Mozilla.Firefox
No applicable update found.

image

@RayJW
Copy link

RayJW commented Jun 21, 2021

I can confirm that I am affected by the same issue.
grafik
There are multiple packages affected for me. 4K Video Downloader is one of them, but also WinRAR or the Epic Games Launcher are giving me this error.

@denelon denelon transferred this issue from microsoft/winget-cli Jun 21, 2021
@OfficialEsco
Copy link

@denelon you might not want to move every subject about this to the Package Repo when it points to a issue with winget-cli

@denelon
Copy link
Contributor

denelon commented Jun 21, 2021

@OfficialEsco I'm trying to balance which ones can be addressed with the package metadata vs. closing them as duplicates. Do you think this one belongs in CLI?

@OfficialEsco
Copy link

As i said i cannot replicate this with a clean install, therefore there is no issue on the Package side and there most be a bug with the CLI as this have been reported since winget upgrade release...
Another one https://github.com/microsoft/winget-pkgs/issues/18417#issuecomment-865184624

@ghost ghost added the Needs-Triage Issue need to be triaged label Jun 21, 2021
@denelon denelon transferred this issue from microsoft/winget-pkgs Jun 21, 2021
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Jun 21, 2021
@KaranKad
Copy link

KaranKad commented Jun 21, 2021

This issue might be related to winget-pkgs
@kdpuvvadi Did you first install Firefox from it's website using exe installer or from winget?

I was able to replicate this issue by installing old version of Firefox using exe installer and then trying winget upgrade Mozilla.Firefox

❯ winget upgrade
Name                              Id                      Version      Available   Source
-----------------------------------------------------------------------------------------
Mozilla Firefox                   Mozilla.Firefox         89.0         89.0.1      winget
Winamp                            Radionomy.Winamp        5.8          5.8         winget
Microsoft Windows Desktop Runtime Microsoft.dotnetRuntime 5.0.6.30021  5.0.7.30113 winget
TechPowerUp GPU-Z                 TechPowerUp.GPU-Z       Unknown      2.40.0      winget
Microsoft Windows Desktop Runtime Microsoft.dotnetRuntime 3.1.15.30014 5.0.7.30113 winget

❯ winget upgrade Mozilla.Firefox
No applicable update found.

WinGet's Firefox manifest only contains msi installer so that might be the issue.

@denelon
Copy link
Contributor

denelon commented Jun 21, 2021

@KaranKad thanks for figuring this one out. We do try to avoid updating a package with a different "InstallerType".

@OfficialEsco
Copy link

winget CLI need to explain this instead of No applicable update found.. A better reporting would most likely help solve most of these issues since we could narrow it down.

@denelon
Copy link
Contributor

denelon commented Jun 21, 2021

#1196

@kdpuvvadi
Copy link
Author

This issue might be related to winget-pkgs
@kdpuvvadi Did you first install Firefox from it's website using exe installer or from winget?

only installed it from winget. as others in the screenshot.

@KaranKad
Copy link

@denelon It actually does not upgrade even if previously installed using msi installer. Now I installed old version of firefox from winget which installs from msi installer and then tried winget upgrade Mozilla.Firefox which should install next version from msi installer but it throws No applicable update found.. Looks like the problem might be related to winget-cli after all. 😅

❯  winget install firefox -v 89.0
Found Mozilla Firefox [Mozilla.Firefox]
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://download-installer.cdn.mozilla.net/pub/firefox/releases/89.0/win64/en-US/Firefox%20Setup%2089.0.msi
  ██████████████████████████████  53.4 MB / 53.4 MB
Successfully verified installer hash
Starting package install...
Successfully installed

❯  winget upgrade
Name                              Id                      Version      Available   Source
-----------------------------------------------------------------------------------------
Mozilla Firefox                   Mozilla.Firefox         89.0         89.0.1      winget

❯  winget upgrade Mozilla.Firefox
No applicable update found.

@kdpuvvadi
Copy link
Author

@KaranKad I've just tested that. reults the same. it might the issue with cli.

❯ winget install Mozilla.Firefox -v 84.0
Found Firefox [Mozilla.Firefox]
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://download-installer.cdn.mozilla.net/pub/firefox/releases/84.0/win64/en-US/Firefox%20Setup%2084.0.msi
  ██████████████████████████████  55.2 MB / 55.2 MB
Successfully verified installer hash
Starting package install...
Successfully installed

❯ winget upgrade
Name                              Id                          Version      Available   Source
---------------------------------------------------------------------------------------------
Mozilla Firefox             Mozilla.Firefox             84.0         89.0.1      winget

❯ winget upgrade firefox
No applicable update found.

@kdpuvvadi
Copy link
Author

And winget install firefox installs the latest version though.

❯ winget install firefox
Found Mozilla Firefox [Mozilla.Firefox]
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://download-installer.cdn.mozilla.net/pub/firefox/releases/89.0.1/win64/en-US/Firefox%20Setup%2089.0.1.msi
  ██████████████████████████████  53.3 MB / 53.3 MB
Successfully verified installer hash
Starting package install...
Successfully installed

@OfficialEsco
Copy link

Can actually confirm this is happening on a PC which i installed Firefox on via Winget before, the issue might be the ProductCode on the Firefox MSI installer which is not changing?

OfficialEsco added a commit to OfficialEsco/winget-pkgs that referenced this issue Jun 22, 2021
OfficialEsco added a commit to OfficialEsco/winget-pkgs that referenced this issue Jun 22, 2021
ghost pushed a commit to microsoft/winget-pkgs that referenced this issue Jun 23, 2021
ghost pushed a commit to microsoft/winget-pkgs that referenced this issue Jun 23, 2021
@bcrod
Copy link

bcrod commented Jun 23, 2021

Somehow the winget has this problem when the app doesn't provide the version number to windows. Or is it just me?

image
image
image

@denelon denelon closed this as completed Nov 18, 2021
Repository owner moved this from Assigned to Done in WinGet Nov 18, 2021
@derkrasseleo
Copy link

7-Zip has this problem:
image

@OfficialEsco
Copy link

Currently only the EXE is released.

@derkrasseleo
Copy link

Currently only the EXE is released.

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

@OfficialEsco
Copy link

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.

#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
Copy link

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

@OfficialEsco
Copy link

OfficialEsco commented Feb 22, 2022

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

@Nishith-Savla
Copy link

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
Copy link

OfficialEsco commented Feb 23, 2022

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 #752 (comment)

Edit: Apparently its not as simple because i've found a new issue 😁 microsoft/winget-pkgs#47777

@bboysnick5
Copy link

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
Copy link

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
Copy link

digulla commented Jun 8, 2022

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

@lmachegger
Copy link

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
Copy link

@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
Copy link

Also same issue with trying to update MS VCRedist:
WingetIssue

@emoxam
Copy link

emoxam commented Jan 4, 2023

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
Copy link

emoxam commented Jan 4, 2023

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
Copy link

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
Copy link

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
Copy link

BADF00D commented Jun 5, 2023

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
Copy link

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
Copy link
Contributor

denelon commented Jun 26, 2023

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
Copy link

JoydeepMallick commented Feb 8, 2024

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 :- #2686

This command did help me:-

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.