winget-cli: `winget upgrade --all` fails for all packages even if only one single package causes error

Brief description of your issue

If a single app fails to install in winget upgrade --all, it will close the entire upgrade sequence. Leaving all following apps unupgraded. Instead, it should upgrade all apps and ignore upgrading the apps for which an error occurs.

Steps to reproduce

I Installed kite from vscode installer. Microsoft is unable to download the package/setup.exe and fails. It then does not proceed to upgrade/update any of my other apps: image

Expected behavior

Winget should try to upgrade all apps and ignore upgrading the apps for which an error occurs.

Actual behavior

If a single app fails to install in winget upgrade --all, it will close the entire upgrade sequence. Leaving all following apps unupgraded.

Environment

[winget --info]
Windows Package Manager version: v1.0.11694
Windows: Windows 11
Package: App Installer                           Microsoft.DesktopAppInstaller_8wekyb3d8… 1.15.11694.0

Any other software?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 17 (4 by maintainers)

Most upvoted comments

Any update on this? It’s still happening:

PS C:\Windows\system32> winget upgrade --all
Name                                             Id                                    Version    Available Source
------------------------------------------------------------------------------------------------------------------
Visual Studio Community 2022                     Microsoft.VisualStudio.2022.Community 17.5.0     17.6.2    winget
Mozilla Firefox (x64 en-US)                      Mozilla.Firefox                       112.0      113.0.2   winget
OBS Studio                                       OBSProject.OBSStudio                  29.0.2     29.1.2    winget
TeamViewer                                       TeamViewer.TeamViewer                 15.39.5    15.42.6   winget
qBittorrent                                      qBittorrent.qBittorrent               4.5.1      4.5.2     winget
AOMEI Partition Assistant 9.14.0                 AOMEI.PartitionAssistant              9.14.0     10.0.0    winget
Microsoft Windows Desktop Runtime - 7.0.3 (x64)  Microsoft.DotNet.DesktopRuntime.7     7.0.3      7.0.5     winget
JetBrains ETW Host Service (x64)                 JetBrains.ReSharper                   > 2022.2.2 2022.3.3  winget
Microsoft .NET SDK 5.0.400 (x64)                 Microsoft.DotNet.SDK.7                < 7.0.100  7.0.302   winget
Microsoft .NET SDK 7.0.200 (x64)                 Microsoft.DotNet.SDK.7                7.0.200    7.0.302   winget
Microsoft Windows Desktop Runtime - 6.0.14 (x64) Microsoft.DotNet.DesktopRuntime.6     6.0.14     6.0.16    winget
11 upgrades available.
1 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
An unexpected error occurred while executing the command:
Download request status is not success.
0x80190194 : Not found (404).

Confirmed with v1.3:

winget upgrade --all
名称                                ID                             版本                  可用                  源
---------------------------------------------------------------------------------------------------------------------
PDFlux                              PaodingAI.PDFlux               5.0.19                5.0.24                winget
draw.io                             JGraph.Draw                    17.2.1                17.2.4                winget
阿里云盘                            Alibaba.aDrive                 3.0.0                 3.1.1                 winget
FileZilla Client                    TimKosse.FileZilla.Client      3.58.0                3.59.0                winget
Microsoft Edge                      Microsoft.Edge                 100.0.1185.36         100.0.1185.39         winget
RStudio Desktop Open Source Edition RStudio.RStudio.OpenSource     2022.02.0+443         2022.02.1+461         winget
Tencent Meeting                     Tencent.TencentMeeting         3.6.5.404             3.6.7.428             winget
Zotero                              Zotero.Zotero                  6.0.3                 6.0.4                 winget
全球学术快报                        TTKN.CNKIExpress               0.1.19                0.1.20                winget
Free Download Manager               SoftDeluxe.FreeDownloadManager 6.16.0.4468           6.16.1.4558           winget
Microsoft .NET SDK                  Microsoft.dotnet               5.4.522.6820          6.1.322.12413         winget
Microsoft .NET SDK                  Microsoft.dotnet               5.4.622.11901         6.1.322.12413         winget
Node.js                             OpenJS.NodeJS                  17.8.0                17.9.0                winget
GitHub CLI                          GitHub.cli                     2.6.0                 2.7.0                 winget
calibre                             calibre.calibre                5.39.1                5.40.0                winget
Microsoft Visual Studio Code        Microsoft.VisualStudioCode     1.65.2                1.66.1                winget
Microsoft .NET SDK                  Microsoft.dotnet               5.3.321.37723         6.1.322.12413         winget
百度网盘                            Baidu.BaiduNetdisk             7.13.0                7.14.1                winget
DingTalk                            Alibaba.DingTalk               6.5.0-Release.3249116 6.5.0-Release.3289101 winget
20 升级可用。
1 package has a version number that cannot be determined. Use "--include-unknown" to see all results.

(1/17) 已找到 PDFlux [PaodingAI.PDFlux] 版本 5.0.24
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
Downloading https://pdflux.com/downloads/PDFlux-5.0.24-win-x64.exe
  ██████████████████████████████  74.8 MB / 74.8 MB
已成功验证安装程序哈希
正在启动程序包安装...
已成功安装

(2/17) 已找到 draw.io [JGraph.Draw] 版本 17.2.4
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
Downloading https://github.com/jgraph/drawio-desktop/releases/download/v17.2.4/draw.io-17.2.4-windows-installer.exe
  ██████████████████████████████  0.00 B / 78.2 MB
执行此命令时发生意外错误:
InternetOpenUrl() failed.
0x80072efd : unknown error

Version info:

winget --version
v1.3.692-preview

@siddagra A single error is still preventing me from upgrading all

winget upgrade --all
Found Graphviz [Graphviz.Graphviz] Version 2.50.0
Found OpenSSL Light [ShiningLight.OpenSSL.Light] Version 1.0.0
Found VLC media player [VideoLAN.VLC] Version 3.0.17
Found pgAdmin 4 [PostgreSQL.pgAdmin] Version 6.5
Found Node.js [OpenJS.NodeJS] Version 17.7.1
Found Microsoft .NET SDK [Microsoft.dotnet] Version 6.1.322.12413
Found Microsoft Windows Desktop Runtime - 3 (x64) [Microsoft.dotnetRuntime.3-x64] Version 3.1.23.31022
Found Jabra Direct [Jabra.Direct] Version 5.12.6601
Found Python 3 [Python.Python.3] Version 3.10.2150.0
Found GitHub CLI [GitHub.cli] Version 2.6.0
Found Microsoft SQL Server Management Studio [Microsoft.SQLServerManagementStudio] Version 15.0.18410.0
(1/11) Found Graphviz [Graphviz.Graphviz] Version 2.50.0
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://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/2.50.0/windows_10_cmake_Release_graphviz-install-2.50.0-win64.exe
  ██████████████████████████████  4.48 MB / 4.48 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(2/11) Found OpenSSL Light [ShiningLight.OpenSSL.Light] Version 1.0.0
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://slproweb.com/download/Win64OpenSSL_Light-1_1_1m.exe
An unexpected error occurred while executing the command:
Download request status is not success.
0x80190194 : Not found (404).