【问题标题】:(Linux dotnet)output “Segmentation fault” when run "dotnet restore"(Linux dotnet) 运行“dotnet restore”时输出“Segmentation fault”
【发布时间】:2016-12-21 00:27:00
【问题描述】:

我在 Deepin(基本 Debian)中安装了 dotnet-sdk,但是当我运行“dotnet restore”时输出“Segmentation fault”。

安装 .NET Core SDK 文档 (https://www.microsoft.com/net/core#linuxdebian)

命令行:

root@ylooq:~/soft$ cd ../
root@ylooq:~$ mkdir hello
root@ylooq:~$ cd hello/
root@ylooq:~/hello$ ls
root@ylooq:~/hello$ dotnet new
Created new C# project in /home/ylooq/hello.
root@ylooq:~/hello$ dotnet restore
log  : Restoring packages for /home/ylooq/hello/project.json...
Segmentation fault
root@ylooq:~/hello$ ls
Program.cs  project.json

【问题讨论】:

    标签: .net-core


    【解决方案1】:

    我假设您使用的是基于 Debian Unstable 分支的 deepin 15。

    Dotnet core 依赖于旧版本的 libcurl3,问题导致 libcurl3 自带的 libssl1.0.0 库。

    这是 dotnet-sdk-2.0.0-preview2(对于 Debian)所依赖的软件包列表:

    libc6 (>= 2.14), libcurl3 (>= 7.16.2), libgcc1 (>= 1:4.1.1), 
    libgssapi-krb5-2 (>= 1.10+dfsg~), liblttng-ust0, libstdc++6 (>= 4.8),
    libunwind8, libuuid1 (>= 2.16), zlib1g (>= 1:1.1.4), libssl1.0.0
    

    在 Debian 8(jessie) 中,您可以找到这些软件包。请尝试将 debian jessie repo 添加到 sources.list:

    deb http://ftp.debian.org/debian/ jessie main non-free contrib
    deb-src http://ftp.debian.org/debian/ jessie main non-free contrib
    

    这些链接可能对您有所帮助,因为您可能必须使用 apt-pinning :) 才能下载旧版本的软件包:

    1. Apt pinning
    2. Issue of libcurl3

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-02
      • 2020-07-20
      • 2019-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-04
      相关资源
      最近更新 更多