如何修复“分段错误"?运行“dotnet"时出错在 RasPi 上命令? [英] How can I fix a "Segmentation fault" error running "dotnet" command on RasPi?

查看:48
本文介绍了如何修复“分段错误"?运行“dotnet"时出错在 RasPi 上命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的旧 Raspberry Pi B+ 第一代上安装.NET Core 3.0"运行时,但由于运行 分段错误,我无法运行它dotnet 命令.

I am trying to install the ".NET Core 3.0" runtime on my old Raspberry Pi B+ first gen but I am not able to get it run because of a Segmentation fault running the dotnet command.

首先,我使用的是 arm32 版本的二进制文件,在屏幕会话上运行所有命令(根本不应该出现问题),运行 Raspbian buster lite 操作系统,并使用 RasPi 作为 lite 的微服务器-加载开发目的.这是为了提供一些背景信息.

First of all I am using the arm32 version of the binaries, running all commands on a screen session (should not give problems at all), running Raspbian buster lite OS, and using the RasPi as a micro-server for lite-load dev purposes. That's to give some context.

我尝试了不同的方法:

第一

以这种方式下载垃圾箱并手动安装

Downloaded the bins and installed them manually this way

sudo apt-get install curl libunwind8 gettext apt-transport-https
wget https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/3.0/dotnet-runtime-latest-linux-arm.tar.gz
sudo mkdir /usr/share/dotnet && sudo tar zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

我第一次收到错误.

第二

怀疑是我的安装错误,我上网发现了一个可能与错误相关的缺少 lib 的问题,所以我选择了 this 这是我发现的另一件事,它是直接来自 Microsoft 的.NET Core"系列安装脚本,在删除旧" 二进制文件 (sudo rm -r/usr/share/dotnet),步骤如下

Suspecting of a my installation fault i went online and found of a possible missing lib issue related to the error, so I went with this another thing I found, which is an installation script directly from Microsoft for the ".NET Core" family, straight after removing the "old" binaries (sudo rm -r /usr/share/dotnet) with the following steps

wget https://dot.net/v1/dotnet-install.sh
sudo ./dotnet-install.sh --channel Current --architecture arm --runtime dotnet --install-dir /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

没有可见的结果.

第三

考虑库我第二次上网,我试图找出手动安装它们所需的依赖项列表,我找到的唯一资源是这个 专用页面 在微软自己的网站上缺少 arm32 依赖项列表,所以我选择了 Ubuntu 的线

Thinking about libs I went online for a second time and I tried to figure out the list of needed dependencies to manually install them and the only resource I found is this dedicated page on Microsoft's own website lacking of the arm32 dependencies list, so I went for the Ubuntu ones with this line

sudo apt install liblttng-ust0 libcurl3  libcurl4  libssl1.0.0 libkrb5-3 zlib1g libicu52 libicu55 libicu57 libicu60 libunwind8 libuuid1

但我只安装了一些,因为诸如没有候选"、过时的包"、已经是最新版本"等各种错误;与单次安装相同.

but I only got a few installed because of various errors such as "no candidates", "outdated package", "already at newest version", and things like that; same with single installs.

在重试并重新安装 Raspbian 两天后(是的,我也试过几次)我决定尝试2.1 LTS"版本,但我对所描述的 3 个步骤中的每一个都得到了完全相同的结果对于 3.0 版本.正如我所料,我得到了相同的总体结果,这非常令人沮丧.

After two days of retrying and doing fresh installs of Raspbian (yes, I also tried that a couple of times) I decided to try the "2.1 LTS" version but I got the exact same result with each of the 3 steps described for the 3.0 version. As I could expect, I got the same overall result and that's very frustrating.

此时我也寻找兼容性问题,但找不到有用的东西.

At this point I also looked for compatibility issues but I could not find something useful.

所以有一个问题:是否有任何明显的兼容性问题,可能是硬件太旧?我可以解决这个问题吗?一般来说,有人对我的问题有什么提示/建议/解决方案吗?

SO there is the question: Is there any noticeable compatibility issue, a maybe too old piece of hardware? Can I work around that? And generally, does someone have kinda hint/suggestion/solution for my problem?

推荐答案

.Net Core 不支持 armv6 cpu,你可以在 Pi 2,3,4 上安装 .net core,但不能在 Pi 上安装.

.Net Core does not support armv6 cpu, you can install .net core on Pi 2,3,4, but not on Pi.

这篇关于如何修复“分段错误"?运行“dotnet"时出错在 RasPi 上命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