Install dotnet core on Linux Mint 19
Solution 1
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.
Solution 2
you may grab the package from here and install manually:
http://security.ubuntu.com/ubuntu/pool/main/i/icu/
Did you also try this way?
Download from : https://www.microsoft.com/net/download
Then:
mkdir -p $HOME/dotnet
cd Downloads
tar zxf dotnet-sdk-2.0.3-linux-x64.tar.gz -C $HOME/dotnet
export PATH=$PATH:$HOME/dotnet
Verify your installation:
dotnet --version
Solution 3
That package isn't valid for Ubuntu 18.04, there for it isn't valid for Mint 19. Just run the following to get the right version installed and you should be good.
sudo apt install libicu60
https://packages.ubuntu.com/search?keywords=libicu60&searchon=names&suite=bionic§ion=all
And just to add to clarify, this is in fact outlined in the official Microsoft documentation here
Related videos on Youtube
Alessandro Di Cicco
Updated on May 21, 2022Comments
-
Alessandro Di Cicco 7 months
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?
-
Rob Lassche over 3 yearsWith mint 19 I installed dotnet with 'sudo apt-get install dotnet-sdk-2.2'. No unmet dependencies.
-
-
Rup about 4 years
-
Alessandro Di Cicco about 4 yearsI got prompted that libicu60 is already installed, student18 answer worked for me though.
-
Alessandro Di Cicco about 4 yearsDownloading the package from the first link worked, i had already tried the second method with no success though.
-
Alessandro Di Cicco about 3 yearsThanks for the update! I'll keep this in mind for future installations!
-
Roy O'Bannon 10 monthsI would add for
Linux Mint 20
I openedsudo nano .bash_profile
and add the following lines:export PATH=$PATH:$HOME/dotnet
andexport DOTNET_ROOT=$HOME/.dotnet