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 --all does not work anymore #4261

Closed
MarcoJanse opened this issue Mar 12, 2024 · 5 comments
Closed

winget upgrade --all does not work anymore #4261

MarcoJanse opened this issue Mar 12, 2024 · 5 comments
Labels
Resolution-Duplicate Issue is a duplicate
Milestone

Comments

@MarcoJanse
Copy link

Brief description of your issue

For over more than a week now winget upgrade --all shows multiple apps that can be upgraded, but does not invoke the upgrade process.

It's seems that only the --all parameter no longer works, I can target specific updates by using winget upgrade <packageName> and that works fine.

I was running winget v.1.8.532-preview, while I never deliberately installed a preview version.

I had a look on the releases page and noticed Windows Package Manager 1.7.10582, as latest version and no listing for 1.8.532-preview.

I've downgraded manually to the 1.7.10582, version but the issue is still there.

My environment:

  • Windows 11 Enterprise 23H2 (22631.3155)
  • Windows Package Manager v1.7.10582 (downgraded)
  • Windows Package Manager v1.8.532-preview (auto upgraded again today)
  • Windows Feature Experience Pack 1000.22684.1000.0
  • Running Winget from PowerShell 7 in Windows Terminal

Below is some more detail of my experience.

PS C:\Users\MarcoJanse> winget upgrade --all
Name                                                  Id                           Version        Available      Source
-----------------------------------------------------------------------------------------------------------------------
draw.io 23.1.5                                        JGraph.Draw                  23.1.5         24.0.4         winget
GNU Privacy Guard                                     GnuPG.GnuPG                  2.4.4          2.4.5          winget
Oh My Posh version 19.11.7                            JanDeDobbeleer.OhMyPosh      19.11.7        19.15.1        winget
Postman x86_64 10.23.5                                Postman.Postman              10.23.5        10.24.0        winget
TreeSize Free V4.7.1 (64 bit)                         JAMSoftware.TreeSize.Free    4.7.1          4.7.2          winget
Microsoft Visual C++ 2015-2022 Redistributable (x86)… Microsoft.VCRedist.2015+.x64 14.30.30704.0  14.38.33135.0  winget
KeePassXC                                             KeePassXCTeam.KeePassXC      2.7.6          2.7.7          winget
Microsoft Visual Studio Code (User)                   Microsoft.VisualStudioCode   1.87.0         1.87.1         winget
Microsoft Azure CLI (64-bit)                          Microsoft.AzureCLI           2.57.0         2.58.0         winget
Foxit PDF Reader                                      Foxit.FoxitReader            2023.3.0.23028 2024.1.0.23997 winget
paint.net                                             dotPDN.PaintDotNet           5.0.12         5.0.13         winget
Yubico Authenticator                                  Yubico.Authenticator         6.3.0          6.4.0          winget
14 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name                    Id              Version      Available            Source
--------------------------------------------------------------------------------
Discord                 Discord.Discord 1.0.9032     1.0.9035             winget
Microsoft Teams classic Microsoft.Teams 1.6.00.27573 23320.3027.2591.1505 winget

If I look in the winget logs, I see the following for each package:

2024-03-12 08:51:50.557 [REPO] Attempting to open pinning database: C:\Users\MarcoJanse\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-03-12 08:51:50.557 [REPO] ... opening existing pinning database
2024-03-12 08:51:50.557 [REPO] Opening database for Read at 'C:\Users\MarcoJanse\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-03-12 08:51:50.558 [REPO] Opened Pinning Index with version [1.0], last write [2023-06-13 08:29:57.000]
2024-03-12 08:51:50.566 [REPO] Downloading manifest
2024-03-12 08:51:50.566 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/j/JanDeDobbeleer/OhMyPosh/19.15.1/9938
2024-03-12 08:51:50.578 [CORE] Download hash: c7d81e70305e7e574f446cb889dfdea0f5bd091a87cbbc7e947500f6b22d3291
2024-03-12 08:51:50.578 [CORE] Download completed.
2024-03-12 08:51:50.579 [CLI ] Manifest fields: Name [Oh My Posh], Version [19.15.1]
2024-03-12 08:51:50.589 [REPO] Attempting to open pinning database: C:\Users\MarcoJanse\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-03-12 08:51:50.589 [REPO] ... opening existing pinning database
2024-03-12 08:51:50.589 [REPO] Opening database for Read at 'C:\Users\MarcoJanse\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db'
2024-03-12 08:51:50.590 [REPO] Opened Pinning Index with version [1.0], last write [2023-06-13 08:29:57.000]
2024-03-12 08:51:50.590 [CLI ] Terminating context: 0x8a15002b at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:bc

That last line with Terminating context: 0x8a15002b at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:bc is occuring after every package update.

Steps to reproduce

Invoke winget upgrade --all

Expected behavior

All listed packages with a newer version should be upgraded with this command, unless pinned.

Actual behavior

Nothing happens in the console, just like when executing winget upgrade without the --all parameter.
Targeting a specific package does work though, for example:

PS C:\Users\MarcoJanse> winget upgrade JanDeDobbeleer.OhMyPosh
Found Oh My Posh [JanDeDobbeleer.OhMyPosh] Version 19.15.1
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://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v19.15.1/install-amd64.exe
  ██████████████████████████████  6.38 MB / 6.38 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Environment

PS C:\Users\MarcoJanse> winget --info
Windows Package Manager (Preview) v1.8.532-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3155
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.532.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
@MarcoJanse MarcoJanse changed the title winget --u winget upgrade --all does not work anymore Mar 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Mar 12, 2024
@larjo
Copy link

larjo commented Mar 12, 2024

I am having the exact same issue. Since at least a week back. Perhaps two.

winget ---version
v1.7.10582

Windows 10 Enterprise
21H2

@dazlab
Copy link

dazlab commented Mar 12, 2024

Same here.

winget --version
v1.7.10582

Windows 11 Professional
23H2

@alikecat
Copy link

alikecat commented Mar 12, 2024

I resolved a similar issue to yours by resetting Winget using the following command, executed in administrator mode. Perhaps it could be of assistance to you as well:
Get-AppxPackage -Name 'Microsoft.DesktopAppInstaller' | Reset-AppxPackage

@Trenly
Copy link
Contributor

Trenly commented Mar 12, 2024

Take a look at #4219 (comment)

Using the release mentioned by denelon in that issue should help

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label Mar 12, 2024
Copy link
Contributor

Hello @MarcoJanse,

We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!

Template: msftbot/duplicate/closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Issue is a duplicate
Projects
None yet
Development

No branches or pull requests

6 participants