You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Winget upgrade lists and installs Python 3 twice (and any time I start the upgrade) #1392
Area-MatchingIssue related to correlation between installed package and manifestCommand-UpgradeIssue related to WinGet UpgradeIssue-BugIt either shouldn't be doing this or needs an investigation.Side-by-SideIssue related to side by side package installation
When I start winget upgrade, it lists python 3 twice and when I do upgrade --all it is downloading and installing python-3.9.6-amd64.exe twice. AFAIK it did this even three weeks ago before my vacation.
Steps to reproduce
Execute "winget upgrade" in PowerShell
Expected behavior
Each package should be listed only once and in order matching possible dependencies. After I finished the upgrade, the package should not be listed any longer.
Actual behavior
Python 3 (and I think .net before) is listed, downloaded, and upgraded several times what wastes bandwidth and compute power.
This looks like the same behavior reported in #1212. The upgrade command is checking the list of installed packages and seeing more than one installed. It attempts to upgrade both packages, but they may be installed side-by-side so the new version is installed twice.
I see the exact same issue with the twist that I can neither uninstall the stale 3.9.5150.0 version of Python nor upgrade it.
Brief description of your issue
Upgrading from cmd, PowerShell user or admin using winget upgrade --all or winget upgrade will always declare that there is an update to Python3 because winget has installed two versions of Python while it holds back the older 3.9.*.* version.
Mavaddat Javid (@mavaddat) can you confirm if the latest version of python is being installed? This looks like the scenario for packages that support "side by side" installation, and the earlier version isn't removed.
The Windows Package Manager is checking to see what is installed, and it finds a match to Python.Python.3 in this case. It attempts to "upgrade" to the latest version of the package, but the upgrade isn't removing the previous version, or upgrading it in place. When you run winget upgrade again, the same thing is happening over again.
We've got an issue on the backlog to see if we can detect that the latest version of a package is already installed on a machine so we will skip this package for winget upgrade --all.
Area-MatchingIssue related to correlation between installed package and manifestCommand-UpgradeIssue related to WinGet UpgradeIssue-BugIt either shouldn't be doing this or needs an investigation.Side-by-SideIssue related to side by side package installation
Activity
denelon commentedon Aug 23, 2021
This looks like the same behavior reported in #1212. The upgrade command is checking the list of installed packages and seeing more than one installed. It attempts to upgrade both packages, but they may be installed side-by-side so the new version is installed twice.
mavaddat commentedon Nov 21, 2021
I see the exact same issue with the twist that I can neither uninstall the stale 3.9.5150.0 version of Python nor upgrade it.
Brief description of your issue
Upgrading from
cmd, PowerShell user or admin usingwinget upgrade --allorwinget upgradewill always declare that there is an update to Python3 becausewingethas installed two versions of Python while it holds back the older3.9.*.*version.Steps to reproduce
Try any or all of these:
winget upgrade --allwinget upgrade --id Python.Python.3 --version 3.9.5150.0winget upgrade --id Python.Python.3winget list --name Pythonwinget uninstall --id Python.Python.3 --version 3.9.5150.0winget uninstall --id Python.Python.3Expected behavior
Able to uninstall the Python 3.9 using winget command 4, or 5 in the steps to reproduce section.
Actual behavior
Cannot upgrade or uninstall the stunted version of Python using any of the
wingetcommands in the steps to reproduce section.Environment
pyenv 2.64.11
denelon commentedon Nov 22, 2021
Mavaddat Javid (@mavaddat) can you confirm if the latest version of python is being installed? This looks like the scenario for packages that support "side by side" installation, and the earlier version isn't removed.
The Windows Package Manager is checking to see what is installed, and it finds a match to Python.Python.3 in this case. It attempts to "upgrade" to the latest version of the package, but the upgrade isn't removing the previous version, or upgrading it in place. When you run
winget upgradeagain, the same thing is happening over again.We've got an issue on the backlog to see if we can detect that the latest version of a package is already installed on a machine so we will skip this package for
winget upgrade --all.winget upgrade --allshouldn't install the same package more than once #110522 remaining items
Trenly commentedon Jun 16, 2023
[Policy] Area-Matching
[Policy] Side-By-Side
denelon commentedon Apr 2, 2024
We've been working on the side-by-side scenarios. You could try the latest release and enable the experimental feature on:
Please provide feedback at:
denelon commentedon Jul 3, 2024
Is this still a problem with WinGet 1.8?
GalaxySnail commentedon Jul 6, 2024
It has been fixed in winget v1.8.1791. Thanks for your efforts!
Trenly commentedon Jul 6, 2024
Close with reason: Resolved;