【发布时间】:2022-03-26 03:42:54
【问题描述】:
当我尝试在 Ubuntu 或 VS Code 终端中运行“dotnet new console”时,我收到以下错误
Segmentation fault (core dumped)
在 Ubuntu 终端中运行它似乎提供了更多信息,看起来它无法执行当您执行“dotnet new console”时自动运行的“dotnet restore”
Getting ready...
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on /home/max/Programming/C Sharp/Hello World/Hello World.csproj...
Determining projects to restore...
Restore failed.
Post action failed.
Description: Restore NuGet packages required by this project.
Manual instructions: Run 'dotnet restore'
Segmentation fault (core dumped)
手动运行 dotnet restore 只会出现段错误
Ubuntu的版本是21.04,我已经按照https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2104-安装了所有东西
另外需要注意的是,我可以在 Monodevelop 中很好地构建和运行 C Sharp 应用程序,并且可以在 VS Code 中很好地运行 Python 等非 .NET 语言
任何想法/帮助将不胜感激,谢谢
【问题讨论】:
-
检查这个stackoverflow.com/questions/48358732/…(两个版本的libssl冲突)
-
您好,只安装了一个版本的 libssl (/usr/lib/x86_64-linux-gnu/libssl.so.1.1)