You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu系统下VS Code安装.NET 7.0时出现解压失败问题求助

Ubuntu系统下VS Code安装.NET 7.0时出现解压失败问题求助

各位大佬好,我在Ubuntu系统上用VS Code创建.NET项目时,一直卡着解压失败的问题,折腾好半天都没搞定,特意来求助大家!

下面是反复弹出的错误信息:

An error occurred while installing .NET (7.0): .NET Acquisition Failed: Installation failed: Error: Command failed: "/home/speed/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.6.0/dist/install scripts/dotnet-install.sh" -InstallDir "/home/speed/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.8" -Version 7.0.8 -Runtime dotnet

gzip: stdin: unexpected end of file

tar: Child returned status 1

tar: Error is not recoverable: exiting now

dotnet_install: Error: Extraction failed

具体情况是:当我触发“创建.NET项目”操作时,终端会开始加载转圈,但最后总是超时卡住,从错误信息来看核心问题就是解压环节出了问题。

我已经试过这些办法了,都没解决:

  • 卸载Dotnet-Sdk框架后多次重新下载安装
  • 手动安装相关依赖和二进制文件
  • 谷歌搜了好几个小时的解决方案
  • 反复修改$PATH环境变量,添加/移除相关路径

另外附上我的SDK安装信息,供大家参考:

Host:
Version:      7.0.8
Architecture: x64
Commit:       4b0550942d

.NET SDKs installed:
7.0.305 [/home/speed/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.8 [/home/speed/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.8 [/home/speed/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT       [/home/speed/dotnet]

有没有大佬遇到过类似的问题?求指点怎么解决!

备注:内容来源于stack exchange,提问作者TAEE1

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 11:15:28