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
22.93k stars 1.42k forks source link

Winget doesn't work #3894

Open luimen6 opened 9 months ago

luimen6 commented 9 months ago

Brief description of your issue

When I enter a winget command, I always get an error. PS C:\Windows\system32> winget upgrade --all Fehler beim Durchsuchen der Quelle: winget Unerwarteter Fehler beim Ausführen des Befehls: 0x8a15000f : Data required by the source is missing

Steps to reproduce

Enter winget upgrade --all

Expected behavior

Upgrade my packages.

Actual behavior

Error: PS C:\Windows\system32> winget upgrade --all Fehler beim Durchsuchen der Quelle: winget Unerwarteter Fehler beim Ausführen des Befehls: 0x8a15000f : Data required by the source is missing

Environment

PS C:\Windows\system32> winget --info
Windows-Paket-Manager v1.6.3133
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.22631.2428
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.21.3133.0

WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------------------------
Protokolle                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Benutzereinstellungen                        %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Verzeichnis für portierbare Links (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portables Linkverzeichnis (Computer)         C:\Program Files\WinGet\Links
Portierbarer Paketstamm (Benutzer)           %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portierbarer Paketstamm                      C:\Program Files\WinGet\Packages
Portierbares Paketstamm (x86)                C:\Program Files (x86)\WinGet\Packages
Installationsprogrammdownloads               %USERPROFILE%\Downloads

Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung              https://aka.ms/winget-privacy
Lizenzvereinbarung                https://aka.ms/winget-license
Hinweise von Drittanbietern       https://aka.ms/winget-3rdPartyNotice
Startseite                        https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale

Administratoreinstellung                  Status
-----------------------------------------------------
LocalManifestFiles                        Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride                     Deaktiviert
LocalArchiveMalwareScanOverride           Deaktiviert
Trenly commented 9 months ago

What happens when you run winget source update ?

luimen6 commented 9 months ago

@Trenly

PS C:\Windows\system32> winget source update
Alle Quellen werden aktualisiert...
Quelle wird aktualisiert: msstore...
Fertig
Quelle wird aktualisiert: winget...
                                  0%
Fertig

When I enter winget upgrade --all after source update, I get the following message: 0x8a15000f : Data required by the source is missing

denelon commented 9 months ago

@luimen6 can you try running winget source reset --force as an administrator?

luimen6 commented 9 months ago

@denelon When I enter winget upgrade -all after source reset, I get the same error:

Fehler beim Durchsuchen der Quelle: winget
Unerwarteter Fehler beim Ausführen des Befehls:
0x8a15000f : Data required by the source is missing
denelon commented 9 months ago

Try uninstalling the source and then running update again.

winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe

luimen6 commented 9 months ago

@denelon

winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe Fehler beim Durchsuchen der Quelle. Ergebnisse werden nicht einbezogen: winget Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.

winget source update Alle Quellen werden aktualisiert... Quelle wird aktualisiert: msstore... Fertig Quelle wird aktualisiert: winget... 0% Fertig

winget upgrade --all Fehler beim Durchsuchen der Quelle: winget Unerwarteter Fehler beim Ausführen des Befehls: 0x8a15000f : Data required by the source is missing

Fingadumbledore commented 9 months ago

We experienced the same Problem with different versions. Version 1.6.3133 works on some machines. The latest version don't run at all.

pplmx commented 9 months ago

Same issue: winget can do nothing now.

winget --info Windows Package Manager v1.6.3133 Copyright (c) Microsoft Corporation. All rights reserved. Windows: Windows.Desktop v10.0.22631.2715 System Architecture: X64 Package: Microsoft.DesktopAppInstaller v1.21.3133.0 Winget Directories ------------------------------------------------------------------------------------------------------------------------------- Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json 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
webwude commented 8 months ago

I have the same issue.

I updated to the latest version, opened the command line as admin - but it seems that winget does not see itself:

C:\Windows\System32>winget --info
Windows-Paket-Manager v1.6.3482
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.22631.2861
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.21.3482.0

WinGet-Verzeichnisse
-----------------------------------------------------------------------------------------------------------------------
Protokolle                                   %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Benutzereinstellungen                        %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Verzeichnis für portierbare Links (Benutzer) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portables Linkverzeichnis (Computer)         C:\Program Files\WinGet\Links
Portierbarer Paketstamm (Benutzer)           %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portierbarer Paketstamm                      C:\Program Files\WinGet\Packages
Portierbares Paketstamm (x86)                C:\Program Files (x86)\WinGet\Packages
Installationsprogrammdownloads               %USERPROFILE%\Downloads

Links
-----------------------------------------------------------------------------------------
Datenschutzerklärung              https://aka.ms/winget-privacy
Lizenzvereinbarung                https://aka.ms/winget-license
Hinweise von Drittanbietern       https://aka.ms/winget-3rdPartyNotice
Startseite                        https://aka.ms/winget
Windows Store-Nutzungsbedingungen https://www.microsoft.com/en-us/storedocs/terms-of-sale

Administratoreinstellung                  Status
-----------------------------------------------------
LocalManifestFiles                        Deaktiviert
BypassCertificatePinningForMicrosoftStore Deaktiviert
InstallerHashOverride                     Deaktiviert
LocalArchiveMalwareScanOverride           Deaktiviert

C:\Windows\System32>winget list winget
Fehler beim Durchsuchen der Quelle. Ergebnisse werden nicht einbezogen: winget
Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.

C:\Windows\System32>
webwude commented 8 months ago

Just found a working solution:

close all windows open powershell type in Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe After that winget list winget works and I can start to upgrade all outdated apps.

Turochamp commented 7 months ago

I have the same problem on a fresh Windows 11 machine. The solution provided by @webwude doesn't work.
image

Please provide help. I googled and tried some other things too, but no luck.

webwude commented 7 months ago

It only works in Power Shell. Neither in the command line nor with Winget UI.

Turochamp commented 7 months ago

My problem was solved by manually updating winget. I assumed that Windows Update would do that, but for some reason it doesn't. :-(

ElmoWOB commented 7 months ago

This problem only occurs for me when I am logged in with the user account and want to start the terminal as an administrator. When I log in to Windows directly as an administrator, it works fine, I hope this helps you

kwm-ferhat commented 6 months ago

After a fresh install of Windows 11 Pro I had the same problem. The solution was updating App-Installer inside the Microsoft-Store. Im sure that downloading the and installing it manually at the newest version would also work. Here is the link: https://learn.microsoft.com/en-us/windows/msix/app-installer/install-update-app-installer I can only vouch for the Microsoft-Store method myself duh. Godspeed

webwude commented 6 months ago

Winget now works (sort of) but only in PowerShell and cannot update itself - I get an error message regarding Winget but then it updates the other packages. Strange.

Troung commented 1 month ago

Hello, Id like to contribute to this conversation. I fixed the issue for me. I tried some things in here but what made my winget break was an error in the App-Installer. How to fix yourself: Step 1. Open MS Store Step 2. Update App-installer Step 3. See an Error Step 4. Go to Library Step 5. Update again Step 6. Winget now works again

This worked on Windows 11 Pro. If it doesnt for you, Im sorry.