N
N
Nikolay Alekseev2022-01-19 15:44:27
linux
Nikolay Alekseev, 2022-01-19 15:44:27

How to install dotNet core on Armbian (Orange PI) (armhf)?

Good day to all!
The essence of the issue is simple: I can not install the executable environment or SDK on an Orange PI mini PC running Armbian.

  • I tried the following installation methods: manually according to instructions from MSDN
  • Installation script taken from there
  • With Snap

Since I am not an experienced sysadmin or devosp, but the last option had the highest hopes, since the first two successfully failed.
However, after installing KFOR I get the following situation.
Installed like this:
sudo snap install dotnet-sdk --classic --channel=3.1/edge

Wrote that it was installed successfully and I will be happy.
I try:
[email protected]:~# dotnet --info
/snap/dotnet-sdk/75/snap/command-chain/snapcraft-runner: 3: exec: /snap/dotnet-sdk/75/dotnet: not found

I add an alias and export the path, as it is written in the documentation:
sudo snap alias dotnet-sdk.dotnet dotnet
export DOTNET_ROOT=/snap/dotnet-sdk/current

The summary is unchanged. Rebooted the machine. Did not help. On a foreign forum I found information that pseudonyms are evil and should be done differently:
sudo snap unalias dotnet
sudo ln -s /snap/dotnet-sdk/current/dotnet/usr/local/bin/dotnet

Did not help.

I thought: well, to hell with it, I don’t plan to develop under the very orange, I’ll just put the runtime
sudo snap install dotnet-runtime-31 --classic
result
error: snap "dotnet-runtime-31" is not available on stable for this architecture (armhf) but exists
       on other architectures (amd64)


In the end, I'm at an impasse. Please point me in the right direction on how to solve this problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-01-19
@vabka

.NET SDK via snap is only available on amd64, arm64, and armhf architectures

sudo snap install dotnet-sdk --channel=6.0/stable --classic

And the .NET Runtime is only on amd64, which is what the error says
Or you can try via dotnet-install:
https://docs.microsoft.com/en-us/dotnet/core/insta
... put. These containers, at least for me, have never worked normally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question