Amazon linux cannot be detected by install script
See original GitHub issueSteps to reproduce
- Spawn an elastic beanstalk instance with Amazon Linux. Current version is “64bit Amazon Linux 2017.03”.
wget https://dot.net/v1/dotnet-install.sh
bash dotnet-install.sh --verbose
Expected behavior
Install is successful
Actual behavior
Install fails. Verbose output:
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: calculate_vars
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.azureedge.net/dotnet LTS x64 Latest
dotnet-install: Calling: get_latest_version_info https://dotnetcli.azureedge.net/dotnet LTS x64 false
dotnet-install: get_latest_version_info: latest url: https://dotnetcli.blob.core.windows.net/dotnet/Sdk/LTS/latest.version
dotnet-install: Calling: download https://dotnetcli.blob.core.windows.net/dotnet/Sdk/LTS/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetcli.blob.core.windows.net/dotnet/Sdk/LTS/latest.version
dotnet-install: get_specific_version_from_version: version_info=af1e6684fd694616ec5070e1d05a7b501a98783f
1.0.4
dotnet-install: Calling: get_version_from_version_info
dotnet-install: specific_version=1.0.4
dotnet-install: Calling: construct_download_link https://dotnetcli.azureedge.net/dotnet LTS x64 1.0.4
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_distro_specific_os_name
dotnet-install: Calling: get_os_download_name_from_platform amzn.2017.03
dotnet-install: Distribution specific OS name and version could not be detected: amzn.2017.03
Environment data
dotnet --info
output:
Irrevelant as the issue is with the install script
Same issue happens when specifying --version 2.0.0
or --shared-runtime
. Can be worked around by specifying runtime as --runtime-id rhel.7
.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Install, Update, and Uninstall the AWS CLI version 1 on Linux
The following steps enable you to install the AWS CLI version 1 from the command line on any build of Linux or macOS....
Read more >Troubleshoot AWS CLI errors - AWS Command Line Interface
This error means that the operating system can't find the AWS CLI command. The installation might be incomplete or requires updating. Possible ...
Read more >Run commands on your Linux instance at launch
Pass user data to an Amazon Linux instance at launch time.
Read more >Troubleshoot connecting to your instance - AWS Documentation
The script is located at /opt/aws/bin/ on Amazon Linux 2 instances, and at /usr/share/ec2-instance-connect/ on Ubuntu instances.
Read more >Server Install on Amazon Linux AMI - Can't Generate Script
I am a commercial user of OpenVPN AS but I ran into this problem today and believe I found the solution. The problem...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Nezz @omajid @khyperia The https://dot.net/v1/dotnet-install.sh public location has been updated with this fix.
It still prints out the following errors, but it successfully installs.
Full verbose log:
Click to expand