0

I have ubuntu server 18.04.3 amd64. this is my script to install .net core 3:

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

this is my target framework:

    <TargetFramework>netcoreapp3.0</TargetFramework>

when I try to run my project I get the error with dotnet run or dotnet build I get:

-bash: /usr/bin/dotnet: cannot execute binary file: Exec format error

Thanks

3
  • The .Net Core download you are getting in your CURL command is for arm64, not amd64. Two very very different platforms.
    – Moo
    Sep 22, 2019 at 6:22
  • @Moo There is no amd64 dotnet.microsoft.com/download/dotnet-core/3.0 thanks
    – SexyMF
    Sep 22, 2019 at 6:29
  • You want x64 in that page - that’s amd64.
    – Moo
    Sep 22, 2019 at 7:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.