【メモ】WslRegisterDistribution failed with error: 0x800701bc

WSLインストール時に発生したエラーについてメモ。

新しく組んだデスクトップPCにWSLをインストールしようとしたら、以下のようなエラーが発生した。

stalling, this may take a few minutes...
WslRegisterDistribution failed with error: 0x800701bc
Error: 0x800701bc WSL 2 ???????????? ??????????????????????? https://aka.ms/wsl2kernel ?????????

Press any key to continue...

調べてみると、Linux カーネル更新プログラム パッケージをダウンロードする必要がある模様。
docs.microsoft.com

指示に従い、Linuxカーネル更新プログラムパッケージをダウンロード&インストール。
その後、無事インストールが完了した。

Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: hujimori
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Dec 28 21:11:44 JST 2021

  System load:  0.07               Processes:             8
  Usage of /:   0.5% of 250.98GB   Users logged in:       0
  Memory usage: 0%                 IPv4 address for eth0: 172.20.128.7
  Swap usage:   0%

1 update can be applied immediately.
To see these additional updates run: apt list --upgradable


The list of available updates is more than a week old.
To check for new updates run: sudo apt update


This message is shown once a day. To disable it please create the
/home/hujimori/.hushlogin file.