简体   繁体   English

是否可以在离线安装中将 vscode 服务器用于远程 wsl?

[英]Is it possible to use vscode server for remote wsl in an offline installation?

When starting vscode from Ubuntu 20.04 using WSL2 using the remote WSL extension, vscode tries to fetch vscode server binaries from online.当使用远程 WSL 扩展使用 WSL2 从 Ubuntu 20.04 启动 vscode 时,vscode 尝试从在线获取 vscode 服务器二进制文件。

Is it possible to install these binaries in an offline install where it does not try to download new binaries?是否可以在不尝试下载新二进制文件的离线安装中安装这些二进制文件?

Installing VS Code Server for x64 (d2e414d9e4239a252d1ab117bd7067f125afd80a)
Downloading: 100%
Failed
--2020-10-30 11:04:23--  https://update.code.visualstudio.com/commit:d2e414d9e4239a252d1ab117bd7067f125afd80a/server-linux-x64/stable
Resolving update.code.visualstudio.com (update.code.visualstudio.com)... failed: Name or service not known.
wget: unable to resolve host address ‘update.code.visualstudio.com’
ERROR: Failed to download https://update.code.visualstudio.com/commit:d2e414d9e4239a252d1ab117bd7067f125afd80a/server-linux-x64/stable to /home/myuser/.vscode-server/bin/d2e414d9e4239a252d1ab117bd7067f125afd80a-1604073862.tar.gz

Turns out this question has already been asked and fully answers my question.原来这个问题已经被问到并完全回答了我的问题。 Please see the other question/answer for details on how to install vscode server offline.有关如何离线安装 vscode 服务器的详细信息,请参阅其他问题/答案。

Solution Here 解决方案在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM