winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

0x8a15000f : Data required by the source is missing

Open EurekaChen opened this issue 3 years ago • 20 comments

install version v1.0.11692 run: winget search edge get:

无法打开源; 如果问题仍然存在,请尝试“source reset”命令。
执行此命令时发生意外错误:
0x8a15000f : Data required by the source is missing

EurekaChen avatar Aug 05 '21 08:08 EurekaChen

@EurekaChen what happens when you run winget source reset?

This is usually caused by a temporary network issue downloading the source package.

You might try changing your settings for the network downloader.

    "network": {"downloader": "wininet"}

denelon avatar Aug 05 '21 15:08 denelon

same after winget source reset and same after insert "network": {"downloader": "wininet"} in settings.json vist https://winget.azureedge.net/cache get:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<script/>
<script/>
<Code>ResourceNotFound</Code>
<Message>The specified resource does not exist. RequestId:4d9be7ed-201e-0064-0e25-8b2bb1000000 Time:2021-08-07T00:45:45.8777912Z</Message>
</Error>

EurekaChen avatar Aug 07 '21 00:08 EurekaChen

Same problem.

Windows Package Manager v1.0.11692

Windows: Windows.Desktop v10.0.19043.1151
Пакет: Microsoft.DesktopAppInstaller v1.12.11692.0

And the same response from https://winget.azureedge.net/cache

The output of the command winget source list

Name Argument
-----------------------------------------
winget https://winget.azureedge.net/cache

plekhov avatar Aug 07 '21 04:08 plekhov

Make sure you don't have any firewalls blocking the winget.azureedge.net and azureedge.net subdomain and domain. Most "privacy" tools for Windows block this by default.

Perhaps try booting up Windows Sandbox or other virtual machine software and see if it's reproducible there. If it's not reproducible, then the issue comes from your host machine and is likely caused by the above.

Also, https://winget.azureedge.net/cache - without /source.msix added to the end of the URL - is not meant to be accessible, so seeing ResourceNotFound is expected here, as long as doing ping winget.azureedge.net causes no issues and that the website is online and not offline.

If you go to https://winget.azureedge.net/cache/source.msix and install the source.msix file, does any error pop up on your screen? And what happens when you do winget search edge if it's installed?

ItzLevvie avatar Aug 07 '21 12:08 ItzLevvie

If you go to https://winget.azureedge.net/cache/source.msix and install the source.msix file, does any error pop up on your screen? And what happens when you do winget search edge if it's installed?

Okay... I'm an install source.msix without a problem on my computer and then run winget search edge. Works perfectly! Thanks!

But I'm a little confused. I'm taken a msixbundle from here https://github.com/microsoft/winget-cli/releases/tag/v1.0.11692 and installed it. For what need source.msix? And why package don't work without separate install source.msix?

plekhov avatar Aug 07 '21 13:08 plekhov

ping winget.azureedge succesuful. visit https://winget.azureedge.net/cache/source.msix and I get download "source.zip" I rename source.zip to source.msix and install it. now run winget search edge ,it work! But with warning: "尝试更新源时失败:winget“

EurekaChen avatar Aug 07 '21 13:08 EurekaChen

visit https://winget.azureedge.net/cache/source.msix and I get download "source.zip" I rename source.zip to source.msix and install it.

This might be why it wasn't able to install it since the file format is meant to be in .msix rather than in .zip.

For what need source.msix? And why package don't work without separate install source.msix?

This is because the .msixbundle only includes the Windows Package Manager and the source.msix file is not included in that.

By default, the Windows Package Manager has a source set up to the winget-pkgs repository where if you run winget source update or winget search Microsoft.Edge on your PC it's actually meant to automatically download the source.msix file from https://winget.azureedge.net/cache/source.msix and install it but for some reason it's failing and therefore you're getting an error saying that the data is missing.

source.msix is where all of the manifest data from the winget-pkgs repository are stored so that commands like winget search and winget upgrade will work. Without it, you won't be able to download anything as it can't find the manifest database to to download the application you want.

