Windows 10安装Ubuntu AppxBundle失败(错误码0x80080204)求助
问题描述
在Windows 10 Pro 1909(build 18363.1256)上安装Ubuntu WSL时持续失败:
- 从Microsoft Store下载时提示:
Error: Something unexpected happened
with error code: 0x80080204 - 手动通过管理员PowerShell安装AppxBundle包时执行命令:
同样返回错误码0x80080204,核心错误信息为:Add-AppxPackage -Path "C:\Users\user\Downloads\Ubuntu2204-221101.AppxBundle"
已尝试操作:重置Microsoft Store、启用WSL、运行故障排除工具、重启系统、重启Delivery Optimization、勾选程序和功能相关选项、CMD扫描恢复、Add-AppxPackage : Deployment failed with HRESULT: 0x80080204, The Appx package's manifest is invalid. error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 22, Column 96, Note: The schema for MaxVersionTested specified does not recognize XML fields with namespace "http://schemas.microsoft.com/appx/manifest/uap/windows10/10". Please ensure that you have the correct MaxVersionTested specified. Reason: The attribute '{http://schemas.microsoft.com/appx/manifest/uap/windows10/10}Parameters' on the element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Application' is not defined in the DTD/Schema.wsl --install命令,均无效。
原因分析
Windows 10 1909版本过旧,不支持Ubuntu 22.04 Appx包中用到的uap/windows10/10命名空间属性,该属性需要Windows 10 2004(build 19041)及以上版本的系统支持。
解决方案
方案1:升级Windows 10到2004或更高版本
- 打开「设置」>「更新和安全」>「Windows更新」
- 检查并安装所有可用更新,将系统升级至2004或更高版本
- 升级完成后,重新运行
wsl --install或从Microsoft Store下载Ubuntu
方案2:安装适配Windows 10 1909的旧版Ubuntu包
如果无法升级系统,可选择兼容1909的旧版Ubuntu:
- 下载Ubuntu 20.04或更早版本的AppxBundle包(需适配Windows 10 1909)
- 以管理员身份打开PowerShell,执行
Add-AppxPackage命令安装下载的包 - 安装完成后启动Ubuntu,完成初始化配置
方案3:切换到WSL 1安装Ubuntu
- 打开「控制面板」>「程序和功能」>「启用或关闭Windows功能」
- 仅勾选「适用于Linux的Windows子系统」(不勾选「虚拟机平台」,1909对WSL2支持有限)
- 重启系统后,下载兼容WSL1的Ubuntu离线安装包(如Ubuntu 18.04)
- 解压安装包,运行其中的exe文件完成安装
内容的提问来源于stack exchange,提问作者young don
相关产品推荐
相关产品推荐

