简体   繁体   中英

WSL2: Stuck on Downloading Visual Studio when using code . command after installing VSCODE under windows

Hi after entering the following command in windows powershell in admin mode:

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

and typing code. in WSL2 code. in WSL2 , the download gets stuck can you please write a straight forward resolution for this issue?.

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

The download link given in your output refers to the vscode installation package of linux.

Why not try to open the official website and install vscode directly?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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