报错解决:Downloading VS Code Server failed. Please try again later.

报错解决:Downloading VS Code Server failed. Please try again later.之前写过教程:Windows下使用VSCode远程SSH连接Linux服务器进行开发vscode使用ssh密钥登录远程Linux–vscoderemotelinuxsshkey

大家好,又见面了,我是你们的朋友全栈君。

之前写过教程:
Windows下使用VS Code远程SSH连接Linux服务器进行开发
vscode 使用ssh密钥登录远程Linux – vscode remote linux ssh key


如果你的机器无法连接外网,无法下载vs code服务器端,那么会报错如下:

Running remote connection script
Installing to /home/zhang/.vscode-server/bin/2213894ea0415ee8c85c5eea0d0ff81ecc191529...
Downloading with wget
....
"install" terminal command done
Received install output: b7a67c2b-5d04-47c6-8be8-999adf02ef0c##25##
Server download failed
Downloading VS Code Server failed. Please try again later.
------

解决方法如下:
在下载时查看下载的具体命令:

zhang@ubuntu:~$ ps -aux | grep vscode
zhang      3026  0.0  0.2  47932  6012 ?        S    12:18   0:00 wget -nv -O vscode-server-linux-x64.tar.gz https://update.code.visualstudio.com/commit:2213894ea0415ee8c85c5eea0d0ff81ecc191529/server-linux-x64/stable

然后到有网的机器手动进行下载:

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

然后进行安装,替换文件为自己下载的文件

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

现在重新连接就可以连上了。

可以在设置里配置代理,方便直接下载插件。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/140684.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号