please restart WSL with the following command and try again
please restart WSL with the following command and try again:
wsl --shutdown
wsl --unregister DISTRO_NAME
解决方法
- 造成该问题的原因是WSL版本由原来的
WSL1
升级到WSL2
后,内核没有升级,前往微软WSL官网下载安装适用于 x64 计算机的最新 WSL2 Linux 内核更新包即可。
安装完成,再次打开就正常启动了。
- 如果不想安装
WSL2
,可以切换使用命令wsl -set-default-version 1
,切换到WSL1