Skip to content

Install using channel-only on Mac M4 for dotnet 10 fails #685

@tillig

Description

@tillig

When using the dotnet-install.sh on a Mac M4 and only specifying the channel as dotnet 10, the error Failed to resolve the exact version number. comes up due to a missing file at both https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version and https://ci.dot.net/public/Sdk/10/latest.version.

This looks similar to #461 where the aka.ms link resolves to Bing instead of returning a file for https://aka.ms/dotnet/10/dotnet-sdk-osx-arm64.tar.gz.

Verbose logs here:

[09:53] pwsh> bash ~/Downloads/dotnet-install.sh -c 10 --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: 'arm64'.
dotnet-install: Calling: get_normalized_os
dotnet-install: Calling: get_current_os_name
dotnet-install: Normalized OS: 'osx'.
dotnet-install: Calling: get_normalized_quality
dotnet-install: Normalized quality: ''.
dotnet-install: Calling: get_normalized_channel 10
dotnet-install: Normalized channel: '10'.
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=/Users/travis.illig/.dotnet
dotnet-install: InstallRoot: '/Users/travis.illig/.dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 10 arm64
dotnet-install: Calling: get_current_os_name
dotnet-install: Calling: get_download_link_from_aka_ms
dotnet-install: Retrieving primary payload URL from aka.ms for channel: '10', quality: '', product: 'dotnet-sdk', os: 'osx', architecture: 'arm64'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/10/dotnet-sdk-osx-arm64.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/10/dotnet-sdk-osx-arm64.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/10/dotnet-sdk-osx-arm64.tar.gz true
dotnet-install: Received response: HTTP/1.1 302 Moved Temporarily
Server: Kestrel
Location: https://www.bing.com?ref=aka&shorturl=dotnet/10/dotnet-sdk-osx-arm64.tar.gz
Request-Context: appId=cid-v1:d94c0f68-64bf-4036-8409-a0e761bb7ee1
X-Response-Cache-Status: False
Content-Length: 0
Expires: Wed, 04 Mar 2026 17:54:05 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 04 Mar 2026 17:54:05 GMT
Connection: close
Strict-Transport-Security: max-age=31536000 ; includeSubDomains

HTTP/2 200
content-type: text/html; charset=utf-8
cache-control: private
x-eventid: 69a871bd5c1f4893a6e47cf74ecf3994
useragentreductionoptout: A7kgTC5xdZ2WIVGZEfb1hUoNuvjzOZX3VIV/BA6C18kQOOF50Q0D3oWoAm49k3BQImkujKILc7JmPysWk3CSjwUAAACMeyJvcmlnaW4iOiJodHRwczovL3d3dy5iaW5nLmNvbTo0NDMiLCJmZWF0dXJlIjoiU2VuZEZ1bGxVc2VyQWdlbnRBZnRlclJlZHVjdGlvbiIsImV4cGlyeSI6MTY4NDg4NjM5OSwiaXNTdWJkb21haW4iOnRydWUsImlzVGhpcmRQYXJ0eSI6dHJ1ZX0=
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: unload=()
p3p: CP="NON UNI COM NAV STA LOC CURa DEVa PSAa PSDa OUR IND"
x-frame-options: SAMEORIGIN
content-length: 0
date: Wed, 04 Mar 2026 17:54:05 GMT
set-cookie: MUID=18C5E682541A6BBC2423F19055016AFE; domain=.bing.com; expires=Mon, 29-Mar-2027 17:54:05 GMT; path=/; secure; SameSite=None
set-cookie: MUIDB=18C5E682541A6BBC2423F19055016AFE; expires=Mon, 29-Mar-2027 17:54:05 GMT; path=/; HttpOnly
set-cookie: _EDGE_S=F=1&SID=32B20A925A7B6DC618921D805B606CDE; domain=.bing.com; path=/; HttpOnly
set-cookie: _EDGE_V=1; domain=.bing.com; expires=Mon, 29-Mar-2027 17:54:05 GMT; path=/; HttpOnly
set-cookie: SRCHD=AF=NOFORM; domain=.bing.com; expires=Sat, 04-Mar-2028 17:54:05 GMT; path=/
set-cookie: SRCHUID=V=2&GUID=61F59F5693F543F3BAC1F34D84ED1F74&dmnchg=1; domain=.bing.com; expires=Sat, 04-Mar-2028 17:54:05 GMT; path=/
set-cookie: SRCHUSR=DOB=20260304; domain=.bing.com; expires=Sat, 04-Mar-2028 17:54:05 GMT; path=/
set-cookie: SRCHHPGUSR=SRCHLANG=en&IG=B07A4611B3614B4089A6F514104D4029; domain=.bing.com; expires=Sat, 04-Mar-2028 17:54:05 GMT; path=/
set-cookie: _SS=SID=32B20A925A7B6DC618921D805B606CDE; domain=.bing.com; path=/
set-cookie: ULC=; domain=.bing.com; expires=Tue, 03-Mar-2026 17:54:05 GMT; path=/
set-cookie: _HPVN=CS=eyJQbiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyNi0wMy0wNFQwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIlRucyI6MCwiRGZ0IjpudWxsLCJNdnMiOjAsIkZsdCI6MCwiSW1wIjoxLCJUb2JuIjowfQ==; domain=.bing.com; expires=Sat, 04-Mar-2028 17:54:05 GMT; path=/
alt-svc: h3=":443"; ma=93600
x-cdn-traceid: 0.06456768.1772646845.8d2d809
content-security-policy: script-src https: 'strict-dynamic' 'report-sample' 'wasm-unsafe-eval' 'nonce-gD8JmbXC56AI6ePmbMkJKxAxU0x1Ixi3HEuw/Hwtd/w='; base-uri 'self';

dotnet-install: The aka.ms link 'https://aka.ms/dotnet/10/dotnet-sdk-osx-arm64.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://builds.dotnet.microsoft.com/dotnet 10 arm64 Latest
dotnet-install: Calling: get_version_from_latestversion_file https://builds.dotnet.microsoft.com/dotnet 10 arm64 false
dotnet-install: get_version_from_latestversion_file: latest url: https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version
dotnet-install: Calling: download https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version
dotnet-install: Calling: get_http_header_curl https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version false
dotnet-install: Unable to download https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version. Returned HTTP status code: 404.
dotnet-install: Download failed: https://builds.dotnet.microsoft.com/dotnet/Sdk/10/latest.version
dotnet-install: Failed to resolve the specific version number using feed 'https://builds.dotnet.microsoft.com/dotnet'
dotnet-install: Calling: get_specific_version_from_version https://ci.dot.net/public 10 arm64 Latest
dotnet-install: Calling: get_version_from_latestversion_file https://ci.dot.net/public 10 arm64 false
dotnet-install: get_version_from_latestversion_file: latest url: https://ci.dot.net/public/Sdk/10/latest.version
dotnet-install: Calling: download https://ci.dot.net/public/Sdk/10/latest.version
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: downloadcurl https://ci.dot.net/public/Sdk/10/latest.version
dotnet-install: Calling: get_http_header_curl https://ci.dot.net/public/Sdk/10/latest.version false
dotnet-install: Unable to download https://ci.dot.net/public/Sdk/10/latest.version. Returned HTTP status code: 404.
dotnet-install: Download failed: https://ci.dot.net/public/Sdk/10/latest.version
dotnet-install: Failed to resolve the specific version number using feed 'https://ci.dot.net/public'

Note that I can specify an exact version and things do work - dotnet-install.sh -v 10.0.103 for example works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions