Run AspNet Core 2.2 on Raspberry PI 64bits (ubuntu 18.04 arm64)

As Ubuntu does officially support Raspberry PI 3 (arm64 and armhf) starting with 18.04.2, I gave a try to the 64 bit version to be able using dotnet core with MongoDB as the later is discontinued in 32 bits architecture.

I've downloaded and extracted the 32bits version of  aspnet core as the arm64 is not yet supported.
But I've quickly found myself ending with an issue when trying to run the armhf dotnet app:
-bash: /opt/dotnet/dotnet: No such file or directory
Even if all the dotnet prerequisites were met.


A few Googling hours later, I've figured out that, by default, no 32 bits (armhf) libraries are installed.

Thought that can be done simply.
First allow the armhf repository to be used in addition of arm64:
dpkg --add-architecture armhf
apt update
Then add the armhf flavor of the dotnet prerequisites:
apt install libunwind8:armhf gettext:armhf libc6:armhf libssl1.0-dev:armhf

You can now enjoy running aspnet core 2.2 apps on a arm64 ubuntu 18.04 :-)

#1 #2

Comments

Popular posts from this blog

Resolve "Cannot download packages whilst offline" issue in Deja-Dup backup software

ubuntu 20.04 / netplan / change mac address and static ip

wireshark ssh remote connect on linux server