winget-cli
winget-cli copied to clipboard
Failed in attempting to update the source: winget
Brief description of your issue
winget upgrade says:
Failed in attempting to update the source: winget
Name Id Version Available Source
-----------------------------------------------------------------------------------------------------------------
..
Will try solutions at Issue #1656 next
Edit: winget source reset --force seems to (not) have worked:
PS > winget source reset --force
Resetting all sources...Done
PS > winget upgrade
**Failed** in attempting to update the source: **winget**
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").
Do you agree to all the source agreements terms?
[Y] Yes [N] No: Y
Name Id Version Available Source
-----------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run winget upgrade
Expected behavior
Download fresh package list.
Actual behavior
Some kind of exception in WindowsPackageManager.dll
Log from winget upgrade --verbose-logs:
2022-11-04 09:00:33.493 [CORE] WinGet, version [1.3.2691], activity [{08B9A50E-A084-4E6B-A786-E7914D0114DC}]
2022-11-04 09:00:33.493 [CORE] OS: Windows.Desktop v10.0.22000.1165
2022-11-04 09:00:33.493 [CORE] Command line Args: "C:\Users\henk\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade --verbose-logs
2022-11-04 09:00:33.493 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-04 09:00:33.493 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 09:00:33.498 [CLI ] WinGet invoked with arguments: 'upgrade' '--verbose-logs'
2022-11-04 09:00:33.498 [CLI ] Found subcommand: upgrade
2022-11-04 09:00:33.499 [CLI ] Leaf command to execute: root:upgrade
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 09:00:33.501 [CORE] Admin settings was not found
2022-11-04 09:00:33.501 [CLI ] Executing command: upgrade
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 09:00:33.501 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 09:00:33.501 [YAML] Detected UTF-8
2022-11-04 09:00:33.501 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 09:00:33.501 [REPO] Default source requested, multiple sources available, adding all to source references.
2022-11-04 09:00:33.501 [REPO] Adding to source references msstore
2022-11-04 09:00:33.502 [REPO] Adding to source references winget
2022-11-04 09:00:33.502 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 09:00:33.502 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 09:00:33.502 [YAML] Detected UTF-8
2022-11-04 09:00:33.502 [REPO] Source past auto update time [5 mins]; it has been at least 1456 mins
2022-11-04 09:00:33.634 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(1) tid(3614) 8051100F
2022-11-04 09:00:33.635 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFD30F0F321: (caller: 00007FFD30DF195B) LogHr(1) tid(3614) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(1) tid(3614) 8051100F ]
2022-11-04 09:00:33.635 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 09:00:35.676 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(2) tid(3614) 8051100F
2022-11-04 09:00:35.676 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(516)\WindowsPackageManager.dll!00007FFD30F0E909: (caller: 00007FFD30CDE155) LogHr(2) tid(3614) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFD30D965C7: (caller: 00007FFD30DFF80F) Exception(2) tid(3614) 8051100F ]
2022-11-04 09:00:35.676 [REPO] Failed to update source: winget
2022-11-04 09:00:35.676 [REPO] Multiple sources available, creating aggregated source.
Environment
winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.1165
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
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
Hello, same here:
Actual behavior
> winget source reset --force
Réinitialisation en cours de toutes les sources... Merci de patienter.Terminé
> winget upgrade
Désolé...Nous n’avons pas pu tenter la mise à jour de la source : winget
La source 'msstore' nécessite que vous consultiez les contrats suivants avant de l’utiliser.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
La source nécessite que la région géographique à 2 lettres de l’ordinateur actuel soit envoyée au service principal pour fonctionner correctement (par exemple, « ÉTATS-UNIS »).
Acceptez-vous toutes les conditions des contrats sources ?
[Y] Oui [N] Non: Y
Échec lors de la recherche de la source : winget
Une erreur inattendue s'est produite lors de l'exécution de la commande :
0x8a15000f : Data required by the source is missing
Logs:
2022-11-04 10:14:33.150 [CORE] OS: Windows.Desktop v10.0.22621.755
2022-11-04 10:14:33.150 [CORE] Command line Args: "C:\Users\benja\AppData\Local\Microsoft\WindowsApps\winget.exe" source update
2022-11-04 10:14:33.150 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-04 10:14:33.150 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 10:14:33.153 [CLI ] WinGet invoked with arguments: 'source' 'update'
2022-11-04 10:14:33.153 [CLI ] Found subcommand: source
2022-11-04 10:14:33.153 [CLI ] Found subcommand: update
2022-11-04 10:14:33.153 [CLI ] Leaf command to execute: root:source:update
2022-11-04 10:14:33.153 [CLI ] Executing command: update
2022-11-04 10:14:33.163 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 10:14:33.172 [REPO] Named source requested, found: msstore
2022-11-04 10:14:33.173 [REPO] Named source to be updated, found: msstore
2022-11-04 10:14:33.278 [REPO] Named source requested, found: winget
2022-11-04 10:14:33.278 [REPO] Named source to be updated, found: winget
2022-11-04 10:14:33.417 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(1) tid(4f80) 8051100F
2022-11-04 10:14:33.417 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFDA795F321: (caller: 00007FFDA7842D1C) LogHr(1) tid(4f80) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(1) tid(4f80) 8051100F ]
2022-11-04 10:14:33.417 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 10:14:35.465 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(2) tid(4f80) 8051100F
2022-11-04 10:14:35.465 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(634)\WindowsPackageManager.dll!00007FFDA795EF51: (caller: 00007FFDA776B8F3) LogHr(2) tid(4f80) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA77E65C7: (caller: 00007FFDA784F80F) Exception(2) tid(4f80) 8051100F ]
2022-11-04 10:14:35.465 [REPO] Failed to update source: winget
2022-11-04 10:14:35.724 [CLI ] Leaf command succeeded: root:source:update
Environment:
> winget --info
Gestionnaire de package Windows v1.3.2691
Copyright (c) Microsoft Corporation. Tous droits réservés.
Windows: Windows.Desktop v10.0.22621.755
Architecture du système: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0
Journaux: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Liens
---------------------------------------------------------------------------------------------
Déclaration de confidentialité https://aka.ms/winget-privacy
Contrat de licence https://aka.ms/winget-license
Avis de tiers https://aka.ms/winget-3rdPartyNotice
Page d’accueil https://aka.ms/winget
Conditions générales du Windows Store https://www.microsoft.com/en-us/storedocs/terms-of-sale
Same here:
C:\>winget source reset --force
Alle Quellen werden zurückgesetzt...Fertig
C:\>winget source update
Alle Quellen werden aktualisiert...
Quelle wird aktualisiert: msstore...
Fertig
Quelle wird aktualisiert: winget...
Abgebrochen
2022-11-04 12:01:40.866 [CORE] WinGet, version [1.4.2161-preview], activity [{BBF408E8-9980-4135-BFB5-42C117CAFA82}]
2022-11-04 12:01:40.866 [CORE] OS: Windows.Desktop v10.0.19045.2193
2022-11-04 12:01:40.866 [CORE] Command line Args: winget source update --verbose-logs
2022-11-04 12:01:40.866 [CORE] Package: Microsoft.DesktopAppInstaller v1.19.2161.0
2022-11-04 12:01:40.866 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 12:01:40.884 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs'
2022-11-04 12:01:40.885 [CLI ] Found subcommand: source
2022-11-04 12:01:40.885 [CLI ] Found subcommand: update
2022-11-04 12:01:40.885 [CLI ] Leaf command to execute: root:source:update
2022-11-04 12:01:40.885 [CLI ] Executing command: update
2022-11-04 12:01:40.890 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:40.890 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:40.890 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:40.890 [CORE] Admin settings was not found
2022-11-04 12:01:40.891 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:40.891 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:40.891 [YAML] Detected UTF-8
2022-11-04 12:01:40.891 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 12:01:40.905 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:40.905 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:40.906 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:40.906 [CORE] Admin settings was not found
2022-11-04 12:01:40.906 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:40.906 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:40.906 [YAML] Detected UTF-8
2022-11-04 12:01:40.906 [REPO] Named source requested, found: msstore
2022-11-04 12:01:40.907 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:40.907 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:40.908 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:40.908 [CORE] Admin settings was not found
2022-11-04 12:01:40.908 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:40.908 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:40.908 [YAML] Detected UTF-8
2022-11-04 12:01:40.908 [REPO] Named source to be updated, found: msstore
2022-11-04 12:01:40.908 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2022-11-04 12:01:41.021 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:41.021 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:41.021 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:41.021 [CORE] Admin settings was not found
2022-11-04 12:01:41.021 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:41.021 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:41.022 [YAML] Detected UTF-8
2022-11-04 12:01:41.022 [REPO] Named source requested, found: winget
2022-11-04 12:01:41.025 [REPO] Additional sources GP is not enabled.
2022-11-04 12:01:41.025 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2022-11-04 12:01:41.025 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2022-11-04 12:01:41.025 [CORE] Admin settings was not found
2022-11-04 12:01:41.025 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G2 : PublicKey
Microsoft Azure TLS Issuing CA 01 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2022-11-04 12:01:41.025 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2022-11-04 12:01:41.025 [YAML] Detected UTF-8
2022-11-04 12:01:41.025 [REPO] Named source to be updated, found: winget
2022-11-04 12:01:41.171 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(1) tid(580) 8051100F
2022-11-04 12:01:41.171 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFF313EF411: (caller: 00007FFF312CAF8C) LogHr(1) tid(580) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(1) tid(580) 8051100F ]
2022-11-04 12:01:41.171 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 12:01:43.216 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(2) tid(580) 8051100F
2022-11-04 12:01:43.216 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(650)\WindowsPackageManager.dll!00007FFF313EF041: (caller: 00007FFF311E0D98) LogHr(2) tid(580) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF312649C5: (caller: 00007FFF312D8D2F) Exception(2) tid(580) 8051100F ]
2022-11-04 12:01:43.216 [REPO] Failed to update source: winget
2022-11-04 12:01:43.453 [CLI ] Leaf command succeeded: root:source:update
Env:
C:\>winget --info
Windows-Paket-Manager (Vorschau) v1.4.2161-preview
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.
Windows: Windows.Desktop v10.0.19045.2193
Systemarchitektur: X64
Paket: Microsoft.DesktopAppInstaller v1.19.2161.0
Protokolle: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
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
+1
I'm also having this issue. So I dug deeper into what was happening
>winget source list
Name Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget https://cdn.winget.microsoft.com/cache
And then attempted to get the response of the cache directly which resulted in:
<Error>
<Code>ResourceNotFound</Code>
<Message>The specified resource does not exist. RequestId:2dba6797-a01e-0039-5544-f0e9c3000000 Time:2022-11-04T11:54:57.0542948Z</Message>
</Error>
So it looks like a problem on the CDN? Looking at other issues, #2664 may be related or a precursor as issues were developing with the cache?
Fix:
Edit:
winget source reset --forceseems to have worked:
It doesn't work - your output still notes that the winget source is broken. Only the msstore source is working.
There are dozens of related issues on this repo (e.g #2664), not sure how many are duplicates because I've seen different error codes in logs.
I have the same issue.
Possible steps to reproduce (maybe red herring, could just be coincidence)
- ran
winget upgrade --all- there were 2 updates; the 1st update downloaded
- I clicked
Noin the installation prompt wingetCLI correctly said an error occurredwingetcontinued to download the 2nd update; I clickedYesand installed it
- ran
winget upgrade --allagainFailed in attempting to update the source: winget- still found the 1st update in cache & prompted to install
- I clicked
Yesthis time
- all future
wingetcommands now sayFailed in attempting to update the source: winget / Failed in attempting to update the source: winget / Failed when searching source: winget / An unexpected error occurred while executing the command: / 0x8a15000f : Data required by the source is missing- Tried resetting
wingetdata inSettings>Apps>Installed apps - Tried uninstalling
wingetinSettings>Apps>Installed apps - Tried installing different versions from releases
- btw
wingetdoesn't appear inSettings>Apps>Installed appsnow anymore (but I can still runwingeton the CLI, and "App Installer" is installed in the Microsoft Store) - Tried deleting
%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe(sowingetregenerates it)
- Tried resetting
Questions
Are there some keys in the registry which need correcting?
Alternatively, is the source URL wrong?
Also, how to install Microsoft.winget.source_8wekyb3d8bbwe (related to #2421)?
> winget source reset --force
> winget source list
Name Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget https://cdn.winget.microsoft.com/cache
> winget list
Failed in attempting to update the source: winget
Failed when searching source; results will not be included: winget
...
# does NOT list Microsoft.winget.source_8wekyb3d8bbwe
...
When I try to manually download the source.msix file from https://cdn.winget.microsoft.com/cache/source.msix this results in a 0kb file. Seems like this may be the problem. The source has no content.
+1 Same error with different winget versions:
2022-11-04 14:19:29.673 [CORE] WinGet, version [1.4.2161-preview], activity [{41828DCB-4ABD-4396-9C60-5761A3E7421E}]
2022-11-04 14:19:29.674 [CORE] OS: Windows.Desktop v10.0.22621.755
2022-11-04 14:19:29.674 [CORE] Command line Args: winget source update
2022-11-04 14:19:29.674 [CORE] Package: Microsoft.DesktopAppInstaller v1.19.2161.0
2022-11-04 14:19:29.674 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 14:19:29.676 [CLI ] WinGet invoked with arguments: 'source' 'update'
2022-11-04 14:19:29.676 [CLI ] Found subcommand: source
2022-11-04 14:19:29.676 [CLI ] Found subcommand: update
2022-11-04 14:19:29.676 [CLI ] Leaf command to execute: root:source:update
2022-11-04 14:19:29.676 [CLI ] Executing command: update
2022-11-04 14:19:29.686 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 14:19:29.693 [REPO] Named source requested, found: msstore
2022-11-04 14:19:29.694 [REPO] Named source to be updated, found: msstore
2022-11-04 14:19:29.801 [REPO] Named source requested, found: winget
2022-11-04 14:19:29.802 [REPO] Named source to be updated, found: winget
2022-11-04 14:19:29.927 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(1) tid(4758) 8051100F
2022-11-04 14:19:29.927 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFDA72EF411: (caller: 00007FFDA71CAF8C) LogHr(1) tid(4758) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(1) tid(4758) 8051100F ]
2022-11-04 14:19:29.927 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 14:19:31.956 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(2) tid(4758) 8051100F
2022-11-04 14:19:31.956 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(650)\WindowsPackageManager.dll!00007FFDA72EF041: (caller: 00007FFDA70E0D98) LogHr(2) tid(4758) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFDA71649C5: (caller: 00007FFDA71D8D2F) Exception(2) tid(4758) 8051100F ]
2022-11-04 14:19:31.956 [REPO] Failed to update source: winget
2022-11-04 14:19:31.960 [CLI ] Leaf command succeeded: root:source:update
+1 Also same error across multiple machines (4 tested).
Seems like this may be the problem. The source has no content.
What's the source URL given by winget source list on a working machine?
What's the source URL given by
winget source liston a working machine?
It should be https://cdn.winget.microsoft.com/cache which is the same as https://winget.azureedge.net/cache
source.msix part is automatically added by winget-cli in the code so you won't see the source.msix part in winget source list but it'll show up in your logs.
CDN for the production environment has been having a bunch of issue over the past couple of weeks.
PPE, INT, & TEST doesn't seem to be affected.
still no luck
> winget source remove winget
> winget source add -n winget -a https://winget.azureedge.net/cache
Adding source:
winget -> https://winget.azureedge.net/cache
An unexpected error occurred while executing the command:
0x8051100f : unknown error
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
2022-11-04 14:14:24.845 [CORE] WinGet, version [1.3.2691], activity [{F73F456B-0B20-43C5-A428-35BA3D39DED9}]
2022-11-04 14:14:24.846 [CORE] OS: Windows.Desktop v10.0.22621.521
2022-11-04 14:14:24.846 [CORE] Command line Args: winget source add -n winget -a https://winget.azureedge.net/cache
2022-11-04 14:14:24.846 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0
2022-11-04 14:14:24.846 [CORE] IsCOMCall:0; Caller: winget-cli
2022-11-04 14:14:24.848 [CLI ] WinGet invoked with arguments: 'source' 'add' '-n' 'winget' '-a' 'https://winget.azureedge.net/cache'
2022-11-04 14:14:24.849 [CLI ] Found subcommand: source
2022-11-04 14:14:24.849 [CLI ] Found subcommand: add
2022-11-04 14:14:24.849 [CLI ] Leaf command to execute: root:source:add
2022-11-04 14:14:24.849 [CLI ] Executing command: add
2022-11-04 14:14:24.858 [REPO] Source named 'winget' is already defined at origin User. The source from origin Default is dropped.
2022-11-04 14:14:24.859 [REPO] GetCurrentSourceRefs: Source named 'winget' from origin User is hidden and is dropped.
2022-11-04 14:14:24.859 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2022-11-04 14:14:24.860 [REPO] Source named 'winget' is already defined at origin User. The source from origin Default is dropped.
2022-11-04 14:14:24.877 [REPO] Adding source: Name[winget], Type[], Arg[https://winget.azureedge.net/cache]
2022-11-04 14:14:24.878 [REPO] Source named 'winget' is already defined at origin User. The source from origin Default is dropped.
2022-11-04 14:14:24.879 [REPO] Initializing source type: winget => Microsoft.PreIndexed.Package
2022-11-04 14:14:24.879 [REPO] Initializing source from: winget => https://winget.azureedge.net/cache/source.msix
2022-11-04 14:14:25.571 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF2D4965C7: (caller: 00007FFF2D4FF0AB) Exception(1) tid(2764) 8051100F
2022-11-04 14:14:25.571 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFF2D60F2C1: (caller: 00007FFF2D4F280C) LogHr(1) tid(2764) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF2D4965C7: (caller: 00007FFF2D4FF0AB) Exception(1) tid(2764) 8051100F ]
2022-11-04 14:14:25.571 [REPO] Source add/update failed, waiting a bit and retrying: winget
2022-11-04 14:14:27.579 [REPO] Initializing source from: winget => https://winget.azureedge.net/cache/source.msix
2022-11-04 14:14:27.781 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF2D4965C7: (caller: 00007FFF2D4FF0AB) Exception(2) tid(2764) 8051100F
2022-11-04 14:14:28.030 [CLI ] Caught wil::ResultException: D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(311)\WindowsPackageManager.dll!00007FFF2D4965C7: (caller: 00007FFF2D4FF0AB) Exception(2) tid(2764) 8051100F
..as other have pointed out, this is because a 0 byte file is being returned by the Azure Content Delivery Network (see RawContentLength : 0 below). It's not a reachability or client issue.:
PS C:\Users\UserName\Downloads> wget https://cdn.winget.microsoft.com/cache/source.msix
StatusCode : 200
StatusDescription : OK
Content : {}
RawContent : HTTP/1.1 200 OK
Age: 60672
Content-MD5: fDzGv2IMVnqEbTVA5MDliA==
X-Cache: HIT
x-ms-blob-type: BlockBlob
x-ms-lease-status: unlocked
x-ms-meta-da7b2905_0f3c_4262_921c_b1593d1336f1_ESRP_RequestId:...
Headers : {[Age, 60672], [Content-MD5, fDzGv2IMVnqEbTVA5MDliA==], [X-Cache, HIT], [x-ms-blob-type,
BlockBlob]...}
RawContentLength : 0
winget.azureedge.net is a CNAME for cdn.winget.microsoft.com, results are the same.
So, after reading through this thread, this sounds like an actual outage issue/bug with the winget cdn, and not a configuration issue on my system? Is that correct?
CDN for the production environment has been having a bunch of issue over the past couple of weeks.
PPE, INT, & TEST doesn't seem to be affected.
@ItzLevvie do you have the URL for the working repositories? I had a catastrophic failure on my drive and had to install a brand new OS. Can't install anything back with Winget for my powershell needs right now.
Much appreciated.
cc @ShaguarWKL: You could probably use winget-ppe as a temporary solution. Run winget source add --name winget-ppe --arg https://winget-ppe.azureedge.net/cache
I do want to point out that there are several packages missing from that source; some of them are outdated; and for some of them — you will also likely run into hash errors.
winget-ppe (as well as winget-int and winget-test) is also not meant for production usage. It's used by WinGet developers for testing purposes only.
It's recommended to wait until the winget source is back online to ensure you're downloading the latest software.
should have read that first :/ I had the same issue this morning followed all the troubleshooting that I can find with no result (close to what https://github.com/microsoft/winget-cli/issues/2666#issuecomment-1303448425 list)
ended up with a clean full reinstall of windows for the same result... damn lost 3 hr of my life
should have read that first :/ I had the same issue this morning followed all the troubleshooting that I can find with no result (close to what #2666 (comment) list)
ended up with a clean full reinstall of windows for the same result... damn lost 3 hr of my life
Yeah, almost did that as this error came a day after I fresh installed Win10 due to boot and SSD issues, but I remembered to try system recovery and it did not help either (fortunately you can always undo the system restore).
+1
winget source update Alle Quellen werden aktualisiert... Quelle wird aktualisiert: msstore... Fertig Quelle wird aktualisiert: winget... Abgebrochen
same here / should of read this post first before wasting my day troubleshooting.
Can someone please confirm that the winget services is having issues and it's not me or my computer. Tried winget on three different machines and it's still not running "winget update" correctly.
I’ve periodically checked the sources.msix throughout the day on multiple isps. The issue definitely lies there
Well, at least I know that my system isn't broken. However, does anyone have an idea of when this issue will be fixed?
The same question
should have read that first :/ I had the same issue this morning followed all the troubleshooting that I can find with no result (close to what #2666 (comment) list)
ended up with a clean full reinstall of windows for the same result... damn lost 3 hr of my life
damn, we both lost 3 hrs in our life, but mine on searching the whole internet
Same here. I tried every recommendation for this issue but had no luck. I can't even get verbose logs.
> winget upgrade --verbose-logs
Failed in attempting to update the source: winget
Failed when searching source; results will not be included: winget
No installed package found matching input criteria.
Temporary Fix: I used US VPN and it worked. It might be winget server issue I have no idea.
Same here, hope it will be fixed soon
winget upgrade --verbose-logs Failed in attempting to update the source: winget Failed when searching source; results will not be included: winget No installed package found matching input criteria.
Temporary Fix: I used US VPN and it worked. It might be winget server issue I have no idea.
This worked for me from Aus; Set my VPN to Salt Lake City and it worked without a hitch.
Temporary Fix: I used US VPN and it worked. It might be winget server issue I have no idea.
This worked for me from Aus; Set my VPN to Salt Lake City and it worked without a hitch.
it worked
Switching from EU to US VPN didn't work, but Canada VPN worked. 🤷♂️
Same issue here in Europe too.
Same issue here is Israel too.