DEV Community

John Smith
John Smith

Posted on • Originally published at on

Unable To Locate Package dotnet sdk 3.1

Unable to locate package dotnet-sdk-3.1

Every time there is a new release of dotnetcore I need to get it updated on the three environments where I develop and deploy code.

I develop and deploy on macOS, Windows and Linux (Ubuntu) and macOS’s homebrew and Windows’s chocolatey will update the version of dotnetcore for me, sometimes there is a delay but they will update them.

However, on my Ubuntu machine each release of dotnetcore I always have to manually intervene and install it manually.

If you follow the instructions over at you will get the following error message:

Unable to locate package dotnet-sdk-3.1

The issue is that page targets 19.04 and I am running 19.10

So, If you are me from the future wanting to know how to get the latest version installed and not want the waffle here is what you need to do

curl | sudo apt-key add -
sudo apt-add-repository
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1

Success 🎉

Discussion (1)