P.S.A. Original CDN will be retired
We will be retiring the CDN used by earlier versions of WinGet.
Please upgrade to WinGet 1.6 or WinGet 1.7-preview (or later as new releases come out).
You can update "App Installer" via the Microsoft Store. You can also use https://aka.ms/getwinget to install the latest available stable version. For preview builds, you can use https://aka.ms/getwingetpreview.
Note: The default behavior on a new Windows installation is to have the Microsoft Store check for updates and to install the latest version of WinGet. This should affect less than 2% of devices. WinGet can be updated by updating the App Installer in the Microsoft Store. It is also possible to run
winget install "App Installer" -s msstore --forcevia the command-line.
New Windows installs (Azure Virtual Desktop for example) may have an earlier version of WinGet (delivered via App Installer) and they may not function correctly to download the default "winget" source. Updating the client to the latest version via the Microsoft Store, or GitHub will mitigate the issue.
Several users have reported issues with getting source updates to function after installing the latest version of WinGet. We're looking into the root cause.
If you run winget source update --force in an administrator terminal/shell it should resolve the issue.
If that doesn't work, try powershell -command Add-AppxPackage https://cdn.winget.microsoft.com/cache/source.msix
Latest Update: CDN Migration is complete
Some users may see HTTP 429 Server Busy errors temporarily as we work on the CDN changes.
We're getting blocked messages from the CDN. We're working on the issue.
It should be back up now.
Hi, for me it is still broken using winget v1.5.2201 and winget source URL https://cdn.winget.microsoft.com/cache
Any updates?
I am getting occasional successes
When it succeeds, the log shows the following:
2023-09-26 10:33:57.597 [CORE] WinINet downloading from url: https://winget-cache-pme-cxfsgwfxarb8hwg0.z01.azurefd.net/cache/source.msix
2023-09-26 10:33:57.978 [CORE] Download completed.
When it fails, the log shows:
2023-09-26 12:28:38.062 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/source.msix
2023-09-26 12:28:38.320 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(127)\WindowsPackageManager.dll!00007FF9697E405E: (caller: 00007FF9697E44A9) Exception(2) tid(1830) 8A15002E
2023-09-26 12:28:38.328 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(562)\WindowsPackageManager.dll!00007FF969A75F74: (caller: 00007FF969806B2F) LogHr(2) tid(1830) 8A15002E Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\Downloader.cpp(127)\WindowsPackageManager.dll!00007FF9697E405E: (caller: 00007FF9697E44A9) Exception(2) tid(1830) 8A15002E ]
2023-09-26 12:28:38.328 [REPO] Failed to update source: winget
I am using WinGet, version [1.6.2631] on Windows 11
Can you share the response from https://cdn.winget.microsoft.com/cache/source.msix when this happens?
Chrome and firefox are happy and can download it. Winget failes, saying it can't download it. Is there a possibility to get more details?
I also have problems with updating the winget source. Im using the winget version v1.7.2491-preview on Windows 10 v10.0.19045.3448
I also tried resetting the source with winget source reset --force however this doesnt seem to fix the problem.
The error message in log is as follows: WinGet-2023-09-27-00-03-25.257.log
winget source url: winget https://cdn.winget.microsoft.com/cache
I am also getting errors when attempting to update my winget sources, winget source update results in a cancelled for winget and the error log contains a lot of the following:
[FAIL] WindowsPackageManager.dll!00007FFAADFB30C2: ReturnHr(1) tid(2b34) 80072EE7 Msg:[winrt::hresult_error: The server name or address could not be resolved].
From the same Powershell Core console using Invoke-WebRequest, I get a 200 OK for https://cdn.winget.microsoft.com/cache/source.msix, so the DNS resolution seems to work fine outside of winget.
Running v1.7.2491-preview on Windows 10 from Germany.
> winget source list
Name Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget https://cdn.winget.microsoft.com/cache
> winget -v
v1.6.2631
> winget source update
Updating all sources...
Updating source: msstore...
Done
Updating source: winget...
Cancelled
Getting the same error, browser says Service Unavailable The request is blocked. 20230926T233325Z-n49rqu44d57szba50635s1eqsw00000001kg00000001et9w
@primeinc same here. Did you find a way to fix it?
@denelon When it's not working, I see 429ers like you posted https://github.com/microsoft/winget-cli/issues/3652#issuecomment-1734652549
@dan-mba @primeinc I've written my solution to "Failed in attempting to update the source: winget" here: https://github.com/microsoft/winget-cli/issues/3525#issuecomment-1736846054
It should work, but not the first time I had to coax winget to keep updating đ
Hmmm, now I'm getting request blocked (Service unavailable) answers from that URL...
Got this error since my first request this day...
Since yesterday evening (around 5pm - UTC+2), I've been getting the error Failed in attempting to update the source: winget whenever I try a command like winget upgrade.
Current Location: Dunkerque, France The problem doesn't seem to be present on my computers in Arlon, Belgium or Capellen, Luxembourg.
Sources:
Nom Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget https://cdn.winget.microsoft.com/cache
Logs:
2023-09-27 09:26:00.429 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFD55151415: (caller: 00007FFD552B65F4) Exception(1) tid(938) 8051100F
2023-09-27 09:26:00.429 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007 FFD553E9136: (caller: 00007FFD552B2907) LogHr(1) tid(938) 8051100F Msg:[PreIndexedPackageInfo failed on primary location -- D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007 FFD55151415: (caller: 00007FFD552B65F4) Exception(1) tid(938) 8051100F ]
2023-09-27 09:26:00.459 [FAIL] WindowsPackageManager.dll!00007FFD553BFB12: ReturnHr(1) tid(938) 801901AD Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\HttpStream\HttpClientWrapper.cpp(52)\WindowsPackageManager.dll!00007 FFD553B6E0E: (caller: 00007FFD550FB960) Exception(2) tid(938) 801901AD ]
2023-09-27 09:26:00.459 [FAIL] WindowsPackageManager.dll!00007FFD55155EE7: LogHr(2) tid(938) 801901AD
2023-09-27 09:26:00.460 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(64)\WindowsPackageManager.dll!00007 FFD553E9193: (caller: 00007FFD552B2907) LogHr(3) tid(938) 801901AD Msg:[PreIndexedPackageInfo failed on alternate location -- winrt::hresult_error: The text associated with this error code could not be found].
2023-09-27 09:26:00.460 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFD552B6745: (caller: 00007FFD552B2907) Exception(3) tid(938) 8051100F
2023-09-27 09:26:00.460 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007 FFD553E69B1: (caller: 00007FFD5529D6C2) LogHr(4) tid(938) 8051100F Msg:[D:\a\_work1\\s\external\pkg\src\sAppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007 FFD552B6745: (caller: 00007FFD552B2907) Exception(3) tid(938) 8051100F ]
2023-09-27 09:26:00.460 [REPO] Source add/update failed, waiting a bit and retrying: winget
2023-09-27 09:26:02.498 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFD55151415: (caller: 00007FFD552B65F4) Exception(4) tid(938) 8051100F
2023-09-27 09:26:02.498 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007 FFD553E9136: (caller: 00007FFD552B2907) LogHr(5) tid(938) 8051100F Msg:[PreIndexedPackageInfo failed on primary location -- D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007 FFD55151415: (caller: 00007FFD552B65F4) Exception(4) tid(938) 8051100F ]
2023-09-27 09:26:02.672 [FAIL] WindowsPackageManager.dll!00007FFD553BFB12: ReturnHr(2) tid(938) 801901AD Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\HttpStream\HttpClientWrapper.cpp(52)\WindowsPackageManager.dll!00007 FFD553B6E0E: (caller: 00007FFD550FB960) Exception(5) tid(938) 801901AD ]
2023-09-27 09:26:02.672 [FAIL] WindowsPackageManager.dll!00007FFD55155EE7: LogHr(6) tid(938) 801901AD
2023-09-27 09:26:02.672 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(64)\WindowsPackageManager.dll!00007 FFD553E9193: (caller: 00007FFD552B2907) LogHr(7) tid(938) 801901AD Msg:[PreIndexedPackageInfo failed on alternate location -- winrt::hresult_error: The text associated with this error code could not be found].
2023-09-27 09:26:02.672 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFD552B6745: (caller: 00007FFD552B2907) Exception(6) tid(938) 8051100F
2023-09-27 09:26:02.672 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(562)\WindowsPackageManager.dll!00007 FFD553E5F74: (caller: 00007FFD55176B2F) LogHr(8) tid(938) 8051100F Msg:[D:\a\_work1\\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007 FFD552B6745: (caller: 00007FFD552B2907) Exception(6) tid(938) 8051100F ]
2023-09-27 09:26:02.672 [REPO] Failed to update source: winget
Environment
Gestionnaire de package Windows v1.6.2631
Copyright (c) Microsoft Corporation. Tous droits réservés.
Windows: Windows.Desktop v10.0.22621.2361
Architecture du systÚme : X64
Package : Microsoft.DesktopAppInstaller v1.21.2631.0
Répertoires Winget
-----------------------------------------------------------------------------------------------------------------------------------------
Journaux %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
ParamĂštres utilisateurs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Répertoire des liens portables (utilisateur) %LOCALAPPDATA%\Microsoft\WinGet\Links
Répertoire des liens portables (ordinateur) C:\Program Files\WinGet\Links
Racine de package portable (utilisateur) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Racine du package portable C:\Program Files\WinGet\Packages
Racine de package portable (x86) C:\Program Files (x86)\WinGet\Packages
TĂ©lĂ©chargements du programme dâinstallation D:\Users\Lusiiky\Downloads
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
ParamĂštre administrateur Ătat
---------------------------------------------------
LocalManifestFiles Désactivé
BypassCertificatePinningForMicrosoftStore Désactivé
InstallerHashOverride Désactivé
LocalArchiveMalwareScanOverride Désactivé
https://cdn.winget.microsoft.com/cache/source.msix
Now: Fixed?
Before:
Title: Service Unavailable
The request is blocked.
20230927T083946Z-14menacuwh61m5ztc7ba47aryw00000000ug00000000qzz5
https://cdn.winget.microsoft.com/cache
Title: Page not found
Page not found
Oops! We weren't able to find your Azure Front Door Service configuration. If it's a new configuration that you recently created, it might not be ready yet. You should check again in a few minutes. If the problem persists, please contact Azure support.
Console:
GET https://cdn.winget.microsoft.com/cache 404 (Not Found)
cache:1 Access to font at 'https://azurefrontdoorpages.azureedge.net/pages/fonts/segoe-ui/west-european/normal/latest.woff' from origin 'https://cdn.winget.microsoft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
UxFxStableCssWesternEuropean_6724ABFCA058F28804A76FD40AD14C9D7A6031D9.css:1 GET https://azurefrontdoorpages.azureedge.net/pages/fonts/segoe-ui/west-european/normal/latest.woff net::ERR_FAILED 404 (Not Found)
cache:1 Access to font at 'https://azurefrontdoorpages.azureedge.net/pages/fonts/segoe-ui/west-european/normal/latest.ttf' from origin 'https://cdn.winget.microsoft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
UxFxStableCssWesternEuropean_6724ABFCA058F28804A76FD40AD14C9D7A6031D9.css:1 GET https://azurefrontdoorpages.azureedge.net/pages/fonts/segoe-ui/west-european/normal/latest.ttf net::ERR_FAILED 404 (Not Found)
I'm getting the same error as @Lusiiky, in 2 computers
Same here (Germany) - ip is 37.201.XX.XX
Can confirm this, I have the same error as @Lusiiky
Current Location: Dunkerque, France The problem doesn't seem to be present on my computers in Arlon, Belgium or Capellen, Luxembourg.
Same issue. My location is German, IP 88.69.183.xxx
I don't think it is the WinGet Version or that the entire CDN is down. We probably would see more tickets. Could it be that a specific mirror for a local IP range is the culprit?