Search code examples
.net.net-corelinux-mint

Install dotnet core on Linux Mint 19


After following Microsoft tutorials on how to install dotnet core on linux mint 19 i got stuck to :

sudo apt-get install dotnet-sdk-2.1.4

I got prompted that it needs dotnet-runtime-2.0.5 to be installed and so i executed :

sudo apt-get install dotnet-runtime-2.0.5

And i got

The following packages have unmet dependencies:
   dotnet-runtime-2.0.5 : Depends: libicu55 but it is not installable

So the problem is that i cannot install this libicu55 because it doesn't exist. How can i fix this?


Solution

  • Microsoft has its own package source for ubuntu now. The official download page has detailed instructions: https://dotnet.microsoft.com/download/linux-package-manager/ubuntu19-04/sdk-current

    The following deb package installs the package source in your system:

    wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    sudo dpkg -i packages-microsoft-prod.deb
    

    After an sudo apt-get update you can simply install your favorite SDK (e.g. 3.0) via

    sudo apt-get install dotnet-sdk-3.0
    

    The major benefit: you get updates and its easier to upgrade to the next major release.