microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.37k stars 1.45k forks source link

fails to update sources #4876

Open Sk7Str1p3 opened 1 month ago

Sk7Str1p3 commented 1 month ago

Brief description of your issue

on fresh windows installation, winget fails to update source "winget". no error code, simply "cancelled"

Steps to reproduce

Expected behavior

update sources successfully

Actual behavior

Image

Environment

Диспетчер пакетов Windows v1.2.10691 (с) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

Windows: Windows.Desktop v10.0.22631.2861 Пакет: Microsoft.DesktopAppInstaller v1.17.10691.0

Журналы: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Ссылки

Заявление о конфиденциальности https://aka.ms/winget-privacy Лицензионное соглашение https://aka.ms/winget-license Уведомления третьих сторон https://aka.ms/winget-3rdPartyNotice Домашняя страница https://aka.ms/winget Условия Windows Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

similar-issues-ai[bot] commented 1 month ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

denelon commented 1 month ago

Unfortunately, that's a known issue. If you run updates via the Microsoft Store the "Desktop App Installer" system component will get updated and that is how WinGet is delivered and updated by default in Windows Desktop.

If you're looking for a way to bootstrap WinGet manually, the best way is to install the Microsoft.WinGet.Client PowerShell module and then run Repair-WinGetPackageManager -Force -Latest.