项目场景:
PS C:\Windows\system32> wsl --install -d Ubuntu-20.04
正在安装: Ubuntu 20.04 LTS
安装过程中出现错误。分发名称: ‘Ubuntu 20.04 LTS’ 错误代码: 0x80070005
问题描述
安装WSL2发现无法安装,报0x80070005错误
PS C:\Windows\system32> wsl --install -d Ubuntu-20.04
正在安装: Ubuntu 20.04 LTS
安装过程中出现错误。分发名称: ‘Ubuntu 20.04 LTS’ 错误代码: 0x80070005
PS C:\Windows\system32> wsl --install -d Ubuntu-20.04
正在安装: Ubuntu 20.04 LTS
安装过程中出现错误。分发名称: 'Ubuntu 20.04 LTS' 错误代码: 0x80070005
原因分析:
可能是禁用了Windows更新服务,尝试从微软商店中下载时发现了这个错误,只要重新打开更新服务就行。