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

Error 0x8a15003f on "winget upgrade" (The source data is corrupted or tampered) #4224

Open
NotTwerp opened this issue Mar 2, 2024 · 9 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@NotTwerp
Copy link

NotTwerp commented Mar 2, 2024

Brief description of your issue

When trying to use winget upgrade --all, I get the following error message:

[...]
55 upgrades available.
2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
An unexpected error occurred while executing the command: 
0x8a15003f : The source data is corrupted or tampered

Steps to reproduce

  1. Execute winget upgrade --all

Expected behavior

Installing available package updates

Actual behavior

Error 0x8a15003f : The source data is corrupted or tampered

Environment

Windows Package Manager v1.7.10582
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3235
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Log File

2024-03-02 19:53:51.106 [CLI ] Starting installer selection.
2024-03-02 19:53:51.106 [CLI ] Installer [X86,msi,Machine,en-US] not applicable: Installed package type 'exe' is not compatible with installer type msi, or with accepted type(s) unknown
2024-03-02 19:53:51.106 [CLI ] Installer [X64,msi,Machine,en-US] not applicable: Installed package type 'exe' is not compatible with installer type msi, or with accepted type(s) unknown
2024-03-02 19:53:51.106 [CLI ] Installer [Arm64,msi,Machine,en-US] not applicable: Installed package type 'exe' is not compatible with installer type msi, or with accepted type(s) unknown
2024-03-02 19:53:51.106 [CLI ] Installer [Arm64,msi,Machine,en-US] not applicable: Machine is not compatible with Arm64
2024-03-02 19:53:51.107 [REPO] Downloading manifest
2024-03-02 19:53:51.107 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/m/Microsoft/Edge/119.0.2151.72/77be
2024-03-02 19:53:51.610 [CORE] Download request status success.
2024-03-02 19:53:51.610 [CORE] Download size: 3002
2024-03-02 19:53:51.611 [CORE] Download hash: cce256484e630930c943175a12171cb2148d9d5d5acf0c4e9542e0d3cf381721
2024-03-02 19:53:51.611 [CORE] Download completed.
2024-03-02 19:53:51.611 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\SQLiteIndexSource.cpp(156)\WindowsPackageManager.dll!00007FF99944ECC2: (caller: 00007FF99944DE86) Exception(33) tid(2b0) 8A15003F 
2024-03-02 19:53:51.611 [REPO] Downloading manifest failed, waiting a bit and retrying: https://cdn.winget.microsoft.com/cache/manifests/m/Microsoft/Edge/119.0.2151.72/77be
2024-03-02 19:53:52.121 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/m/Microsoft/Edge/119.0.2151.72/77be
2024-03-02 19:53:52.121 [CORE] Download request status success.
2024-03-02 19:53:52.121 [CORE] Download size: 3002
2024-03-02 19:53:52.121 [CORE] Download hash: cce256484e630930c943175a12171cb2148d9d5d5acf0c4e9542e0d3cf381721
2024-03-02 19:53:52.121 [CORE] Download completed.
2024-03-02 19:53:52.122 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\SQLiteIndexSource.cpp(156)\WindowsPackageManager.dll!00007FF99944ECC2: (caller: 00007FF99944DE86) Exception(34) tid(2b0) 8A15003F 
2024-03-02 19:53:52.122 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerRepositoryCore\Microsoft\SQLiteIndexSource.cpp(156)\WindowsPackageManager.dll!00007FF99944ECC2: (caller: 00007FF99944DE86) Exception(34) tid(2b0) 8A15003F 

Note

I've already tried:

  • winget source reset with and without --force
  • Get-AppxPackage -Name 'Microsoft.DesktopAppInstaller' | Reset-AppxPackage
  • running with --verbose

none of which made any difference.

This comment was marked as off-topic.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Mar 2, 2024
@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 Mar 4, 2024
@denelon
Copy link
Contributor

denelon commented Mar 4, 2024

Have you tried winget source update?

I suspect the Pre-Indexed package cache is out of date.
If that doesn't work, you can try removing it and refreshing.

