microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.02k stars 1.43k forks source link

0x8a15000f : Data required by the source is missing #1348

Closed EurekaChen closed 1 year ago

EurekaChen commented 3 years ago

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

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

I suspect that the issue is happening during the source update, based on the 0% showing in your output. The logs from winget source update winget would probably be the most helpful to understand why it is failing silently. Alternatively, winget is basically doing this:

1. Download from https://cdn.winget.microsoft.com/cache/source.msix

2. PS> Add-AppxPackage

It is possible that this would give more direct logging/errors about my suspicions.

My guess is that something is wedged on the machine related to the Microsoft.Winget.Source package, and that manually removing it would help to unstick it. winget source remove winget would also attempt to remove that package in theory, but I'm not sure that I would trust winget to find the package to remove since it can't find it to use.

This worked for me, thanks!

I should point out that both > winget source update --name winget & > winget source update winget require admin privileges to work, and so if you intend to run them over SSH, you'll need to ensure your SSH session starts with elevated privileges by following Step 1.

MRRRKING commented 6 months ago

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

Bravo! 终于搞定了!

mahvili commented 1 month ago

This solved my problem:

https://learn.microsoft.com/en-us/answers/questions/1688882/how-do-we-fix-0x8a15000f-data-required-by-the-sour

Mapaler commented 1 month ago

I can't use winget in a virtual machine, then I reinstalled Windows and it still doesn't work.

VirtualBoxVM_Win_10_ 正在运行 _-_Oracle_VM_VirtualBox_0407