DEV Community


Unable To Locate Package dotnet sdk 3.1

John Smith
full-time carer formally head of infrastructure and operations, senior full-stack #dotnetcore #aspnetcore #vuejs developer and software engineer.
Originally published at on ・1 min read

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)

ricardojvtorres profile image
Ricardo Torres

Thanks, John, for this post, lastly I have been working with xubuntu 20.04 and I am very happy with the performance and the way to deploy the .net core apps in ubuntu, I shared something about it here:

Forem Open with the Forem app