最近遇到WSL无法启动,弹出下面错误 'execvpe /bin/bash failed 5'
经过排查是因为在WSL2上安装Ubuntu导致,可以通过下面方法解决:
1. 使用administrator打开command prompt
2.输入wsl -l 命令查看当前Windows subsystem for Linux Distributions的列表
3. 执行下面命令更新default WSL distribution
wsl -s distributionname
4. 完成后尝试打开wsl,可以正常使用,问题解决
感谢阅读