question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet-install.sh fails because the download URL returns .

See original GitHub issue

Step to reproduce

  1. Create a docker container using alpine 3.14
  2. Get all dependencies informed in https://docs.microsoft.com/en-us/dotnet/core/install/linux-alpine
  3. Download using wget comand the installer script https://dot.net/v1/dotnet-install.sh and change mode to this file.
  4. Execute ./dotnet-install.sh -c 6.0

Expected behavior

Should be able to download the binaries

Actual behavior

If supplied with -c parameter has 6.0. the installer script return fail with the following error message:

#11 0.806 dotnet-install: Download attempt #1 has failed: Unable to download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0/latest.version. Returned HTTP status code: .

annex evidences: image

Enviroment data

Alpine 3.14

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
wherediacommented, Jan 6, 2022

Hi @KalleOlaviNiemitalo, I tried to use the dotnet-install.sh from github.com and it´s also fails althought it’sdue to another fails. image On the other hand, the failure of waitretry is secondary. The original fail is generated when it trying to download from https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0/latest.version this return a http status code has “.”. Please look it at next imagen: image

1reaction
KalleOlaviNiemitalocommented, Jan 6, 2022

Duplicate of https://github.com/dotnet/install-scripts/issues/216, which has been fixed already. I don’t know whether the corrected version of dotnet-install.sh is available anywhere in https://dot.net/, but you could perhaps get it from https://github.com/dotnet/install-scripts/blob/main/src/dotnet-install.sh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet-install.sh fails because the download URL returns 404
Steps to reproduce Download the installer script - https://dot.net/v1/dotnet-install.sh Run ./dotnet-install.sh Expected behavior Should be ...
Read more >
dotnet-install.sh not adding dotnet command on Ubuntu
I know the dotnet-install.sh script has not historically added it. You need to add a line like export PATH="$PATH:/home/<!username!> ...
Read more >
Install .NET on Linux without using a package manager
Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually...
Read more >
Troubleshoot app launch failures
Learn about common reasons for app launch failures and possible solutions. ... The error message includes a link to download .NET.
Read more >
net core - Installing dotnet on CentOS 6.1
I downloaded the shell script to install the latest on Centos 6.1 but I get the following error below for any version that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found