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


报错提示这样

image
在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就可以了

image


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM