core icon indicating copy to clipboard operation
core copied to clipboard

i tried installing dotnet core on ubuntu

Open yuthan opened this issue 7 years ago • 4 comments

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/ubuntu16-04/sdk-current Operating System:

Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic

Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

yuthan avatar Jun 08 '19 08:06 yuthan

sudo apt-get install dotnet-sdk-2.2 Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package dotnet-sdk-2.2 E: Couldn't find any package by glob 'dotnet-sdk-2.2' E: Couldn't find any package by regex 'dotnet-sdk-2.2'

yuthan avatar Jun 08 '19 08:06 yuthan

you should first run these two command

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

anyway, i suggest to install .net core with dotnet-install.sh script which you can find here: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script By using this, it's so easy to install different .net core or asp.net core sdk and runtime versions side by side. Then using global.json to specify which version you want to use in each project

https://docs.microsoft.com/en-us/dotnet/core/tools/global-json

guftall avatar Jun 08 '19 17:06 guftall

Thanks that resolved my issue :)

yuthan avatar Jun 09 '19 14:06 yuthan

your welcome, i think we can close this issue now ^_^

guftall avatar Jun 10 '19 04:06 guftall