Open Lusiiky opened 1 year ago
We are experiencing the same.
https://cdn.winget.microsoft.com/cache returns 404 for me
My logs show a Forbidden (403):
`2023-09-20 14:53:03.329 [CORE] WinGet, version [1.5.2201], activity [{526FE31F-B772-4A4C-8A9B-8CF2DBF7D178}] 2023-09-20 14:53:03.330 [CORE] OS: Windows.Desktop v10.0.22621.2134 2023-09-20 14:53:03.331 [CORE] Command line Args: winget update sysinternals 2023-09-20 14:53:03.331 [CORE] Package: Microsoft.DesktopAppInstaller v1.20.2201.0 2023-09-20 14:53:03.331 [CORE] IsCOMCall:0; Caller: winget-cli 2023-09-20 14:53:03.344 [CLI ] WinGet invoked with arguments: 'update' 'sysinternals' 2023-09-20 14:53:03.345 [CLI ] Found subcommand: update 2023-09-20 14:53:03.345 [CLI ] Leaf command to execute: root:upgrade 2023-09-20 14:53:03.358 [CLI ] Executing command: upgrade 2023-09-20 14:53:03.413 [REPO] Default source requested, multiple sources available, adding all to source references. 2023-09-20 14:53:03.413 [REPO] Adding to source references msstore 2023-09-20 14:53:03.414 [REPO] Adding to source references winget 2023-09-20 14:53:03.414 [REPO] Source past auto update time [5 mins]; it has been at least 1005 mins 2023-09-20 14:53:03.417 [REPO] Source past auto update time [5 mins]; it has been at least 1005 mins 2023-09-20 14:53:03.893 [FAIL] WindowsPackageManager.dll!00007FF9D43AF002: ReturnHr(1) tid(44b0) 80190193 Forbidden (403). Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\HttpStream\HttpClientWrapper.cpp(50)\WindowsPackageManager.dll!00007FF9D4392ECE: (caller: 00007FF9D426FDB9) Exception(1) tid(44b0) 80190193 Forbidden (403). ]
2023-09-20 14:53:03.893 [FAIL] WindowsPackageManager.dll!00007FF9D41803E7: LogHr(1) tid(44b0) 80190193 Forbidden (403).
2023-09-20 14:53:03.896 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007FF9D43BDF66: (caller: 00007FF9D428D827) LogHr(2) tid(44b0) 80190193 Forbidden (403). Msg:[PreIndexedPackageInfo failed on primary location -- winrt::hresult_error: Forbidden (403).] `
It's already dead, our scripts are useless. Updating all sources... Updating source: msstore...
Done Updating source: winget... Cancelled
check this solution What resolved "Failed in attempting to update the source: winget" for me:
Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package.
No clue why this is necessary. Source list remains the same:
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 winget https://cdn.winget.microsoft.com/cache
Yes, I did run the command mention at the top here: https://github.com/microsoft/winget-cli/issues/3652#issue-1907725867
But I was running a more recent version anyways (1.5? 1.6.??).
- check this solution What resolved "Failed in attempting to update the source: winget" for me: Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package.
For my part, I can't even access your link..:
The request is blocked.
20230927T082253Z-ev3f5tucv92238z7h59ekpx1m400000000ng00000001tu33
This also happens on a fresh Windows 10 install which I'm currently using. Apparently the problem is not a client issue, rather servers seems to be down at the moment.
this should probably be closed as a duplicate of #3652
this should probably be closed as a duplicate of #3652
In your opinion, should I wait for an "official" person to answer, or should I close it already?
I have the same problem, not helped even to add 152.195.19.97 cdn.winget.microsoft.com
winget source reset --force Resetting all sources...Done winget source update --verbose-logs Updating all sources... Updating source: msstore... Done Updating source: winget... Cancelled winget -v v1.6.2631
this should probably be closed as a duplicate of #3652
BTW:
> winget.exe --version
v1.6.2631
> winget update
Fehler beim Versuch, die Quelle zu aktualisieren: winget
This issue affected me as well. A brand new Windows 11 installation didn't help.
* check this solution What resolved "Failed in attempting to update the source: winget" for me: Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package.
This seems to have fixed the issue for me. Thanks!
All I get is:
The request is blocked.
20230927T110735Z-29ureh6f8d4z5a8ctns7xm9adg000000069g00000001f3za
(e.g. with Edge)
Most important note!
(e.g. with Edge)
Most important note!
I did it with Edge Version 117.0.2045.43 (Offizielles Build) (64-Bit)
without success.
I also encountered this issue, but retrying a winget source update
worked for me.
Key error from the log (v1.6.2631)
2023-09-27 07:15:50.502 [REPO] Source past auto update time [5 mins]; it has been at least 12 mins
2023-09-27 07:15:50.804 [FAIL] WindowsPackageManager.dll!00007FFC6151FC22: ReturnHr(1) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\HttpStream\HttpClientWrapper.cpp(112)\WindowsPackageManager.dll!00007FFC615185D3: (caller: 00007FFC6125B960) Exception(1) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
]
2023-09-27 07:15:50.805 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614165F4) Exception(2) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
2023-09-27 07:15:50.805 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007FFC61549136: (caller: 00007FFC61412907) LogHr(1) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
Msg:[PreIndexedPackageInfo failed on primary location -- D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614165F4) Exception(2) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
]
2023-09-27 07:15:50.968 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614166AF) Exception(3) tid(6a98) 8051100F
2023-09-27 07:15:50.968 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(64)\WindowsPackageManager.dll!00007FFC61549193: (caller: 00007FFC61412907) LogHr(2) tid(6a98) 8051100F Msg:[PreIndexedPackageInfo failed on alternate location -- D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614166AF) Exception(3) tid(6a98) 8051100F ]
2023-09-27 07:15:50.968 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFC61416745: (caller: 00007FFC61412907) Exception(4) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
2023-09-27 07:15:50.968 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFC615469B1: (caller: 00007FFC613FD6C2) LogHr(3) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFC61416745: (caller: 00007FFC61412907) Exception(4) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
]
2023-09-27 07:15:50.968 [REPO] Source add/update failed, waiting a bit and retrying: winget
2023-09-27 07:15:53.080 [FAIL] WindowsPackageManager.dll!00007FFC6151FC22: ReturnHr(2) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\HttpStream\HttpClientWrapper.cpp(112)\WindowsPackageManager.dll!00007FFC615185D3: (caller: 00007FFC6125B960) Exception(5) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
]
2023-09-27 07:15:53.081 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614165F4) Exception(6) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
2023-09-27 07:15:53.081 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007FFC61549136: (caller: 00007FFC61412907) LogHr(4) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
Msg:[PreIndexedPackageInfo failed on primary location -- D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614165F4) Exception(6) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
]
2023-09-27 07:15:53.148 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614166AF) Exception(7) tid(6a98) 8051100F
2023-09-27 07:15:53.148 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(64)\WindowsPackageManager.dll!00007FFC61549193: (caller: 00007FFC61412907) LogHr(5) tid(6a98) 8051100F Msg:[PreIndexedPackageInfo failed on alternate location -- D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFC612B1415: (caller: 00007FFC614166AF) Exception(7) tid(6a98) 8051100F ]
2023-09-27 07:15:53.148 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFC61416745: (caller: 00007FFC61412907) Exception(8) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
2023-09-27 07:15:53.148 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(562)\WindowsPackageManager.dll!00007FFC61545F74: (caller: 00007FFC612D6B2F) LogHr(6) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFC61416745: (caller: 00007FFC61412907) Exception(8) tid(6a98) 80070138 No ranges for the specified operation were able to be processed.
]
2023-09-27 07:15:53.148 [REPO] Failed to update source: winget
Same issue here:
Come on guys, how can a package manager be down for so long. Don't you have some mirrors?
Location: Germany
winget source update Updating all sources... Updating source: msstore... Done Updating source: winget... Cancelled
Same here.
> winget upgrade
Failed in attempting to update the source: winget
> winget --version
v1.6.2631
> winget source list
Name Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget https://cdn.winget.microsoft.com/cache
Location: Argentina
Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package.
This seems to fix the issue. But why though?
I did it with Edge
Version 117.0.2045.43 (Offizielles Build) (64-Bit)
without success.This seems to fix the issue. But why though?
Not working for me either. Location: Uruguay.
$ winget source update winget
Actualizando origen: winget...
Cancelado
$ winget --version
v1.6.2631
$ winget source list winget
Campo Valor
----------------------------------------------------
Nombre winget
Tipo Microsoft.PreIndexed.Package
Argumento https://cdn.winget.microsoft.com/cache
Datos Microsoft.Winget.Source_8wekyb3d8bbwe
Identificador Microsoft.Winget.Source_8wekyb3d8bbwe
Actualizado 2023-09-27 02:47:26.000
Same issue here and I was really hoping to use winget to update multiple offsite clients.
Same issue here: 2023-09-27 11:07:13.266 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA65F4) Exception(1) tid(d6c) 8051100F 2023-09-27 11:07:13.266 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007FFAE4ED9136: (caller: 00007FFAE4DA2907) LogHr(1) tid(d6c) 8051100F Msg:[PreIndexedPackageInfo failed on primary location -- D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA65F4) Exception(1) tid(d6c) 8051100F ]
2023-09-27 11:07:13.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA66AF) Exception(2) tid(d6c) 8051100F 2023-09-27 11:07:13.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(64)\WindowsPackageManager.dll!00007FFAE4ED9193: (caller: 00007FFAE4DA2907) LogHr(2) tid(d6c) 8051100F Msg:[PreIndexedPackageInfo failed on alternate location -- D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA66AF) Exception(2) tid(d6c) 8051100F ]
2023-09-27 11:07:13.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFAE4DA6745: (caller: 00007FFAE4DA2907) Exception(3) tid(d6c) 8051100F 2023-09-27 11:07:13.469 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFAE4ED69B1: (caller: 00007FFAE4D8EC2C) LogHr(3) tid(d6c) 8051100F Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFAE4DA6745: (caller: 00007FFAE4DA2907) Exception(3) tid(d6c) 8051100F ]
This has happened since I updated to build 22621.2361 released yesterday and after deleting Windows Dev Home and its dependencies such as Windows App Runtime. Any solution?
- check this solution What resolved "Failed in attempting to update the source: winget" for me: Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package.
It seemed like this didn't fix my problem, but after a reboot everything works fine. Thank you!
Same issue here: 2023-09-27 11:07:13.266 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA65F4) Exception(1) tid(d6c) 8051100F 2023-09-27 11:07:13.266 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007FFAE4ED9136: (caller: 00007FFAE4DA2907) LogHr(1) tid(d6c) 8051100F Msg:[PreIndexedPackageInfo failed on primary location -- D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA65F4) Exception(1) tid(d6c) 8051100F ]
2023-09-27 11:07:13.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA66AF) Exception(2) tid(d6c) 8051100F 2023-09-27 11:07:13.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(64)\WindowsPackageManager.dll!00007FFAE4ED9193: (caller: 00007FFAE4DA2907) LogHr(2) tid(d6c) 8051100F Msg:[PreIndexedPackageInfo failed on alternate location -- D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FFAE4C41415: (caller: 00007FFAE4DA66AF) Exception(2) tid(d6c) 8051100F ]
2023-09-27 11:07:13.468 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFAE4DA6745: (caller: 00007FFAE4DA2907) Exception(3) tid(d6c) 8051100F 2023-09-27 11:07:13.469 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FFAE4ED69B1: (caller: 00007FFAE4D8EC2C) LogHr(3) tid(d6c) 8051100F Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(66)\WindowsPackageManager.dll!00007FFAE4DA6745: (caller: 00007FFAE4DA2907) Exception(3) tid(d6c) 8051100F ]
This has happened since I updated to build 22621.2361 released yesterday and after deleting Windows Dev Home and its dependencies such as Windows App Runtime. Any solution?
- check this solution What resolved "Failed in attempting to update the source: winget" for me: Download this file: https://cdn.winget.microsoft.com/cache/source.msix (e.g. with Edge) Open the Downloads folder Right-click, choose install, follow the wizard to install the package.
It seemed like this didn't fix my problem, but after a reboot everything works fine. Thank you!
Tried the fix, was able to download and install.
Worked for a few min then the errors came back.
Hey all, we're clearly experiencing CDN issues. We have been working to retire the original CDN due to other challenges with certificate rotation from the past. We have several folks on-call actively working on this.
This issue is back. How the heck does this issue keep coming back to haunt us?
same issue for me
I too get the issue. Ran source update --verbose-log and posting result here.
2023-10-05 08:04:55.764 [CORE] WinGet, version [1.6.2721], activity [{15BECA48-6703-41C7-B78E-BA9267815560}]
2023-10-05 08:04:55.765 [CORE] OS: Windows.Desktop v10.0.22621.2361
2023-10-05 08:04:55.765 [CORE] Command line Args: "C:\Users\$USERNAME$\AppData\Local\Microsoft\WindowsApps\winget.exe" source update --verbose-logs
2023-10-05 08:04:55.765 [CORE] Package: Microsoft.DesktopAppInstaller v1.21.2721.0
2023-10-05 08:04:55.765 [CORE] IsCOMCall:0; Caller: winget-cli
2023-10-05 08:04:55.771 [CLI ] WinGet invoked with arguments: 'source' 'update' '--verbose-logs'
2023-10-05 08:04:55.774 [CLI ] Found subcommand: source
2023-10-05 08:04:55.774 [CLI ] Found subcommand: update
2023-10-05 08:04:55.774 [CLI ] Leaf command to execute: root:source:update
2023-10-05 08:04:55.774 [CLI ] Executing command: update
2023-10-05 08:04:55.775 [REPO] Additional sources GP is not enabled.
2023-10-05 08:04:55.775 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-10-05 08:04:55.775 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2023-10-05 08:04:55.775 [CORE] Admin settings was not found
2023-10-05 08:04:55.775 [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
2023-10-05 08:04:55.775 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G3 : PublicKey
Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2023-10-05 08:04:55.780 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-10-05 08:04:55.780 [YAML] Detected UTF-8
2023-10-05 08:04:55.780 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped.
2023-10-05 08:04:55.788 [REPO] Additional sources GP is not enabled.
2023-10-05 08:04:55.788 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-10-05 08:04:55.788 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2023-10-05 08:04:55.788 [CORE] Admin settings was not found
2023-10-05 08:04:55.788 [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
2023-10-05 08:04:55.788 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G3 : PublicKey
Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2023-10-05 08:04:55.788 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-10-05 08:04:55.788 [YAML] Detected UTF-8
2023-10-05 08:04:55.788 [REPO] Named source requested, found: msstore
2023-10-05 08:04:55.789 [REPO] Additional sources GP is not enabled.
2023-10-05 08:04:55.789 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-10-05 08:04:55.789 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2023-10-05 08:04:55.789 [CORE] Admin settings was not found
2023-10-05 08:04:55.789 [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
2023-10-05 08:04:55.789 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G3 : PublicKey
Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2023-10-05 08:04:55.789 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-10-05 08:04:55.789 [YAML] Detected UTF-8
2023-10-05 08:04:55.789 [REPO] Named source to be updated, found: msstore
2023-10-05 08:04:55.789 [CORE] Setting action: Set, Type: Standard, Name: sources_metadata
2023-10-05 08:04:55.902 [REPO] Additional sources GP is not enabled.
2023-10-05 08:04:55.903 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-10-05 08:04:55.903 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2023-10-05 08:04:55.903 [CORE] Admin settings was not found
2023-10-05 08:04:55.904 [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
2023-10-05 08:04:55.904 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G3 : PublicKey
Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2023-10-05 08:04:55.904 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-10-05 08:04:55.904 [YAML] Detected UTF-8
2023-10-05 08:04:55.905 [REPO] Named source requested, found: winget
2023-10-05 08:04:55.906 [REPO] Additional sources GP is not enabled.
2023-10-05 08:04:55.906 [CORE] Setting action: Get, Type: Secure, Name: user_sources
2023-10-05 08:04:55.906 [CORE] Setting action: Get, Type: Secure, Name: admin_settings
2023-10-05 08:04:55.906 [CORE] Admin settings was not found
2023-10-05 08:04:55.907 [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
2023-10-05 08:04:55.907 [CORE] Adding chain to pinning configuration [Microsoft Store Source]:
DigiCert Global Root G3 : PublicKey
Microsoft Azure ECC TLS Issuing CA 02 : Subject | Issuer
sfdataservice.microsoft.com : Subject | Issuer
2023-10-05 08:04:55.907 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata
2023-10-05 08:04:55.907 [YAML] Detected UTF-8
2023-10-05 08:04:55.907 [REPO] Named source to be updated, found: winget
2023-10-05 08:04:55.930 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2023-10-05 08:04:55.930 [CORE] Found matching extension.
2023-10-05 08:04:55.934 [CORE] Retrieving headers from url: https://cdn.winget.microsoft.com/cache/source.msix
2023-10-05 08:04:56.229 [REPO] Header indicates version is: 2023.1005.1501.856
2023-10-05 08:04:56.229 [REPO] Remote source data (2023.1005.1501.856) was newer than existing (2023.930.722.582), updating
2023-10-05 08:04:56.231 [CORE] Downloading to path: C:\Users\$USERNAME$\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2023-10-05 08:04:56.231 [CORE] Started applying motw to C:\Users\$USERNAME$\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2023-10-05 08:04:56.232 [CORE] Finished applying motw
2023-10-05 08:04:56.233 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/source.msix
2023-10-05 08:04:56.281 [CORE] Download request status success.
2023-10-05 08:04:56.282 [CORE] Download size: 0
2023-10-05 08:04:56.283 [CORE] Download completed.
2023-10-05 08:04:56.290 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FF878101295: (caller: 00007FF87826797A) Exception(1) tid(1cc) 8051100F
2023-10-05 08:04:56.290 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(53)\WindowsPackageManager.dll!00007FF87839A951: (caller: 00007FF87825173C) LogHr(1) tid(1cc) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FF878101295: (caller: 00007FF87826797A) Exception(1) tid(1cc) 8051100F ]
2023-10-05 08:04:56.290 [REPO] Source add/update failed, waiting a bit and retrying: winget
2023-10-05 08:05:00.493 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
2023-10-05 08:05:00.493 [CORE] Found matching extension.
2023-10-05 08:05:00.497 [CORE] Retrieving headers from url: https://cdn.winget.microsoft.com/cache/source.msix
2023-10-05 08:05:00.563 [REPO] Header indicates version is: 2023.1005.1501.856
2023-10-05 08:05:00.563 [REPO] Remote source data (2023.1005.1501.856) was newer than existing (2023.930.722.582), updating
2023-10-05 08:05:00.565 [CORE] Downloading to path: C:\Users\$USERNAME$\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix
2023-10-05 08:05:00.566 [CORE] Started applying motw to C:\Users\$USERNAME$\AppData\Local\Temp\WinGet\Microsoft.Winget.Source_8wekyb3d8bbwe.msix with zone: 3
2023-10-05 08:05:00.567 [CORE] Finished applying motw
2023-10-05 08:05:00.567 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/source.msix
2023-10-05 08:05:00.568 [CORE] Download request status success.
2023-10-05 08:05:00.569 [CORE] Download size: 0
2023-10-05 08:05:00.569 [CORE] Download completed.
2023-10-05 08:05:00.571 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FF878101295: (caller: 00007FF87826797A) Exception(2) tid(1cc) 8051100F
2023-10-05 08:05:00.571 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\RepositorySource.cpp(794)\WindowsPackageManager.dll!00007FF87839A57E: (caller: 00007FF87818A6A5) LogHr(2) tid(1cc) 8051100F Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\MsixInfo.cpp(313)\WindowsPackageManager.dll!00007FF878101295: (caller: 00007FF87826797A) Exception(2) tid(1cc) 8051100F ]
2023-10-05 08:05:00.571 [REPO] Failed to update source: winget
2023-10-05 08:05:00.608 [CLI ] Leaf command succeeded: root:source:update
Replaced real username with $USERNAME$ for security.
Hey all, we're clearly experiencing CDN issues. We have been working to retire the original CDN due to other challenges with certificate rotation from the past. We have several folks on-call actively working on this.
It looks like the issue is back. At least for devices/users located in India.
it works fine when i updated winget to v1.6.2771 manually
Can confirm, manually updating to 1.6.2771 using the msixbundle solved the issue. The winget source URL stays the same.
For a couple of weeks ago we experienced the exact problem and by that time we used v1.1.xxxx and the change of CDN could be reason. We recently rolled out Winget
v1.6.2701``and the issue was gone.
However, last Friday (October 6th) I tried winget upgrade
and the issue was back with Failed in attempting to update the source: winget
I upgraded manually to Winget v1.6.2771
and it started to work.
Why does this happen?
Even though we tries and want to upgrade Winget regularly, we are an enterprise within financing sector so such breaking changes are not acceptable. Note: msstore is blocked for us.
Same issue for me. I check my connection to https://cdn.winget.microsoft.com/cache/source.msix
Some how result is:
I tried add to hosts
file a line:
152.199.21.175 cdn.winget.microsoft.com
so the workaround it works. But I want solution for this issue
I had this issue until I realized I had installed winget via scoop. Once I did scoop update winget
(and then winget source reset --force
and winget source update
just to be sure but they may not be needed) then all was working well again.
I had this issue until I realized I had installed winget via scoop. Once I did
scoop update winget
(and thenwinget source reset --force
andwinget source update
just to be sure but they may not be needed) then all was working well again.
No idea why but I was apparently in the same situation, working fine now after updating via scoop.
Good lord, thank you for saving me from this issue lol.
FWIW, here's my current workaround:
# Update-WinGetSources.ps1
#requires -RunAsAdministrator
winget source reset --force
$msix = Join-Path -Path $env:TEMP -ChildPath 'source.msix'
Invoke-WebRequest https://cdn.winget.microsoft.com/cache/source.msix -OutFile $msix
Add-AppXPackage -Path $msix
Remove-Item -Path $msix
winget source update
@sba923 your script worked... thanks!
Now there's version 7.3.9 but winget doesn't have it yet... :D
I know I have been battling this one as well, but I am not sure its an actual CDN issue.
I see the same
2023-11-06 08:34:16.818 [FAIL] WindowsPackageManager.dll!00007FF943AEF002: ReturnHr(1) tid(3f5c) 80190193 Forbidden (403).
Msg:[D:\a\_work\1\s\external\pkg\src\AppInstallerCommonCore\HttpStream\HttpClientWrapper.cpp(50)\WindowsPackageManager.dll!00007FF943AD2ECE: (caller: 00007FF9439AFDB9) Exception(1) tid(3f5c) 80190193 Forbidden (403).
]
We use a proxy for access to the Internet and I can catch every Internet transaction.
I can see calls to cdn.winget.microsoft.com which has a status of 200 and then it hits winget.azureedge.net which also is a 200. I am not seeing any 403s in the proxy log itself.
My current belief is there is a GPO in the environment that is blocking access and returning a 403 from the SDK call. We don't use the ADMX for Package Manager so I am trying to figure out what GPO it could be. We are a SUS environment though and since the deprecation of Store for Business we have had a lot of flakiness in winget both in Store and in community registry because of Store and WindowsUpdate GPOs. And as a note... the source update --name msstore
works w/o issues so the policy seems to be destination scoped.
My workaround has been to have folks use posh to pre-cache the Source appx so they can do an install, but that isn't ideal. It also seem to show that the path IWR goes through the SDK does not seem to trigger this block. It works, but it is far from ideal. I would like to figure out what GPO might be influencing this, but once it hits the HttpClient interface things go black box.
When using the manually update Source you get the following as well
2023-11-06 08:47:16.475 [FAIL] D:\a\_work\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\PreIndexedPackageSourceFactory.cpp(53)\WindowsPackageManager.dll!00007FF94E1CDF66: (caller: 00007FF94E09D827) LogHr(2) tid(5270) 80190193 Forbidden (403).
Msg:[PreIndexedPackageInfo failed on primary location -- winrt::hresult_error: Forbidden (403).]
For anyone still having trouble, I'd recommend installing the Winget preview version which solved this problem on my end:
Install winget preview version [Developers Only]
After I downloaded and installed the file Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle, I launched a new Terminal session and got this result. The error is gone.
Hopefully that actually fixes it. Mine has been fine again for a while but man was it an annoying issue.
Try the below:
delete %TEMP%\WinGet Download from https://cdn.winget.microsoft.com/cache/source.msix and install open CMD with elevated privilege: run >>> winget source reset --force
winget source update
winget upgrade --all
Try the below:
delete %TEMP%\WinGet Download from https://cdn.winget.microsoft.com/cache/source.msix and install open CMD with elevated privilege: run >>> winget source reset --force
winget source update
winget upgrade --all
This actually worked for me. I didn't care to find and restart the App Installer process, so I just rebooted the PC instead. Now it works without issue for me. Thank you.
When I had this problem, the Microsoft Store was also inaccessible. It's because I installed a software similar to Security Assistant, which turned off the TLS option in Internet Options.
Some folks here (especially the ones that get a Canceled
) may be suffering from a regional CDN issue.
The only thing that worked for me (and I suspect will work for lots of people): use a VPN to another region, as mentioned in https://github.com/microsoft/winget-cli/issues/1826#issuecomment-1305894692
These regional CDN issues rarely get resolved quickly because "works for me" for most Microsoft employees.
I had tried quite a few things as well, but was not having any luck resolving the issue. I finally hit the update by @clong365 and confirmed that TLS 1.0 and 1.1 were disabled on my system. Re-enabled those both and it worked.
Seems to be working even after I turn them back off as well? Unsure how it originally was broken, so can't do much more testing, but it is working again for me for now.
I found that my problem is gone if turn-on Cloudfare WARP 1.1.1.1
After updating App Installer from MS Store, everything works fine now
This works for me.
Had the same issue, in my case it was solved by setting the Client License Service (ClipSVC) from disabled to manual via regedit. I assume when reinstalling via MS Store the start type of the service will be set to the default value again.
(e.g. with Edge)
Most important note!
I downloaded the file onto my laptop with firefox running on Debian, transferred it to my windows machine with sftp, and it still worked. I had to run the file manually from the windows machine, since I couldn't figure out how to run the installer from the shell.
Brief description of your issue
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 likewinget upgrade
.Steps to reproduce
Run
winget upgrade
.Expected behavior
That the winget source works.
Actual behavior
Failed in attempting to update the source: winget
Current Location: Dunkerque, France The problem doesn't seem to be present on my computers in Arlon, Belgium or Capellen, Luxembourg.
Logs:
Environment