Not able to install .Net Core 3

Installing .NET Core
25.31s0.46sE: Unable to locate package dotnet-sdk-3.0
E: Couldn’t find any package by glob ‘dotnet-sdk-3.0’
E: Couldn’t find any package by regex ‘dotnet-sdk-3.0’
The command “sudo apt-get install -qq dotnet-sdk-3.0=3.0.0*” failed and exited with 100 during .
Your build has been stopped.


language: csharp
dist: trusty
sudo: required
mono: none
dotnet: 3.0.0
  - ./ --quiet verify

#!/usr/bin/env bash

dotnet restore && dotnet build

@joshua-anderson @akoeplinger

Please link to the build in question. Copypasting things gives incomplete information.

Oh sorry, I didn’t know I could do that.

dotnet-sdk-3.0 is not available for Trusty (presumably because it’s EOL):

Move to dist: xenial (which is the default so you can just omit it) or dist: bionic.


It’s installing .Net Core 3.0 but it seems to fail when running dotnet build and I’m not sure why.

Perhaps because it cannot find your project files since they are in a subdirectory. You also probably don’t need the custom build script.


You’re right, I didn’t even think about that