vs code连接服务器卡在Downloading with wget

  • Post author:
  • Post category:其他



原因

vs code更新后需要重新在服务器上安装对应的新版本,下载新版本时由于无法连接外网,导致一直卡在Downloading with get阶段


解决方法

:

在能上外网的电脑上手动下载,将commit:后的代码更改为vs code中显示的代码

https://update.code.visualstudio.com/commit:2213894ea0415ee8c85c5eea0d0ff81ecc191529/server-linux-x64/stable

将下载好的文件复制到服务器上,路径一般是/home/username/.vscode-server/bin/*

按照下方的命令手动安装

cd ~/.vscode-server/bin/*/
tar -zxvf vscode-server-linux-x64.tar.gz -C ./
mv vscode-server-linux-x64/* .

安装完后重新用vs code远程连接


参考

:


https://blog.csdn.net/zhangpeterx/article/details/98093615



版权声明:本文为YoJayC原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。