dotnet 9 install fails due to aka.ms resolving to bing
CodedBeard opened this issue · 7 comments
Don't think this issue is directly the scripts fault, but seemed like the best place to report it.
When using dotnet-install.sh to install --channel 8.0
and prior, the install link correctly resolves to azureedge.net and the install completes fine:
dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Sdk/8.0.202/dotnet-sdk-8.0.202-linux-x64.tar.gz
but when attempting to install --channel 9.0
it instead resolves to a bing url which fails.
dotnet-install: Attempting to download using aka.ms link https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
curl: (7) Failed to connect to www.bing.com port 443 after 0 ms: Connection refused
Now the failure is likely due to our network having restrictions on bing.com, but it seemed a little odd that the aka.ms resolves to bing rather than directly to azureedge.net like all the other download pages do. Any chance this could be fixed by whomever is responsible?
My guess is this is because we're missing some of the URL links for the 9.0 channel. @rbhanda It looks like the dotnet/9.0/
links for the SDK and RIDs aren't in place for 9.0 yet - are they expected to be at this point in the release?
@baronfel, these links are already available and let customers install sdk with 9.0.100-preview.2.24157.14 (I checked it for Windows and Mac).
@CodedBeard could you run installation again with specifying -Verbose
parameter? The detailed log will help us to understand more about your specific case.
@YuliiaKovalova sure here's the verbose output
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
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: Normalized architecture: 'x64'.
dotnet-install: Calling: get_normalized_os
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Normalized OS: 'linux'.
dotnet-install: Calling: get_normalized_quality
dotnet-install: Normalized quality: ''.
dotnet-install: Calling: get_normalized_channel 9.0
dotnet-install: Normalized channel: '9.0'.
dotnet-install: Calling: get_normalized_product
dotnet-install: Normalized product: 'dotnet-sdk'.
dotnet-install: Calling: resolve_installation_path /usr/local/share/dotnet
dotnet-install: InstallRoot: '/usr/local/share/dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 9.0 x64
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: get_download_link_from_aka_ms
dotnet-install: Retrieving primary payload URL from aka.ms for channel: '9.0', quality: '', product: 'dotnet-sdk', os: 'linux', architecture: 'x64'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz true
dotnet-install: Failed to get HTTP header: 'https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz'.
dotnet-install: Received response: curl: (7) Failed to connect to www.bing.com port 443 after 1 ms: Connection refused
HTTP/1.1 302 Moved Temporarily
Server: Kestrel
Location: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
Request-Context: appId=cid-v1:7d63747b-487e-492a-872d-762362f77974
X-Response-Cache-Status: True
Content-Length: 0
Expires: Fri, 05 Apr 2024 15:29:23 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Fri, 05 Apr 2024 15:29:23 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
dotnet-install: The redirect location retrieved: 'https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz'.
dotnet-install: Retrieved primary payload URL from aka.ms link: 'https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz'.
dotnet-install: Downloading using legacy url will not be attempted.
dotnet-install: Version: '9.0'.
dotnet-install: Calling: get_specific_product_version 9.0 https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
dotnet-install: Calling: get_specific_product_version_url 9.0 true https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
dotnet-install: Constructed productVersion link: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url 9.0 false https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
dotnet-install: Constructed productVersion link: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/productVersion.txt
dotnet-install: Checking for the existence of https://www.bing.com?ref=aka&shorturl=dotnet/9.0/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Checking for the existence of https://www.bing.com?ref=aka&shorturl=dotnet/9.0/productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Failed to get the version using productVersion.txt file. Download link will be parsed instead.
dotnet-install: Calling: get_product_specific_version_from_download_link https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz 9.0
dotnet-install: Calling: is_dotnet_package_installed /usr/local/share/dotnet sdk linux
dotnet-install: Calling: combine_paths /usr/local/share/dotnet sdk
dotnet-install: combine_paths: root_path=/usr/local/share/dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /usr/local/share/dotnet/sdk linux
dotnet-install: combine_paths: root_path=/usr/local/share/dotnet/sdk
dotnet-install: combine_paths: child_path=linux
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/usr/local/share/dotnet/sdk/linux
dotnet-install: Generated 1 links.
dotnet-install: Link 0: aka.ms, linux, https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
dotnet-install: Calling: install_dotnet
dotnet-install: Archive path: /tmp/dotnet.YbzIijNkL
dotnet-install: Attempting to download using aka.ms link https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
dotnet-install: Calling: download https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz /tmp/dotnet.YbzIijNkL
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz /tmp/dotnet.YbzIijNkL
curl: (7) Failed to connect to www.bing.com port 443 after 0 ms: Connection refused
dotnet-install: Unable to download https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz. Failed to reach the server: connection timeout.
./dotnet-install.sh: line 1135: http_code: unbound variable
I also tried on a Linux ARM64 device and get the same bing link resolved.
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
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: Normalized architecture: 'arm64'.
dotnet-install: Calling: get_normalized_os
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Normalized OS: 'linux'.
dotnet-install: Calling: get_normalized_quality
dotnet-install: Normalized quality: ''.
dotnet-install: Calling: get_normalized_channel 9.0
dotnet-install: Normalized channel: '9.0'.
dotnet-install: Calling: get_normalized_product
dotnet-install: Normalized product: 'dotnet-sdk'.
dotnet-install: Calling: resolve_installation_path /usr/local/share/dotnet
dotnet-install: InstallRoot: '/usr/local/share/dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 9.0 arm64
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: get_download_link_from_aka_ms
dotnet-install: Retrieving primary payload URL from aka.ms for channel: '9.0', quality: '', product: 'dotnet-sdk', os: 'linux', architecture: 'arm64'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz true
dotnet-install: Failed to get HTTP header: 'https://aka.ms/dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz'.
dotnet-install: Received response: curl: (7) Failed to connect to www.bing.com port 443 after 1 ms: Couldn't connect to server
HTTP/1.1 302 Moved Temporarily
Server: Kestrel
Location: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz
Request-Context: appId=cid-v1:26ef1154-5995-4d24-ad78-ef0b04f11587
X-Response-Cache-Status: True
Content-Length: 0
Expires: Fri, 05 Apr 2024 15:26:08 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Fri, 05 Apr 2024 15:26:08 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
dotnet-install: The redirect location retrieved: 'https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz'.
dotnet-install: Retrieved primary payload URL from aka.ms link: 'https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz'.
dotnet-install: Downloading using legacy url will not be attempted.
dotnet-install: Version: '9.0'.
dotnet-install: Calling: get_specific_product_version 9.0 https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz
dotnet-install: Calling: get_specific_product_version_url 9.0 true https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz
dotnet-install: Constructed productVersion link: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url 9.0 false https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz
dotnet-install: Constructed productVersion link: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/productVersion.txt
dotnet-install: Checking for the existence of https://www.bing.com?ref=aka&shorturl=dotnet/9.0/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Checking for the existence of https://www.bing.com?ref=aka&shorturl=dotnet/9.0/productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Failed to get the version using productVersion.txt file. Download link will be parsed instead.
dotnet-install: Calling: get_product_specific_version_from_download_link https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz 9.0
dotnet-install: Calling: is_dotnet_package_installed /usr/local/share/dotnet sdk linux
dotnet-install: Calling: combine_paths /usr/local/share/dotnet sdk
dotnet-install: combine_paths: root_path=/usr/local/share/dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /usr/local/share/dotnet/sdk linux
dotnet-install: combine_paths: root_path=/usr/local/share/dotnet/sdk
dotnet-install: combine_paths: child_path=linux
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/usr/local/share/dotnet/sdk/linux
dotnet-install: Generated 1 links.
dotnet-install: Link 0: aka.ms, linux, https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz
dotnet-install: Calling: install_dotnet
dotnet-install: Zip path: /tmp/dotnet.6k0ssasQ4
dotnet-install: Attempting to download using aka.ms link https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz
dotnet-install: Calling: download https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz /tmp/dotnet.6k0ssasQ4
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz /tmp/dotnet.6k0ssasQ4
curl: (7) Failed to connect to www.bing.com port 443 after 2 ms: Couldn't connect to server
dotnet-install: Unable to download https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-arm64.tar.gz. Failed to reach the server: connection timeout.
./dotnet-install.sh: line 1125: http_code: unbound variable
Oh, is the quality the thing that's missing here? the 9.0 SDKs are only in preview and so you may need to ask the scripts to give your previews.
yep, that works! don't remember having to do that for the net8 previews, is this new? any chance the script could alert on this instead of just trying to go to a bing link
Hi @CodedBeard,
Thank you for provided verbosity log.
The trick happens after getting this response:
dotnet-install: Received response: curl: (7) Failed to connect to www.bing.com port 443 after 1 ms: Couldn't connect to server
, because in the normal code flow we expect to fall back to latest.version
:
install-scripts/src/dotnet-install.sh
Line 1403 in 6d0f3e5
But it ignores the curl error presence and mistakenly goes into this condition:
install-scripts/src/dotnet-install.sh
Line 1284 in 6d0f3e5
Since -quality
isn't specified initially, the scripts have to extract the needed information from the special file, e.g. https://dotnetcli.azureedge.net/dotnet/Sdk/9.0/latest.version
The ideal output has to look like that:
ykovalova@LAPTOP-ISR6SDTJ:~$ ./di.sh --channel "9.0" --verbose
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.
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: Normalized architecture: 'x64'.
dotnet-install: Calling: get_normalized_os
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Normalized OS: 'linux'.
dotnet-install: Calling: get_normalized_quality
dotnet-install: Normalized quality: ''.
dotnet-install: Calling: get_normalized_channel 9.0
dotnet-install: Normalized channel: '9.0'.
dotnet-install: Calling: get_normalized_product
dotnet-install: Normalized product: 'dotnet-sdk'.
dotnet-install: Calling: resolve_installation_path <auto>
dotnet-install: Calling: get_user_install_path
dotnet-install: resolve_installation_path: user_install_path=/home/ykovalova/.dotnet
dotnet-install: InstallRoot: '/home/ykovalova/.dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 9.0 x64
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: get_download_link_from_aka_ms
dotnet-install: Retrieving primary payload URL from aka.ms for channel: '9.0', quality: '', product: 'dotnet-sdk', os: 'linux', architecture: 'x64'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz true
dotnet-install: Received response: HTTP/1.1 302 Moved Temporarily
Server: Kestrel
Location: https://www.bing.com?ref=aka&shorturl=dotnet/9.0/dotnet-sdk-linux-x64.tar.gz
Request-Context: appId=cid-v1:9b037ab9-fa5a-4c09-81bd-41ffa859f01e
X-Response-Cache-Status: True
Content-Length: 0
Expires: Mon, 08 Apr 2024 09:05:01 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 08 Apr 2024 09:05:01 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
HTTP/2 200
cache-control: private
content-length: 0
content-type: text/html; charset=utf-8
p3p: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND"
set-cookie: MUID=0A67CD9FA50362B11D0AD9C4A4B863F9; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/; secure; SameSite=None
set-cookie: MUIDB=0A67CD9FA50362B11D0AD9C4A4B863F9; expires=Sat, 03-May-2025 09:05:01 GMT; path=/; HttpOnly
set-cookie: _EDGE_S=F=1&SID=2659743103216D340ED6606A029A6CF8; domain=.bing.com; path=/; HttpOnly
set-cookie: _EDGE_V=1; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/; HttpOnly
set-cookie: SRCHD=AF=NOFORM; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/
set-cookie: SRCHUID=V=2&GUID=E55B9A39303D46FD832AA7F7AFF8DC6E&dmnchg=1; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/
set-cookie: SRCHUSR=DOB=20240408; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/
set-cookie: SRCHHPGUSR=SRCHLANG=en; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/
set-cookie: _SS=SID=2659743103216D340ED6606A029A6CF8; domain=.bing.com; path=/
set-cookie: ULC=; domain=.bing.com; expires=Sun, 07-Apr-2024 09:05:01 GMT; path=/
set-cookie: _HPVN=CS=eyJQbiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyNC0wNC0wOFQwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIlRucyI6MCwiRGZ0IjpudWxsLCJNdnMiOjAsIkZsdCI6MCwiSW1wIjoxLCJUb2JuIjowfQ==; domain=.bing.com; expires=Sat, 03-May-2025 09:05:01 GMT; path=/
x-eventid: 6613b33d6ed94da88626f0950499432d
useragentreductionoptout: A7kgTC5xdZ2WIVGZEfb1hUoNuvjzOZX3VIV/BA6C18kQOOF50Q0D3oWoAm49k3BQImkujKILc7JmPysWk3CSjwUAAACMeyJvcmlnaW4iOiJodHRwczovL3d3dy5iaW5nLmNvbTo0NDMiLCJmZWF0dXJlIjoiU2VuZEZ1bGxVc2VyQWdlbnRBZnRlclJlZHVjdGlvbiIsImV4cGlyeSI6MTY4NDg4NjM5OSwiaXNTdWJkb21haW4iOnRydWUsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0=
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-cache: CONFIG_NOCACHE
accept-ch: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version
x-msedge-ref: Ref A: D59CA0A370674167AD471F76F05611F3 Ref B: LON04EDGE0816 Ref C: 2024-04-08T09:05:01Z
date: Mon, 08 Apr 2024 09:05:00 GMT
dotnet-install: The aka.ms link 'https://aka.ms/dotnet/9.0/dotnet-sdk-linux-x64.tar.gz' is not valid: received HTTP code: 302.
dotnet-install: Falling back to latest.version file approach.
dotnet-install: Calling: get_specific_version_from_version https://dotnetcli.azureedge.net/dotnet 9.0 x64 Latest
dotnet-install: Calling: get_version_from_latestversion_file https://dotnetcli.azureedge.net/dotnet 9.0 x64 false
dotnet-install: get_version_from_latestversion_file: latest url: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0/latest.version
dotnet-install: Calling: download https://dotnetcli.azureedge.net/dotnet/Sdk/9.0/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetcli.azureedge.net/dotnet/Sdk/9.0/latest.version
dotnet-install: get_specific_version_from_version: version_info=9.0.100-preview.2.24157.14
dotnet-install: Calling: get_version_from_latestversion_file_content
dotnet-install: Calling: get_specific_product_version https://dotnetcli.azureedge.net/dotnet 9.0.100-preview.2.24157.14
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.azureedge.net/dotnet 9.0.100-preview.2.24157.14 true
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.azureedge.net/dotnet 9.0.100-preview.2.24157.14 false
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/productVersion.txt
dotnet-install: Checking for the existence of https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: specific_version=9.0.100-preview.2.24157.14
dotnet-install: Calling: construct_download_link https://dotnetcli.azureedge.net/dotnet 9.0 x64 9.0.100-preview.2.24157.14 linux
dotnet-install: Calling: get_specific_product_version https://dotnetcli.azureedge.net/dotnet 9.0.100-preview.2.24157.14
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.azureedge.net/dotnet 9.0.100-preview.2.24157.14 true
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/sdk-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url https://dotnetcli.azureedge.net/dotnet 9.0.100-preview.2.24157.14 false
dotnet-install: Constructed productVersion link: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/productVersion.txt
dotnet-install: Checking for the existence of https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/sdk-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Constructed primary named payload URL: https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz
dotnet-install: Calling: construct_legacy_download_link https://dotnetcli.azureedge.net/dotnet 9.0 x64 9.0.100-preview.2.24157.14
dotnet-install: Calling: get_legacy_os_name
dotnet-install: Calling: get_legacy_os_name_from_platform ubuntu.22.04
dotnet-install: Distribution specific OS name and version could not be detected: UName = Linux
dotnet-install: Cound not construct a legacy_download_link; omitting...
dotnet-install: Calling: is_dotnet_package_installed /home/ykovalova/.dotnet sdk 9.0.100-preview.2.24157.14
dotnet-install: Calling: combine_paths /home/ykovalova/.dotnet sdk
dotnet-install: combine_paths: root_path=/home/ykovalova/.dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /home/ykovalova/.dotnet/sdk 9.0.100-preview.2.24157.14
dotnet-install: combine_paths: root_path=/home/ykovalova/.dotnet/sdk
dotnet-install: combine_paths: child_path=9.0.100-preview.2.24157.14
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/home/ykovalova/.dotnet/sdk/9.0.100-preview.2.24157.14
dotnet-install: Calling: get_specific_version_from_version https://dotnetbuilds.azureedge.net/public 9.0 x64 Latest
dotnet-install: Calling: get_version_from_latestversion_file https://dotnetbuilds.azureedge.net/public 9.0 x64 false
dotnet-install: get_version_from_latestversion_file: latest url: https://dotnetbuilds.azureedge.net/public/Sdk/9.0/latest.version
dotnet-install: Calling: download https://dotnetbuilds.azureedge.net/public/Sdk/9.0/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetbuilds.azureedge.net/public/Sdk/9.0/latest.version
dotnet-install: Calling: get_http_header_curl https://dotnetbuilds.azureedge.net/public/Sdk/9.0/latest.version false
dotnet-install: Unable to download https://dotnetbuilds.azureedge.net/public/Sdk/9.0/latest.version. Returned HTTP status code: 404.
dotnet-install: Download failed: https://dotnetbuilds.azureedge.net/public/Sdk/9.0/latest.version
dotnet-install: Failed to resolve the specific version number using feed 'https://dotnetbuilds.azureedge.net/public'
dotnet-install: Generated 1 links.
dotnet-install: Link 0: primary, 9.0.100-preview.2.24157.14, https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz
dotnet-install: Calling: install_dotnet
dotnet-install: Archive path: /tmp/dotnet.QJhrtMvX5
dotnet-install: Attempting to download using primary link https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz
dotnet-install: Calling: download https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz /tmp/dotnet.QJhrtMvX5
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz /tmp/dotnet.QJhrtMvX5
dotnet-install: Calling: machine_has curl
dotnet-install: Remote file https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz size is 239340473 bytes.
dotnet-install: Extracting archive from https://dotnetcli.azureedge.net/dotnet/Sdk/9.0.100-preview.2.24157.14/dotnet-sdk-9.0.100-preview.2.24157.14-linux-x64.tar.gz
dotnet-install: Calling: extract_dotnet_package /tmp/dotnet.QJhrtMvX5 /home/ykovalova/.dotnet 239340473
dotnet-install: Calling: copy_files_or_dirs_from_list /tmp/dotnet.oNo8OmiS3 /home/ykovalova/.dotnet false
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: copy_files_or_dirs_from_list /tmp/dotnet.oNo8OmiS3 /home/ykovalova/.dotnet true
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_linux_platform_name
dotnet-install: Calling: validate_remote_local_file_sizes /tmp/dotnet.QJhrtMvX5 239340473
dotnet-install: Downloaded file size is 239340473 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet-install: Temporary archive file /tmp/dotnet.QJhrtMvX5 was removed
dotnet-install: Checking installation: version = 9.0.100-preview.2.24157.14
dotnet-install: Calling: is_dotnet_package_installed /home/ykovalova/.dotnet sdk 9.0.100-preview.2.24157.14
dotnet-install: Calling: combine_paths /home/ykovalova/.dotnet sdk
dotnet-install: combine_paths: root_path=/home/ykovalova/.dotnet
dotnet-install: combine_paths: child_path=sdk
dotnet-install: Calling: combine_paths /home/ykovalova/.dotnet/sdk 9.0.100-preview.2.24157.14
dotnet-install: combine_paths: root_path=/home/ykovalova/.dotnet/sdk
dotnet-install: combine_paths: child_path=9.0.100-preview.2.24157.14
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/home/ykovalova/.dotnet/sdk/9.0.100-preview.2.24157.14
dotnet-install: Installed version is 9.0.100-preview.2.24157.14
dotnet-install: Calling: combine_paths /home/ykovalova/.dotnet
dotnet-install: combine_paths: root_path=/home/ykovalova/.dotnet
dotnet-install: combine_paths: child_path=
dotnet-install: Calling: get_absolute_path /home/ykovalova/.dotnet/
dotnet-install: Adding to current process PATH: `/home/ykovalova/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
So, it's a real bug from our side! Thank you very much for reporting it.
@GangWang01, could you handle the described case? Feel free to contact me offline if something isn't clear.
Hi @CodedBeard ,
The bug has been fixed. I will let you know when this change will be deployed.