栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

vscode: Downloading package ‘C/C++ language components (Linux / x86

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

vscode: Downloading package ‘C/C++ language components (Linux / x86

使用vscode远程连接docker容器,进入容器后报错

Updating C/C++ dependencies...

Downloading package 'C/C++ language components (Linux / x86_64)'  Failed. Retrying... Failed. Retrying... Failed. Retrying...Waiting 8 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed. Retrying...Waiting 15 seconds... Failed to download https://go.microsoft.com/fwlink/?linkid=2175018
Failed at stage: downloadPackages
Error: Failed to establish a socket connection to proxies: ["PROXY 127.0.0.1:8889"]

If you work in an offline environment or repeatedly see this error, try downloading a version of the extension with all the dependencies pre-included from https://github.com/microsoft/vscode-cpptools/releases, then use the "Install from VSIX" command in VS Code to install it.

打开报错提示中的网站,下载文件cpptools-linux.vsix

下载完成之后,重新启动容器,记得将软件所在位置映射到容器中(我使用-v /home/aviana/Downloads:/root/data将文件所在地址映射到了容器内部/root/data)),在vscode中选中扩展插件,点击...,选择Install from VSIX...
然后选择下载的文件(容器内部地址/root/data)

安装完成。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/345771.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号