Skip to content

Error 0x80070057 when running winget upgrade or list commands #5211

@uaiqop

Description

@uaiqop

Brief description of your issue

The error 0x80070057 occurs when running winget upgrade or winget list commands.

log:
WinGet-2025-02-16-13-21-43.919.log

Steps to reproduce

Steps to reproduce

  1. Open Windows Terminal as Administrator.
  2. Run winget upgrade --verbose → Error 0x80070057 occurs.
  3. Run winget list --verbose → Same error appears.
  4. Reset winget v2, but the error still persists.
 ⚡user ❯❯ winget upgrade --verbose
执行此命令时发生意外错误:
0x80070057 : ��������
 ⚡user ❯❯ winget list --verbose
执行此命令时发生意外错误:
0x80070057 : ��������

Expected behavior

Under normal circumstances:

  • Running winget upgrade should list available updates for installed packages.
  • Running winget list should display all installed packages without errors.
  • Both commands should complete successfully without returning error code 0x80070057.

Actual behavior

When running the commands:

  • winget upgrade → Fails to list updates and returns error code 0x80070057.
  • winget list → Fails to display installed packages and throws the same error 0x80070057.
 ⚡user ❯❯ winget upgrade --verbose
执行此命令时发生意外错误:
0x80070057 : ��������
 ⚡user ❯❯ winget list --verbose
执行此命令时发生意外错误:
0x80070057 : ��������

Environment

Windows 程序包管理器 v1.10.300
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.26120.3281
系统体系结构: X64
软件包: Microsoft.DesktopAppInstaller v1.25.300.0

Winget 目录
-------------------------------------------------------------------------------------------------------------------
日志                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
用户设置               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
可移植链接目录(用户)   %LOCALAPPDATA%\Microsoft\WinGet\Links
可移植链接目录(计算机) C:\Program Files\WinGet\Links
可移植包根目录(用户)   %LOCALAPPDATA%\Microsoft\WinGet\Packages
可移植包根目录         C:\Program Files\WinGet\Packages
可移植包根目录 (x86)   C:\Program Files (x86)\WinGet\Packages
安装程序下载           %USERPROFILE%\Downloads
配置模块               %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

链接
----------------------------------------------------------------------------
隐私声明             https://aka.ms/winget-privacy
许可协议             https://aka.ms/winget-license
第三方声明           https://aka.ms/winget-3rdPartyNotice
主页                 https://aka.ms/winget
Windows 应用商店条款 https://www.microsoft.com/en-us/storedocs/terms-of-sale

管理员设置                                状态
------------------------------------------------
LocalManifestFiles                        已禁用
BypassCertificatePinningForMicrosoftStore 已禁用
InstallerHashOverride                     已禁用
LocalArchiveMalwareScanOverride           已禁用
ProxyCommandLineOptions                   已禁用
DefaultProxy                              已禁用

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    Status

    Released

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions