Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing .NET Core 3.0 on Linux ARM64

Installing .NET Core on Linux ARM64

The following intructions can be used to install .NET Core on Linux ARM64.

Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.

Installing .NET Core Globally

The following instructions install the latest .NET Core globally. It isn't required to do that, but it provides the best experience.

curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

Dependencies

.NET Core has the following dependencies, on Ubuntu (other distros will vary):

  • libc6
  • libgcc1
  • libgssapi-krb5-2
  • libicu60
  • liblttng-ust0
  • libssl1.0.0
  • libstdc++6
  • zlib1g

Trying out .NET Core

The following steps can be used to try out .NET Core.

dotnet new console -o app
cd app
dotnet run

Other software

Copy link

ghost commented Dec 19, 2019

Same issue here. Target framework set to netcoreapp3.0.. but dotnet --version returns 5.0.100-alpha1-016050

Funnily enough.. setting netcoreapp5.0 actually works. :)

Screenshot_20191219_140721

@richlander
Copy link
Author

richlander commented Jan 29, 2020

I updated the gist to resolve a bunch of the issues raised. Thanks!

@bitsmaker
Copy link

bitsmaker commented Jun 18, 2020

Followed the instructions and getting this when I run dotnet in my cross-compiler shell

dotnet
/lib/ld-linux-aarch64.so.1: No such file or directory

@waheedrafiq
Copy link

waheedrafiq commented Jul 2, 2020

Hi guys I am getting the following error when i run sudo dotnet new console -o app :

linaro@tinkerboard:/usr/bin$ dotnet
-bash: /usr/bin/dotnet: cannot execute binary file: Exec format error
linaro@tinkerboard:/usr/bin$ sudo dotnet new console
/usr/bin/dotnet: 1: /usr/bin/dotnet:ELF▒▒2@@▒@8: not found
PuTTY/usr/bin/dotnet: 2: /usr/bin/dotnet: @!: not found
/usr/bin/dotnet: 3: /usr/bin/dotnet: $9@GPZkv}▒▒b▒▒▒: not found
/usr/bin/dotnet: 4: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 5: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 6: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 7: /usr/bin/dotnet: ▒: not found
/usr/bin/dotnet: 7: /usr/bin/dotnet: Syntax error: Unterminated quoted string
linaro@tinkerboard:/usr/bin$

the process i am running is armv71 on my Asus TinkerBoard has anyone manage to fix this issue or is there something that I can try

Thanks

@waheedrafiq
Copy link

waheedrafiq commented Jul 2, 2020

Hi Senior developers

Looks like I fix my issue for some reason you have to use the export command please follow this website tutorial to find out how to install .netcore on armv71 [.netcore]()

@AdiSegev
Copy link

AdiSegev commented Jul 7, 2020

Hi,

I need to run an exe file on an arm base device.

Can I do it with .NET core?

How can I do it after I download and install .NET core?

@chamaraonline
Copy link

chamaraonline commented Jul 21, 2020

.NET Core SDK
Version: 3.1.302

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: linux-arm64
Base Path: /usr/share/dotnet/sdk/3.1.302/

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.BackEnd.NodeFailedToLaunchException: No such file or directory
---> System.ComponentModel.Win32Exception (2): No such file or directory

@ShikiSuen
Copy link

ShikiSuen commented Jul 22, 2020

@NessInOnett

Sorry for running out of topic, but could you please tell me which linux distro & desktop environment are you using?

@waheedrafiq
Copy link

waheedrafiq commented Jul 22, 2020

@resistancelion
Copy link

resistancelion commented Jul 26, 2020

.NET Core SDK
Version: 3.1.302

Runtime Environment:
OS Name: ubuntu
OS Version: 20.04
OS Platform: Linux
RID: linux-arm64
Base Path: /usr/share/dotnet/sdk/3.1.302/

MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
Microsoft.Build.BackEnd.NodeFailedToLaunchException: No such file or directory
---> System.ComponentModel.Win32Exception (2): No such file or directory

similar error on ubuntu 19 arm64...

@brianpopow
Copy link

brianpopow commented Jul 30, 2020

the link to the .Net Core 3.1 ARM Dockerfile seems to be broken, it should be: https://github.com/dotnet/dotnet-docker/blob/master/src/sdk/3.1/bionic/arm32v7/Dockerfile

@Spongman
Copy link

Spongman commented Aug 25, 2020

i'm running arm64 ubuntu, why don't the regular ubuntu instructions just work?

@ryanbuening
Copy link

ryanbuening commented Mar 16, 2022

@richlander I did these steps

curl -SL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-linux-arm64.tar.gz
sudo mkdir -p /usr/share/dotnet
sudo tar -zxf dotnet.tar.gz -C /usr/share/dotnet
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
dotnet --version
6.0.100-preview.3.21168.18

and dotnet --version reported 6.0.100-preview.3.21168.18. Is there a way to get the latest non-preview version 6.0.201?

@ryanbuening
Copy link

ryanbuening commented Mar 16, 2022

@ksandaru
Copy link

ksandaru commented Jul 9, 2022

DO anyone know the supported .Net core version and how it can be installed on Raspberry pi 3 model B 64bit ARM running with Raspbian os 11?
I already installed .Net core 6.0, but CLI can not identify it when I run

dotnet

@richlander
Copy link
Author

richlander commented Jul 9, 2022

Can you open an issue at dotnet/sdk and CC me?

@ksandaru
Copy link

ksandaru commented Jul 9, 2022

Can you open an issue at dotnet/sdk and CC me?

Sure. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment