microsoft / microsoft/winget-cli

Winget refuses to update packages, ignoring --all as well

Open
#2,891 16 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

So for starters I am on v1.4.10173
I did winget upgrade today to see if there were any updates needed, and sure enough, both my java JREs needed upgrading. Then, I ran winget upgrade --all, and to my surprise it started updating the terminal. It did not, however, update the JREs.
Running winget upgrade --all just returns the 2 updatable java JREs, while also saying that 26 packages have undeterminable version numbers (I have f.lux, which doesnt properly display its version number, the issue with the apparent random number of undeterminable packages only started recently.)
Including --include-unknown will also only list f.lux
Anyway, next I copied the exact ID winget told me for updating (winget upgrade EclipseAdoptium.Temurin.17.JRE), however it says "No applicable upgrade found." despite saying that there is a newer version. Screenshots below
image
image
image
image
image

Steps to reproduce
  1. Have a package that needs updating
  2. Run winget upgrade --all, or any other command to update any of your packages that need updates
  3. See it not work, and just return the number of packages in need of upgrades
Expected behavior

--all just automatically updates all packages like it did before
When it says 26 packages have undeterminable version numbers, I expect --include-unknown to also show those 26, if they even exist (I doubt it)
Updating should work at all (shrug)

Actual behavior

Nothing of the above works at all

Environment
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1105
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with winget upgrade --all, --include-unknown, and winget upgrade EclipseAdoptium.Temurin.17.JRE on the stated Windows Package Manager v1.4.10173 environment. Done means packages reported as upgradable can be updated, --all processes them, and --include-unknown reports the packages whose versions cannot be determined.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.