Microsoft.Winget.Source_8wekyb3d8bbwe is the package identifier for the WinGet community source index.

@NotTwerp
Copy link
Author

NotTwerp commented Mar 4, 2024

winget source update doesn't work either.

How do I remove/refresh the cache?

@denelon
Copy link
Contributor

denelon commented Mar 4, 2024

Try uninstalling the source using winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe. Then run winget source update.

@NotTwerp
Copy link
Author

NotTwerp commented Mar 4, 2024

I did that and now I get this:

2 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.

An unexpected error occurred while executing the command:
Bad optional access

Logs:

2024-03-04 19:52:58.218 [CLI ] Starting installer selection.
2024-03-04 19:52:58.218 [CLI ] Installer [Arm64,burn,Unknown,] not applicable: Machine is not compatible with Arm64
2024-03-04 19:52:58.218 [CLI ] Installer [X64,burn,Unknown,] is current best choice
2024-03-04 19:52:58.218 [CLI ] Installer [X64,burn,Unknown,] is better [strong] than [X86,burn,Unknown,] due to: Machine Architecture
2024-03-04 19:52:58.218 [CLI ] Completed installer selection.
2024-03-04 19:52:58.218 [CLI ] Selected installer Architecture: 2
2024-03-04 19:52:58.218 [CLI ] Selected installer URL: https://dotnetcli.azureedge.net/dotnet/Runtime/3.1.32/dotnet-runtime-3.1.32-win-x64.exe
2024-03-04 19:52:58.218 [CLI ] Selected installer InstallerType: burn
2024-03-04 19:52:58.218 [CLI ] Selected installer Scope: Unknown
2024-03-04 19:52:58.218 [CLI ] Selected installer Language: 
2024-03-04 19:52:58.218 [CLI ] Manifest fields: Name [Microsoft .NET Runtime 3.1], Version [3.1.32]
2024-03-04 19:52:58.219 [CLI ] Market Filter created with market: **
2024-03-04 19:52:58.219 [CLI ] Locale Comparator created with Required Locales: [] , Preferred Locales: [en-US] , IsInstalledLocale: 0
2024-03-04 19:52:58.219 [CLI ] Architecture Comparator created with allowed architectures: [X64, X86, Neutral]
2024-03-04 19:52:58.222 [REPO] Attempting to open pinning database: C:\Users\<me>\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-03-04 19:52:58.222 [CLI ] Terminating context: 0x8a15002b at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:bc
2024-03-04 19:52:58.223 [CLI ] Market Filter created with market: **
2024-03-04 19:52:58.223 [CLI ] Locale Comparator created with Required Locales: [] , Preferred Locales: [en-US] , IsInstalledLocale: 0
2024-03-04 19:52:58.223 [CLI ] Architecture Comparator created with allowed architectures: [X64, X86, Neutral]
2024-03-04 19:52:58.226 [REPO] Attempting to open pinning database: C:\Users\<me>\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db
2024-03-04 19:52:58.226 [CLI ] Terminating context: 0x8a15002b at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\UpdateFlow.cpp:bc
2024-03-04 19:52:58.226 [CLI ] Caught std::exception: Bad optional access

@denelon
Copy link
Contributor

denelon commented Mar 5, 2024

That looks like it might be related to:

@exoosh
Copy link

exoosh commented Aug 28, 2024

Seeing the same now after the recent issue where bootmgr would suddenly be able to unseal the Bitlocker master and volume keys and prompt for the recover key.

I tried your suggestion as well:

Try uninstalling the source using winget uninstall Microsoft.Winget.Source_8wekyb3d8bbwe. Then run winget source update.

And after the winget source update I ran winget upgrade and am met again with the same error as before:

>winget upgrade
An unexpected error occurred while executing the command:
0x8a15003f : The source data is corrupted or tampered
>winget --info
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.4780
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Enabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Please note that my first instinct was to run winget source reset --force, which also didn't help.

@NotTwerp were you ever able to resolve this?


