Cannot find dotnet-sdk-2.1?

just got this message on one of our pipelines:
C# support for Travis-CI is community maintained.

Please open any issues at https://travis-ci.community/c/languages/37-category and cc @joshua-anderson @akoeplinger @nterry

Installing .NET Core

$ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1

$ export DOTNET_CLI_TELEMETRY_OPTOUT=1

E: Unable to locate package dotnet-sdk-2.1

E: Couldn't find any package by glob 'dotnet-sdk-2.1'

E: Couldn't find any package by regex 'dotnet-sdk-2.1'

The command "sudo apt-get install -qq dotnet-sdk-2.1=2.1.300*" failed and exited with 100 during .

any ideas? thanks

@joshua-anderson @akoeplinger

1 Like

I have same issue here
confg:

language: csharp
sudo: required
mono: none
dotnet: 2.1
dist: trusty

Any suggestions? @joshua-anderson @akoeplinger @nterry

2 Likes

I have the same issue now (worked perfectly just an hour ago or so) on xenial:

C# support for Travis-CI is community maintained.
Please open any issues at https://travis-ci.community/c/languages/37-category and cc @joshua-anderson @akoeplinger @nterry
Installing .NET Core
$ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
$ export DOTNET_CLI_TELEMETRY_OPTOUT=1
E: 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.101*" failed and exited with 100 during .

Please help.
@Joshua-Anderson

I have the same issue on xenial and bionic:

Installing .NET Core
$ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
$ export DOTNET_CLI_TELEMETRY_OPTOUT=1
13.78s0.56sE: 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'
The command "sudo apt-get install -qq dotnet-sdk-2.2" failed and exited with 100 during .

@joshua-anderson @akoeplinger

I have the same problem

travis.yml
language: csharp
mono: none
dotnet: 2.1

Build log
Installing .NET Core
148$ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
149$ export DOTNET_CLI_TELEMETRY_OPTOUT=1
15013.47s0.52sE: Unable to locate package dotnet-sdk-2.1
151E: Couldnā€™t find any package by glob ā€˜dotnet-sdk-2.1ā€™
152E: Couldnā€™t find any package by regex ā€˜dotnet-sdk-2.1ā€™
153The command ā€œsudo apt-get install -qq dotnet-sdk-2.1ā€ failed and exited with 100 during .

Is there any work arounds?

Just started working for me.

language: csharp
mono: none
dotnet: 3.1
env:
- PROJECT_PATH=src/CrackSharp.Cmd
- PROJECT_PATH=src/CrackSharp.Api
script: "dotnet build $PROJECT_PATH"

Pasting stuff here gives insufficient info for diagnostics. Please link to an affected build.

I am experiencing the same issue as of today

It seems to have been fixed now