PDA

View Full Version : [ubuntu] How to install .NET Core Runtime on Ubuntu 19.04



eshkol
April 29th, 2019, 12:17 AM
Hi, I have trouble installing .NET Core Runtime on Ubuntu 19.04. I followed the instructions for Ubuntu 18.10 (https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-10/runtime-current) with a slight change in the first command (replaced 18.10 with 19.04, see below).
However, neither package aspnetcore-runtime-2.2 nor dotnetruntime-2.2 are found in the last step. Also, no packages matching regex aspnetcore-runtime* or dotnet-runtime* are found.

Is there any way to get .NET Core Runtime functioning on Ubuntu 19.04 at this point?

Many thanks for any help!

The code:

wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb (https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb)
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install aspnetcore-runtime-2.2

Guy_Rouillier
July 24th, 2019, 05:37 AM
The included link now has instructions for 19.04, and I can verify they work.

My purpose for posting is to warn any one who happens upon this post *not* to use snaps to install dotnet. https://snapcraft.io/dotnet-sdk
(https://snapcraft.io/dotnet-sdk)
I've spent considerable time trying to get basic (auto-generated) dotnet apps working, with limited success. The generated Console app works, but the generated GTK app does not. I asked around a bit, and got responses like "a snap-based installation for dotnet is not supported, and will introduce significant issues." Well, I can attest to that. :)