windows10环境下,remote wsl链接wsl ubuntu使用ubuntu 开发环境,报错:VS Code server for WSL closed unexpectedly check WSL terminal for more details

报错提示这样

windows10环境下,remote wsl链接wsl ubuntu使用ubuntu 开发环境,报错:VS Code server for WSL closed unexpectedly check WSL terminal for more details
在windows的vscode里面的关键报错信息是:vscode wsl Unable to detect if server is already installed: Error: Command f......

原因:

windows wsl的ubuntu启动之后,没有安装vscode,所以windows的vscode链接不上上面报错信息的server

解决办法:

更新ubuntu包

sudo sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
sudo apt update -y
sudo apt upgrade -y

安装ubuntu的vscode:

code

等待安装完成,回到windows的vscode ,重新打开wsl就可以了

windows10环境下,remote wsl链接wsl ubuntu使用ubuntu 开发环境,报错:VS Code server for WSL closed unexpectedly check WSL terminal for more details

windows10环境下,remote wsl链接wsl ubuntu使用ubuntu 开发环境,报错:VS Code server for WSL closed unexpectedly check WSL terminal for more details

上一篇:Android UI Layout总结之5大布局


下一篇:windows DOS命令