WSL2:使用代码时卡住下载Visual Studio.命令,在windows下安装VSCODE &



在windows powershell管理模式下输入以下命令后:

netsh interface portproxy add v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=192.168.224.1

然后输入code . in WSL2,下载卡住了,你能写一个直接的解决这个问题吗?

ALG_LIN code .
Updating VS Code Server to version 6261075646f055b99068d3688932416f2346dd3b
Removing previous installation...
Installing VS Code Server for x64 (6261075646f055b99068d3688932416f2346dd3b)
Downloading: 100%
Failed
--2022-12-02 20:31:55--  https://update.code.visualstudio.com/commit:6261075646f055b99068d3688932416f2346dd3b/server-linux-x64/stable
Connecting to 192.168.224.1:8000... connected.
Failed reading proxy response: Success
Retrying.

https://update.code.visualstudio.com/commit:6261075646f055b99068d3688932416f2346dd3b/server-linux-x64/stable

输出中的下载链接是指linux的vscode安装包。

为什么不尝试打开官方网站并直接安装vscode ?

相关内容

  • 没有找到相关文章

最新更新