So the workaround to this issue is to keep on manually installing it from https://winget.azureedge.net/cache/source.msix until perhaps an engineer takes a look at this?

ItzLevvie avatar Aug 08 '21 13:08 ItzLevvie

What‘s the problem here: When I visit the same url "https://winget.azureedge.net/cache/source.msix" , in some computer it get "source.zip" and in other computer it will be "source.msix", so winget fail when get "source.zip".

and run winget install inkscape get

尝试更新源时失败: winget
执行此命令时发生意外错误:
InternetOpenUrl() failed.
0x80072f7d : unknown error

EurekaChen avatar Aug 18 '21 13:08 EurekaChen

See if the solution I posted here works for you: https://github.com/microsoft/winget-cli/issues/998

clovett avatar Aug 31 '21 22:08 clovett

Experiencing this issue now. Found the root cause to be that https://winget.azureedge.net/cache/source.msix is returning a 404 error. A 404 error should be communicated to the user in a more direct way than a generic "data is missing" message.

Edit - additional info:

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

Windows: Windows.Desktop v10.0.22000.348
Package: Microsoft.DesktopAppInstaller v1.16.13405.0

Edit 2 - https://winget.azureedge.net/cache/source.msix is no longer returning a 404 error, and winget functionality is restored on my system. Probably a temporary issue server-side. Should still be better communicated to the end user.

NPittinger avatar Dec 14 '21 22:12 NPittinger

https://github.com/microsoft/winget-cli/issues/1656 I solved it by:

  1. change permission of C:\Windows\Temp C:\Users%USERNAME%\AppData\Local\Temp\WinGet
  2. run *.Winget.msix (in C:\Users%USERNAME%\AppData\Local\Temp\WinGet ) by click it.

Then, I can use winget install -e --id vim.vim You can find more apps here: https://winget.run/ This issue is a big problem.

askender avatar Mar 31 '22 05:03 askender

ping winget.azureedge succesuful. visit https://winget.azureedge.net/cache/source.msix and I get download "source.zip" I rename source.zip to source.msix and install it. now run winget search edge ,it work! But with warning: "尝试更新源时失败:winget“

open Internet options, switch to advance tab, enable "tls 1.2"

Icatme avatar Jul 19 '22 08:07 Icatme

Had The Same Error i have slove it by going to this location 👇 C:\Users%USERNAME%\AppData\Local\Temp\WinGet

image and I installed Microsoft.Winget.Source_8wekyb3d8bbwe this package

still i get the error of Failed in attempting to update the source: winget but the packges intalling image

Hypertext-Assassin-RSS avatar Nov 06 '22 15:11 Hypertext-Assassin-RSS

谢谢各位的帖子,让我从一个小白不断摸索成长,你们坚持的精神感染了我,本来我打算从做系统的,可是我没放弃,你们每个人的建议我都尝试过,可是总失效,最后,一条奇葩的命令改变了这种现状:winget uninstall winget
winget uninstall winget winget uninstall winget 重要的命令说三遍!! 屏幕截图(1)

leedapeng avatar Nov 07 '22 10:11 leedapeng

i also have this problem on windows 11 pro 0x8a15000f : Data required by the source is missing

winget source list
Name     Argument
-----------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0
winget  https://cdn.winget.microsoft.com/cache

"winget source reset" - did not help

winget -v
v1.3.2691

Inf-Sub avatar Nov 07 '22 13:11 Inf-Sub

Guys they fixed it! 😊😊😊

Adrydevmateo avatar Nov 08 '22 00:11 Adrydevmateo

thanks, everything is working now but when I pressed cancel when demanding admin rights, I got an error, the text of which is not readable.

2022-11-08_14-44-22

Inf-Sub avatar Nov 08 '22 11:11 Inf-Sub

Guys they fixed it! 😊😊😊

Have they? I am still having this issue in UK

manu08manu avatar Nov 08 '22 19:11 manu08manu

Guys they fixed it! 😊😊😊

Have they? I am still having this issue in UK you can try winget uninstall winget, maybe it work!~

leedapeng avatar Nov 10 '22 12:11 leedapeng

Caching will likely be a bit weird until things fully settle down and proliferate

Masamune3210 avatar Nov 10 '22 14:11 Masamune3210

It is not fixed in the US either.

A9G-Data-Droid avatar Nov 15 '22 16:11 A9G-Data-Droid

@A9G-Data-Droid can you run winget source reset --force --verbose-logs from an administrator prompt and share the logs? This will remove the "winget" and "msstore" sources and add them back so the PreIndexed package ("winget" source) can be "reset" back to a good state.

denelon avatar Nov 15 '22 16:11 denelon

Sure, @denelon. How would you like me to share the logs with you?

PS C:\WINDOWS\system32> winget source reset --force --verbose-logs
Resetting all sources...Done
PS C:\WINDOWS\system32> winget update --all
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").

Do you agree to all the source agreements terms?
[Y] Yes  [N] No: Y
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing
PS C:\WINDOWS\system32> winget --version
v1.4.2161-preview

A9G-Data-Droid avatar Nov 15 '22 17:11 A9G-Data-Droid

If you can find the latest one, you can add it to the GitHub issue by drag & drop, or if you are concerned about sharing the file you can https://aka.ms/winget-feedback/ and share the link to the feedback report.

denelon avatar Nov 15 '22 18:11 denelon

Thanks @denelon, I have a full feedback ticket for you here: https://aka.ms/AAipess

It contains a zip file with 3 log files relative to the commands I ran above.

A9G-Data-Droid avatar Nov 15 '22 18:11 A9G-Data-Droid

I see this issue on Windows 11 specifically when running winget from an Administrator command prompt. If the command prompt is not run as Administrator, the issue does not occur for me.

My specific error when running as Admin: Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing

jeff922 avatar Nov 15 '22 19:11 jeff922

In my case, I could resolve the issue as follows:

  1. Log-in with local administrator
  2. powershell -> winget source update

quantenemitter avatar Nov 24 '22 17:11 quantenemitter

Update: I accidentally fixed it. I set my vpn on, log into non-admin powershell session, and run winget source update, it successfully update the winget source. winget search also works.

It's not fixed in China. The mstore source works, but the winget source cannot be updated even after successful reset.

I am using Windows 程序包管理器(预览) v1.4.3132-preview. If I update the sources, the winget source update get cancelled.

 winget source update --verbose-logs
正在更新所有源...
正在更新源: msstore...
完成
正在更新源: winget...
已取消

If I search for edge, it only got results from mstore:

 winget search edge
尝试更新源时失败: winget
"msstore"源要求在使用前查看以下协议。
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
源要求将当前计算机的 2 个字母的地理区域发送到后端服务才能正常工作,(例如"US")。

是否同意所有源协议条款?
[Y] 是  [N] 否: Y
搜索源时失败;结果将不包括在内: winget
名称                                   ID             版本    源
----------------------------------------------------------------------
Microsoft Edge Browser                 XPFFTQ037JWMHS Unknown msstore
CADENAS Parts for Solid Edge           9NBLGGH4PRQP   Unknown msstore
Solid Edge Mobile Viewer               9NBLGGH10W4F   Unknown msstore
Remote Tools for Microsoft Edge (Beta) 9P6CMFV44ZLT   Unknown msstore
Microsoft Edge DevTools Preview        9MZBFRMZ0MNJ   Unknown msstore
EDGE INTELLIGENT SYSTEM                9NBLGGH4WL8M   Unknown msstore
Commvault Edge                         9WZDNCRDCX0T   Unknown msstore
MATSUKO-EDGE                           9P6QJGZFJ04M   Unknown msstore
MCVisu.edge                            9PCLRNN47D6T   Unknown msstore
ContinuumEdge                          9NBLGGH6HL6L   Unknown msstore

