Har*_*ano 10 ubuntu visual-studio-code wsl-2
我最近安装了 wsl 并code .在终端中运行时收到此错误:
Updating VS Code Server to version f80445acd5a3dadef24aa209168452a3d97cc326\nRemoving previous installation...\nInstalling VS Code Server for x64 (f80445acd5a3dadef24aa209168452a3d97cc326)\nDownloading: 100%\nFailed\n--2022-03-01 20:19:21-- https://update.code.visualstudio.com/commit:f80445acd5a3dadef24aa209168452a3d97cc326/server-linux-x64/stable\nResolving update.code.visualstudio.com (update.code.visualstudio.com)... 40.64.128.224\nConnecting to update.code.visualstudio.com (update.code.visualstudio.com)|40.64.128.224|:443... connected.\nHTTP request sent, awaiting response... 302 Found\nLocation: https://az764295.vo.msecnd.net/stable/f80445acd5a3dadef24aa209168452a3d97cc326/vscode-server-linux-x64.tar.gz [following]\n--2022-03-01 20:19:25-- https://az764295.vo.msecnd.net/stable/f80445acd5a3dadef24aa209168452a3d97cc326/vscode-server-linux-x64.tar.gz\nResolving az764295.vo.msecnd.net (az764295.vo.msecnd.net)... failed: Temporary failure in name resolution.\nwget: unable to resolve host address \xe2\x80\x98az764295.vo.msecnd.net\xe2\x80\x99\nERROR: Failed to download https://update.code.visualstudio.com/commit:f80445acd5a3dadef24aa209168452a3d97cc326/server-linux-x64/stable to /home/burbanox/.vscode-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326-1646176740.tar.gz\nRun Code Online (Sandbox Code Playgroud)\n我需要知道如何解决它才能打开 Visual Studio Code
\n小智 6
wget:无法解析主机地址 \xe2\x80\x98az764295.vo.msecnd.net\xe2\x80\x99\n尝试以下操作:
\nsudo nano /etc/resolv.conf\nRun Code Online (Sandbox Code Playgroud)\n将名称服务器编辑为 8.8.8.8:
\nnameserver 8.8.8.8\nRun Code Online (Sandbox Code Playgroud)\n