WslRegisterDistribution failed with error: 0x80080005
再現方法
ubuntuをインストールする前にWSLからWSL2に移行する
Ubuntuをインストールする
ubuntuを起動する
エラー発生
https://i.gyazo.com/thumb/1000/d151c2145c1b26d5fc5569969c4f0293-png.png
対処方法
PowerShellで以下のcommandを実行
$ Enable-WindowsOptionalFeature -Online -FeatureName $("VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux")
cf.Windows Subsystem for Linux (WSL) を Windows 10 にインストールする | Microsoft Docs
#2020-06-05