Downloading the source.msix from https://winget.azureedge.net/cache/source.msix does not work either. The file seems to be empty (0 byte) and I cannot open it.

vani-lu avatar Nov 25 '22 02:11 vani-lu

Attempted the winget source update from Powershell as Admin, but I still get the error on my system:

Tried: winget source reset --force then

PS C:\Windows\System32> winget source update Updating all sources... Updating source: msstore... Done Updating source: winget... 0% Done PS C:\Windows\System32> winget upgrade all Failed when searching source: winget An unexpected error occurred while executing the command: 0x8a15000f : Data required by the source is missing

Verbose logs from: winget upgrade all --verbose-logs

2022-11-26 09:51:39.856 [CORE] WinGet, version [1.3.2691], activity [{61717FE3-FEB8-4F81-86E1-D42AD4AC7450}] 2022-11-26 09:51:39.856 [CORE] OS: Windows.Desktop v10.0.22621.819 2022-11-26 09:51:39.856 [CORE] Command line Args: "C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\winget.exe" upgrade all --verbose-logs 2022-11-26 09:51:39.856 [CORE] Package: Microsoft.DesktopAppInstaller v1.18.2691.0 2022-11-26 09:51:39.856 [CORE] IsCOMCall:0; Caller: winget-cli 2022-11-26 09:51:39.862 [CLI ] WinGet invoked with arguments: 'upgrade' 'all' '--verbose-logs' 2022-11-26 09:51:39.862 [CLI ] Found subcommand: upgrade 2022-11-26 09:51:39.862 [CLI ] Leaf command to execute: root:upgrade 2022-11-26 09:51:39.864 [CORE] Setting action: Get, Type: Secure, Name: admin_settings 2022-11-26 09:51:39.864 [CORE] Admin settings was not found 2022-11-26 09:51:39.864 [CLI ] Executing command: upgrade 2022-11-26 09:51:39.864 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-26 09:51:39.872 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-26 09:51:39.872 [YAML] Detected UTF-8 2022-11-26 09:51:39.872 [REPO] GetCurrentSourceRefs: Source named 'microsoft.builtin.desktop.frameworks' from origin Default is hidden and is dropped. 2022-11-26 09:51:39.872 [REPO] Default source requested, multiple sources available, adding all to source references. 2022-11-26 09:51:39.872 [REPO] Adding to source references msstore 2022-11-26 09:51:39.872 [REPO] Adding to source references winget 2022-11-26 09:51:39.872 [CORE] Setting action: Get, Type: Secure, Name: user_sources 2022-11-26 09:51:39.872 [CORE] Setting action: Get, Type: Standard, Name: sources_metadata 2022-11-26 09:51:39.872 [YAML] Detected UTF-8 2022-11-26 09:51:39.872 [REPO] Multiple sources available, creating aggregated source. 2022-11-26 09:51:39.872 [REPO] Adding to aggregated source: msstore 2022-11-26 09:51:39.872 [REPO] Custom header not found. 2022-11-26 09:51:39.872 [REPO] Sending http GET request to: https://storeedgefd.dsx.mp.microsoft.com/v9.0/information 2022-11-26 09:51:39.872 [REPO] Http GET request details: GET / HTTP/1.1

Content-Type: application/json

User-Agent: winget-cli WindowsPackageManager/1.3.2691 DesktopAppInstaller/Microsoft.DesktopAppInstaller v1.18.2691.0

jeff922 avatar Nov 26 '22 14:11 jeff922

For clarification In my case, just running PowerShell with a "normal" user, but selecting "as Administrator" did not help. I literally meant: Start the windows-session as local Administrator. My last log-in as local admin was quite a while ago. So while logging in, I got greeted with the typical "Please wait. We're running updates for you." After that, I ran PowerShell (within the admin-session) and the problem disappeared.

Since then, I'm able to do a "winget source update" as a normal user. I'm living in Germany.

I'm not an expert. But I thought this might help.

quantenemitter avatar Nov 27 '22 20:11 quantenemitter