git clone https://github.com/dotnet/cli
cd cli/
./build.sh
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: calculate_vars
dotnet-install: Calling: get_azure_channel_from_channel beta
dotnet-install: azure_channel=beta
dotnet-install: Calling: get_normalized_architecture_from_architecture <auto>
dotnet-install: Calling: get_machine_architecture
dotnet-install: Calling: get_normalized_architecture_from_architecture x64
dotnet-install: normalized_architecture=x64
dotnet-install: Calling: get_specific_version_from_version https://dotnetcli.blob.core.windows.net/dotnet beta x64 Latest
dotnet-install: Calling: get_latest_version_info https://dotnetcli.blob.core.windows.net/dotnet beta x64
dotnet-install: Calling: get_current_os_name
dotnet_install: Error: OS name could not be detected
dotnet-install: get_latest_version_info: latest url: https://dotnetcli.blob.core.windows.net/dotnet/beta/dnvm/latest..x64.version
dotnet-install: Calling: download https://dotnetcli.blob.core.windows.net/dotnet/beta/dnvm/latest..x64.version
dotnet_install: Error: Download failed
dotnet-install: get_specific_version_from_version: version_info=
dotnet-install: Calling: get_version_from_version_info
dotnet-install: specific_version=
dotnet_install: Error: Could not get version information.
Linux fedora-ll 4.4.8-300.fc23.x86_64 dotnet/sdk#4283 SMP Wed Apr 20 16:59:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Seems like the latest Unix packages are inaccessible/unavailable at the moment. I am using the install script (https://github.com/dotnet/cli/tree/b18df1c/scripts/obtain) for Travis CI and it is failing due to the very reason: https://travis-ci.org/am11/MaxMind-DB-Reader-dotnet/jobs/128309626. However, that was not the case few hours ago.
Your OS is not being detected:
https://github.com/dotnet/cli/blob/b18df1c51cfbfcbe4a27deb48b577737c9800751/scripts/obtain/dotnet-install.sh#L59
Install script should fail with that information but it seems that it kept going and displayed some different failure.
Fedora is currently not supported (you may try changing the script and make it detect fedora as different similar OS and maybe it will work but it's not officially supported)
@am11, I'm not confident this is the same issue. Could you share a log with --verbose?
@krwq, I was playing around with the script and just realized that this is not the same issue, as you noted.
Nonetheless, here is the log I captured from OS X (running locally):
✔ ~/maxmind-db-reader-dotnet [coreclr-port ↓·3↑·4|✚ 2]
21:57 $ curl -L --create-dirs https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/install.sh -o ./scripts/install.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 17898 100 17898 0 0 19124 0 --:--:-- --:--:-- --:--:-- 19142
✔ ~/maxmind-db-reader-dotnet [coreclr-port ↓·3↑·4|✚ 2]
21:57 $ sudo bash ./scripts/install.sh --channel "preview" --version "Latest" --install-dir "./dotnetcli" --no-path --verbose
dotnet_install: Calling: machine_has curl
dotnet_install: Calling: calculate_vars
dotnet_install: Calling: get_azure_channel_from_channel preview
dotnet_install: azure_channel=beta
dotnet_install: Calling: get_normalized_architecture_from_architecture <auto>
dotnet_install: Calling: get_machine_architecture
dotnet_install: Calling: get_normalized_architecture_from_architecture x64
dotnet_install: normalized_architecture=x64
dotnet_install: Calling: get_specific_version_from_version https://dotnetcli.blob.core.windows.net/dotnet beta x64 Latest
dotnet_install: Calling: get_latest_version_info https://dotnetcli.blob.core.windows.net/dotnet beta x64
dotnet_install: Calling: get_current_os_name
dotnet_install: get_latest_version_info: latest url: https://dotnetcli.blob.core.windows.net/dotnet/beta/dnvm/latest.osx.x64.version
dotnet_install: Calling: download https://dotnetcli.blob.core.windows.net/dotnet/beta/dnvm/latest.osx.x64.version
dotnet_install: get_specific_version_from_version: version_info=3b2ea9d14b4cd7d6f94329012a46a562bcb731f9
1.0.0-rc2-002678
dotnet_install: Calling: get_version_from_version_info
dotnet_install: specific_version=1.0.0-rc2-002678
dotnet_install: Calling: construct_download_link https://dotnetcli.blob.core.windows.net/dotnet beta x64 1.0.0-rc2-002678
dotnet_install: Calling: get_current_os_name
.tar.gz-dev-osx-x64.1.0.0-rc2-002678//dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/1.0.0-rc2-002678
dotnet_install: Calling: resolve_installation_path ./dotnetcli
dotnet_install: install_root=./dotnetcli
dotnet_install: Calling: check_pre_reqs
dotnet_install: Calling: install_dotnet
dotnet_install: Calling: is_dotnet_package_installed ./dotnetcli sdk 1.0.0-rc2-002678
dotnet_install: Calling: combine_paths ./dotnetcli sdk
dotnet_install: combine_paths: root_path=./dotnetcli
dotnet_install: combine_paths: child_path=sdk
dotnet_install: Calling: combine_paths ./dotnetcli/sdk 1.0.0-rc2-002678
dotnet_install: combine_paths: root_path=./dotnetcli/sdk
dotnet_install: combine_paths: child_path=1.0.0-rc2-002678
dotnet_install: is_dotnet_package_installed: dotnet_package_path=./dotnetcli/sdk/1.0.0-rc2-002678
dotnet_install: Zip path: /tmp/dotnet.bhdoTlM7E
.tar.gz-dev-osx-x64.1.0.0-rc2-002678dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/1.0.0-rc2-002678
.tar.gz /tmp/dotnet.bhdoTlM7E-002678tps://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/1.0.0-rc2-002678
dotnet_install: Error: Download failed
Looks the line line after "Zip path" has the jumbled URL string. Could be due to the echo "";return 0 pattern used in construct_download_link routine. Same thing is happening on TravisCI. Yesterday, the same script was working alright both on local Mac and TravisCI Darwin+Debian (21 hours ago: https://travis-ci.org/am11/MaxMind-DB-Reader-dotnet/builds/128166672).
@krwq, it has started to work again since CLI v1.0.0-preview1-preview1-002693: https://travis-ci.org/am11/MaxMind-DB-Reader-dotnet/builds/128440939.
Can't tell what was the issue and how it was fixed by looking at the commit history. So thanks to you and everyone who has participated in fixing this mysterious anomaly. :)
We are adding support for Fedora 23 - https://github.com/dotnet/cli/issues/2958
So closing this issue.
Most helpful comment
We are adding support for Fedora 23 - https://github.com/dotnet/cli/issues/2958
So closing this issue.