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

"Failed in attempting to update the source: winget" #3687

Open
Lusiiky opened this issue Sep 27, 2023 · 53 comments
Open

"Failed in attempting to update the source: winget" #3687

Lusiiky opened this issue Sep 27, 2023 · 53 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@Lusiiky
Copy link

Lusiiky commented Sep 27, 2023

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 like winget 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:

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é
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Sep 27, 2023
@bavulapati
Copy link

We are experiencing the same.

@13xforever
Copy link

https://cdn.winget.microsoft.com/cache returns 404 for me

@rmungena
Copy link

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).] `

@danielkornuta
Copy link

danielkornuta commented Sep 27, 2023

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:

PS C:> winget source list
Name Argument

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: #3652 (comment)

But I was running a more recent version anyways (1.5? 1.6.??).

@Lusiiky
Copy link
Author

Lusiiky commented Sep 27, 2023

  • 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

@gokacinlar
Copy link

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.

Screenshot 2023-09-27 113145

Screenshot 2023-09-27 113159

@13xforever
Copy link

this should probably be closed as a duplicate of #3652

@Lusiiky
Copy link
Author

Lusiiky commented Sep 27, 2023

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?

@hubertsvk
Copy link

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

@ulu
Copy link

ulu commented Sep 27, 2023

this should probably be closed as a duplicate of #3652

#3669 is closed but not solved. This issue should stay open because #3669 is not reopened and #3652 is not solved yet. Lots of people search for the error message but do not know anything about CDNs.

BTW:

> winget.exe --version
v1.6.2631

> winget update
Fehler beim Versuch, die Quelle zu aktualisieren: winget

@TheoThmn
Copy link

TheoThmn commented Sep 27, 2023

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!

@ulu
Copy link

ulu commented Sep 27, 2023

All I get is:

The request is blocked.
20230927T110735Z-29ureh6f8d4z5a8ctns7xm9adg000000069g00000001f3za

@KL7000F
Copy link

KL7000F commented Sep 27, 2023

(e.g. with Edge)

Most important note!

@ulu
Copy link

ulu commented Sep 27, 2023

(e.g. with Edge)

Most important note!

I did it with Edge Version 117.0.2045.43 (Offizielles Build) (64-Bit) without success.

@Trenly
Copy link
Contributor

Trenly commented Sep 27, 2023

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

@MadSpindel
Copy link

Same issue here:

image

@TimKarsten
Copy link

TimKarsten commented Sep 27, 2023

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

@maurom
Copy link

maurom commented Sep 27, 2023

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

@kdpuvvadi
Copy link

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?

@jmaraujouy
Copy link

jmaraujouy commented Sep 27, 2023

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

@LightBringer81
Copy link

Same issue here and I was really hoping to use winget to update multiple offsite clients.

@Marc2p
Copy link

Marc2p commented Sep 27, 2023

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!

@Paralyzr
Copy link

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.

@denelon
Copy link
Contributor

denelon commented Sep 27, 2023

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.

@denelon
Copy link
Contributor

denelon commented Sep 27, 2023

Related to:

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Sep 27, 2023
@trparky
Copy link

trparky commented Oct 5, 2023

This issue is back. How the heck does this issue keep coming back to haunt us?

@20iahazban
Copy link

same issue for me

@VonChair
Copy link

VonChair commented Oct 5, 2023

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.

@MichaelReiserSAP
Copy link

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.

@cdchs99
Copy link

cdchs99 commented Oct 7, 2023

it works fine when i updated winget to v1.6.2771 manually

@amsreinhardt
Copy link

amsreinhardt commented Oct 9, 2023

Can confirm, manually updating to 1.6.2771 using the msixbundle solved the issue. The winget source URL stays the same.

@4integration
Copy link

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.

@TrQ-Hoan
Copy link

Same issue for me. I check my connection to https://cdn.winget.microsoft.com/cache/source.msix
Some how result is:
image
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

@TheCleric
Copy link

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.

@ilvon
Copy link

ilvon commented Oct 15, 2023

After updating App Installer from MS Store, everything works fine now

@st0neh
Copy link

st0neh commented Oct 16, 2023

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.

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.

@sba923
Copy link

sba923 commented Oct 20, 2023

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

@leniel
Copy link

leniel commented Oct 27, 2023

@sba923 your script worked... thanks!

image

Now there's version 7.3.9 but winget doesn't have it yet... :D

image

@byjrack
Copy link

byjrack commented Nov 6, 2023

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).] 

@leniel
Copy link

leniel commented Nov 13, 2023

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.

image

@st0neh
Copy link

st0neh commented Nov 13, 2023

Hopefully that actually fixes it. Mine has been fine again for a while but man was it an annoying issue.

@jbhowmick
Copy link

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
image

winget source update
image

winget upgrade --all
image

@veamio
Copy link

veamio commented Dec 28, 2023

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 image

winget source update image

winget upgrade --all image

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.

@clong365
Copy link

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.

disable-tls-vetsions-in-internet-explorer-properti

@huyz
Copy link

huyz commented Feb 12, 2024

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 #1826 (comment)

These regional CDN issues rarely get resolved quickly because "works for me" for most Microsoft employees.

@smikwily
Copy link

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.

@Matro81
Copy link

Matro81 commented Mar 17, 2024

I found that my problem is gone if turn-on Cloudfare WARP 1.1.1.1

@br14n-sol
Copy link

After updating App Installer from MS Store, everything works fine now

This works for me.

@carlo711
Copy link

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.

@Taky0nDon
Copy link

(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.

@grassleaf99
Copy link

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 #1826 (comment)

These regional CDN issues rarely get resolved quickly because "works for me" for most Microsoft employees.

Many thanks, it works for me. I'm also from Vietnam, and this issue is troublesome because it is related to regional...

@Madeglobal
Copy link

This helped for me:
winget settings --enable BypassCertificatePinningForMicrosoftStore

@andmicbro
Copy link

I found a fix using:

winget source reset winget

Found here: https://www.elevenforum.com/t/failed-in-attempting-to-update-the-source-winget.10288/post-225692

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