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 doesn't work #3894

Open
luimen6 opened this issue Nov 15, 2023 · 17 comments
Open

Winget doesn't work #3894

luimen6 opened this issue Nov 15, 2023 · 17 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@luimen6
Copy link

luimen6 commented Nov 15, 2023

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
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Nov 15, 2023
@Trenly
Copy link
Contributor

Trenly commented Nov 15, 2023

What happens when you run winget source update ?

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Triage Issue need to be triaged labels Nov 15, 2023
@luimen6
Copy link
Author

luimen6 commented Nov 16, 2023

@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

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Nov 16, 2023
@denelon
Copy link
Contributor

denelon commented Nov 16, 2023

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

@denelon denelon added Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Attention Issue needs attention from Microsoft labels Nov 16, 2023
@luimen6
Copy link
Author

luimen6 commented Nov 20, 2023

@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

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Nov 20, 2023
@denelon
Copy link
Contributor

denelon commented Nov 20, 2023

Try uninstalling the source and then running update again.

winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe

@denelon denelon removed the Needs-Attention Issue needs attention from Microsoft label Nov 20, 2023
@luimen6
Copy link
Author

luimen6 commented Nov 22, 2023

@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
Copy link

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
Copy link

pplmx commented Nov 23, 2023

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
Copy link

webwude commented Dec 25, 2023

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
Copy link

webwude commented Dec 25, 2023

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
Copy link

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
Copy link

webwude commented Jan 14, 2024

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

@Turochamp
Copy link

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

@ElmoWOB
Copy link

ElmoWOB commented Jan 19, 2024

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
Copy link

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
Copy link

webwude commented Feb 27, 2024

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
Copy link

Troung commented Jul 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

10 participants