Excerpt from the logs (last few lines leading up to and showing the failure):

2024-08-28 10:32:25.494 [REPO]   Checking match with package id: Microsoft.DotNet.AspNetCore.6
2024-08-28 10:32:25.494 [REPO]   Checking match with package id: Microsoft.DotNet.AspNetCore.3_1
2024-08-28 10:32:25.494 [REPO]   Checking match with package id: Microsoft.DotNet.AspNetCore.5
2024-08-28 10:32:25.494 [REPO]   Checking match with package id: Microsoft.DotNet.AspNetCore.7
2024-08-28 10:32:25.494 [REPO]   Checking match with package id: Microsoft.DotNet.AspNetCore.8
2024-08-28 10:32:25.494 [REPO]  ... adding available package: Microsoft.DotNet.AspNetCore.6
2024-08-28 10:32:25.495 [CORE] Getting upstream file from remote: https://cdn.winget.microsoft.com/cache/packages/Microsoft.DotNet.AspNetCore.6/29f7b91a/versionData.mszyml
2024-08-28 10:32:25.495 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/packages/Microsoft.DotNet.AspNetCore.6/29f7b91a/versionData.mszyml
2024-08-28 10:32:25.506 [CORE] Download request status success.
2024-08-28 10:32:25.506 [CORE] Download size: 1626
2024-08-28 10:32:25.507 [CORE] Download hash: e1dadcbc56ed4ec39b232dfd72f6afdca1078704e9a7d0a6fabd6e4f492a43d3
2024-08-28 10:32:25.507 [CORE] Download completed.
2024-08-28 10:32:25.507 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\FileCache.cpp(58)\WindowsPackageManager.dll!00007FF9ABE52EC4: (caller: 00007FF9ABE52445) Exception(1) tid(498) 8A15003F 
2024-08-28 10:32:25.507 [CORE] Getting upstream file failed, waiting a bit and retrying: https://cdn.winget.microsoft.com/cache/packages/Microsoft.DotNet.AspNetCore.6/29f7b91a/versionData.mszyml
2024-08-28 10:32:26.012 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/packages/Microsoft.DotNet.AspNetCore.6/29f7b91a/versionData.mszyml
2024-08-28 10:32:26.013 [CORE] Download request status success.
2024-08-28 10:32:26.013 [CORE] Download size: 1626
2024-08-28 10:32:26.013 [CORE] Download hash: e1dadcbc56ed4ec39b232dfd72f6afdca1078704e9a7d0a6fabd6e4f492a43d3
2024-08-28 10:32:26.013 [CORE] Download completed.
2024-08-28 10:32:26.013 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\FileCache.cpp(58)\WindowsPackageManager.dll!00007FF9ABE52EC4: (caller: 00007FF9ABE52445) Exception(2) tid(498) 8A15003F 
2024-08-28 10:32:26.013 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\FileCache.cpp(228)\WindowsPackageManager.dll!00007FF9ABE880DF: (caller: 00007FF9ABE51DF7) LogHr(1) tid(498) 8A15003F     Msg:[GetUpstreamFile failed on source: https://cdn.winget.microsoft.com/cache -- C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\FileCache.cpp(58)\WindowsPackageManager.dll!00007FF9ABE52EC4: (caller: 00007FF9ABE52445) Exception(2) tid(498) 8A15003F ] 

2024-08-28 10:32:26.014 [CLI ] Caught wil::ResultException: C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\FileCache.cpp(58)\WindowsPackageManager.dll!00007FF9ABE52EC4: (caller: 00007FF9ABE52445) Exception(2) tid(498) 8A15003F 

@NotTwerp
Copy link
Author

@exoosh No, I wasn't. I've tried everything I could think of (though not that recently), so I might just have to reinstall or try again now.

@exoosh
Copy link

exoosh commented Aug 28, 2024

@exoosh No, I wasn't. I've tried everything I could think of (though not that recently), so I might just have to reinstall or try again now.

Give the method from here a try. It worked for me in the end.

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

3 participants