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

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2022-01-10
  • 2021-12-10
  • 2021-10-27
  • 2022-12-23
  • 2022-01-22
  • 2021-09-16
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2021-11-16
  • 2021-12-05
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
相关资源
相似解决方案