Skip to content

AL2023 Linux failed to install DotNet 10 on manual attempt #678

Closed

Description

@genifycom

Using AL2023 in WSL

NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.9.20250929"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/amazon-linux-2023/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/linux/"
SUPPORT_URL="https://aws.amazon.com/premiumsupport/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
VENDOR_NAME="AWS"
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2029-06-30"

First tried these instructions https://learn.microsoft.com/en-us/dotnet/core/install/linux-fedora?tabs=dotnet10

sudo dnf install dotnet-sdk-10.0
Last metadata expiration check: 0:25:01 ago on Sun Dec 14 20:35:48 2025.
No match for argument: dotnet-sdk-10.0
Error: Unable to find a match: dotnet-sdk-10.0

So next tried manual approach using these instructions https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual

wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --version latest

Result is:

dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz size is 239025495 bytes.
dotnet-install: Extracting archive from https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
./dotnet-install.sh: line 1056: find: command not found
./dotnet-install.sh: line 1057: find: command not found
dotnet-install: Downloaded file size is 239025495 bytes.
dotnet-install: The remote and local file sizes are equal.
dotnet_install: Error: Failed to verify the version of installed .NET Core SDK.
Installation source: https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz.
Installation location: /root/.dotnet.
Report the bug at https://github.com/dotnet/install-scripts/issues.
dotnet_install: Error: .NET Core SDK with version = 10.0.101 failed to install with an error.

Activity

  1. ellahathaway commented on Dec 16, 2025

    @ellahathaway
    Member

    @genifycom - Can you please rerun the install script with --verbose and respond with the output?

  2. genifycom commented on Dec 17, 2025

    @genifycom
    Author

    Certainly

    ./dotnet-install.sh --version latest --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
    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 LTS
    dotnet-install: Normalized channel: 'LTS'.
    dotnet-install: Calling: get_normalized_product
    dotnet-install: Normalized product: 'dotnet-sdk'.
    dotnet-install: Calling: resolve_installation_path
    dotnet-install: Calling: get_user_install_path
    dotnet-install: resolve_installation_path: user_install_path=/root/.dotnet
    dotnet-install: InstallRoot: '/root/.dotnet'.
    dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version latest LTS 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: 'LTS', quality: '', product: 'dotnet-sdk', os: 'linux', architecture: 'x64'.
    dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/LTS/dotnet-sdk-linux-x64.tar.gz'.
    dotnet-install: Calling: get_http_header https://aka.ms/dotnet/LTS/dotnet-sdk-linux-x64.tar.gz true
    dotnet-install: Calling: machine_has curl
    dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/LTS/dotnet-sdk-linux-x64.tar.gz true
    dotnet-install: Received response: HTTP/1.1 301 Moved Permanently
    Server: Kestrel
    Location: https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    Request-Context: appId=cid-v1:d94c0f68-64bf-4036-8409-a0e761bb7ee1
    X-Response-Cache-Status: True
    Content-Length: 0
    Expires: Wed, 17 Dec 2025 17:17:07 GMT
    Cache-Control: max-age=0, no-cache, no-store
    Pragma: no-cache
    Date: Wed, 17 Dec 2025 17:17:07 GMT
    Connection: keep-alive
    Strict-Transport-Security: max-age=31536000 ; includeSubDomains

    HTTP/1.1 200 OK
    Content-Type: application/octet-stream
    Content-MD5: I+w4M3jeVNvxg2F035cheQ==
    Last-Modified: Tue, 09 Dec 2025 17:45:36 GMT
    ETag: 0x8DE374AC2861495
    x-ms-request-id: b235c881-701e-0047-523b-690e3b000000
    x-ms-version: 2009-09-19
    x-ms-lease-status: unlocked
    x-ms-blob-type: BlockBlob
    Cache-Control: public, max-age=178007
    Date: Wed, 17 Dec 2025 17:17:07 GMT
    Connection: keep-alive
    Content-Length: 239025495
    Akamai-GRN: 0.9168c917.1765991827.5daf9221

    dotnet-install: The redirect location retrieved: 'https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz'.
    dotnet-install: Retrieved primary payload URL from aka.ms link: 'https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz'.
    dotnet-install: Downloading using legacy url will not be attempted.
    dotnet-install: Version: '10.0.101'.
    dotnet-install: Calling: get_specific_product_version 10.0.101 https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    dotnet-install: Calling: get_specific_product_version_url 10.0.101 true https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    dotnet-install: Constructed productVersion link: https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/sdk-productVersion.txt
    dotnet-install: Calling: get_specific_product_version_url 10.0.101 false https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    dotnet-install: Constructed productVersion link: https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/productVersion.txt
    dotnet-install: Checking for the existence of https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/sdk-productVersion.txt
    dotnet-install: Calling: machine_has curl
    dotnet-install: Calling: is_dotnet_package_installed /root/.dotnet sdk 10.0.101
    dotnet-install: Calling: combine_paths /root/.dotnet sdk
    dotnet-install: combine_paths: root_path=/root/.dotnet
    dotnet-install: combine_paths: child_path=sdk
    dotnet-install: Calling: combine_paths /root/.dotnet/sdk 10.0.101
    dotnet-install: combine_paths: root_path=/root/.dotnet/sdk
    dotnet-install: combine_paths: child_path=10.0.101
    dotnet-install: is_dotnet_package_installed: dotnet_package_path=/root/.dotnet/sdk/10.0.101
    dotnet-install: Generated 1 links.
    dotnet-install: Link 0: aka.ms, 10.0.101, https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    dotnet-install: Calling: install_dotnet
    dotnet-install: Archive path: /tmp/dotnet.eRgKasiTQ
    dotnet-install: Attempting to download using aka.ms link https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    dotnet-install: Calling: download https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz /tmp/dotnet.eRgKasiTQ
    dotnet-install: Calling: machine_has curl
    dotnet-install: Calling: downloadcurl https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz /tmp/dotnet.eRgKasiTQ
    dotnet-install: Calling: machine_has curl
    dotnet-install: Remote file https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz size is 239025495 bytes.
    dotnet-install: Extracting archive from https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz
    dotnet-install: Calling: extract_dotnet_package /tmp/dotnet.eRgKasiTQ /root/.dotnet 239025495
    dotnet-install: Calling: copy_files_or_dirs_from_list /tmp/dotnet.bmOkWJOa4 /root/.dotnet false
    dotnet-install: Calling: get_cp_options false
    ./dotnet-install.sh: line 1056: find: command not found
    dotnet-install: Calling: copy_files_or_dirs_from_list /tmp/dotnet.bmOkWJOa4 /root/.dotnet true
    dotnet-install: Calling: get_cp_options true
    ./dotnet-install.sh: line 1057: find: command not found
    dotnet-install: Calling: validate_remote_local_file_sizes /tmp/dotnet.eRgKasiTQ 239025495
    dotnet-install: Downloaded file size is 239025495 bytes.
    dotnet-install: The remote and local file sizes are equal.
    dotnet-install: Temporary archive file /tmp/dotnet.eRgKasiTQ was removed
    dotnet-install: Checking installation: version = 10.0.101
    dotnet-install: Calling: is_dotnet_package_installed /root/.dotnet sdk 10.0.101
    dotnet-install: Calling: combine_paths /root/.dotnet sdk
    dotnet-install: combine_paths: root_path=/root/.dotnet
    dotnet-install: combine_paths: child_path=sdk
    dotnet-install: Calling: combine_paths /root/.dotnet/sdk 10.0.101
    dotnet-install: combine_paths: root_path=/root/.dotnet/sdk
    dotnet-install: combine_paths: child_path=10.0.101
    dotnet-install: is_dotnet_package_installed: dotnet_package_path=/root/.dotnet/sdk/10.0.101
    dotnet_install: Error: Failed to verify the version of installed .NET Core SDK.
    Installation source: https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.101/dotnet-sdk-10.0.101-linux-x64.tar.gz.
    Installation location: /root/.dotnet.
    Report the bug at https://github.com/dotnet/install-scripts/issues.
    dotnet_install: Error: .NET Core SDK with version = 10.0.101 failed to install with an error.

  3. ellahathaway commented on Dec 17, 2025

    @ellahathaway
    Member

    ./dotnet-install.sh: line 1057: find: command not found.

    You need to install findutils. I verified this locally by uninstalling findutils, and it resulted in the same error you’re experiencing. Reinstalling it resolved the issue.

  4. genifycom commented on Dec 18, 2025

    @genifycom
    Author

    Awesome, thanks Ella. Still getting used to Linux.

    Perhaps the script could do one of its checks (like checking for curl) and include findutils in that part?

    Like "dotnet-install: Calling: machine_has findutils"

  5. ellahathaway commented on Dec 18, 2025

    @ellahathaway
    Member

    No problem!

    Perhaps the script could do one of its checks (like checking for curl) and include findutils in that part?

    Thanks for your suggestion. I agree—it would be really helpful for the script to handle situations like this a bit more smoothly. Right now, though, the scripts are in maintenance mode, so we're mostly focused on fixing urgent bugs and helping out with any issues that come up. Because of that, we probably won’t be able to tackle this improvement at the moment. That said, you’re more than welcome to open an issue or PR if you’d like—we’re always happy to take a look and triage suggestions.

  6. Frulfump commented on Dec 18, 2025

    @Frulfump

    No problem!

    Perhaps the script could do one of its checks (like checking for curl) and include findutils in that part?

    Thanks for your suggestion. I agree—it would be really helpful for the script to handle situations like this a bit more smoothly. Right now, though, the scripts are in maintenance mode, so we're mostly focused on fixing urgent bugs and helping out with any issues that come up. Because of that, we probably won’t be able to tackle this improvement at the moment. That said, you’re more than welcome to open an issue or PR if you’d like—we’re always happy to take a look and triage suggestions.

    Oh how come they are in maintenance mode? Any news about when they would leave maintenance mode?

  7. genifycom commented on Dec 19, 2025

    @genifycom
    Author

    One more question please Ella

    The default manual install of dotnet 10 i.e. ./dotnet-install.sh --version latest
    installs to /root/.dotnet/sdk/10.0.101
    and in my case neither of these report this installation:

    dnf list installed | grep "dotnet"
    or
    dotnet --info

    OTOH

    The default install of dotnet 8 i.e. sudo dnf install dotnet-sdk-8.0
    install to /usr/lib64/dotnet/sdk/8.0.117

    Both dnf and dotnet see this installation.

    Is this intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions