runtime: Unable to get dotnet SDK to build tip....

 ./build-test.sh buildtestwrappersonly arm
__DistroRid: linux-arm
__RuntimeId: linux-arm
Creating test wrappers...
dotnet_install: Warning: Unable to locate zlib. Probable prerequisite missing; install zlib.
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.5.20228.8/dotnet-sdk-5.0.100-preview.5.20228.8-linux-x64.tar.gz
curl: (18) transfer closed with 86430780 bytes remaining to read
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.5.20228.8/dotnet-sdk-5.0.100-preview.5.20228.8-linux-x64.tar.gz
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.5.20228.8/dotnet-dev-ubuntu.16.04-x64.5.0.100-preview.5.20228.8.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-preview.5.20228.8/dotnet-dev-ubuntu.16.04-x64.5.0.100-preview.5.20228.8.tar.gz
dotnet_install: Error: Could not find/download: `.NET Core SDK` with version = 5.0.100-preview.5.20228.8
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support
Failed to install dotnet SDK from public location (exit code '1').
Could not execute because the application was not found or a compatible .NET Core SDK is not installed.
Possible reasons for this include:
  * You intended to execute a .NET Core program:
      The application 'msbuild' does not exist.
  * You intended to execute a .NET Core SDK command:
      A compatible installed .NET Core SDK for global.json version [5.0.100-preview.5.20228.8] from [/home/stmaclea/git/runtime/global.json] was not found.
      Install the [5.0.100-preview.5.20228.8] .NET Core SDK or update [/home/stmaclea/git/runtime/global.json] with an installed .NET Core SDK:
        5.0.100-preview.4.20202.8 [/home/stmaclea/git/runtime/.dotnet/sdk]
Error: XUnit wrapper build failed. Refer to the build log files for details (above)

/cc @ViktorHofer @safern

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21 (21 by maintainers)

Most upvoted comments

Updated the top post. It was clearly trying to download. It sat there for minutes.

The global.json says you need a 5.0.100-preview.5 SDK, does getting a latest one help at all (outside of the automation)?

System wide dotnet

dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.201
 Commit:    b1768b4ae7

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.201/

Host (useful for support):
  Version: 3.1.3
  Commit:  4a9f85e9f8

.NET Core SDKs installed:
  2.1.805 [/usr/share/dotnet/sdk]
  2.2.402 [/usr/share/dotnet/sdk]
  3.0.103 [/usr/share/dotnet/sdk]
  3.1.201 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.17 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

In the runtime directory

./.dotnet/dotnet --info
 
Host (useful for support):
  Version: 5.0.0-preview.3.20169.1
  Commit:  bc28cbef85

.NET Core SDKs installed:
  5.0.100-preview.4.20202.8 [/home/stmaclea/git/runtime/.dotnet/sdk]
 
.NET Core runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [/home/stmaclea/git/runtime/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [/home/stmaclea/git/runtime/.dotnet/shared/Microsoft.NETCore.App]