Unable to update from v13.6
I've been away for a few weeks, so hadn't been caught up with the recent major release of v14 and subsequent updates following that. I have a Raspberry Pi 3 running Raspbian (Buster) which is still on Technitium 13.6.
When trying to use the automated installer to update, as I always do, it fails fairly quickly:
===============================
Technitium DNS Server Installer
===============================
Installing ASP.NET Core Runtime...
Failed to install ASP.NET Core Runtime. Please check '/etc/dns/install.log' for details.
Checking /etc/dns/install.log shows that 9.0.11 of .NET Core Runtime is installed as it should be:
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: 'arm'.
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 aspnetcore
dotnet-install: Normalized product: 'aspnetcore-runtime'.
dotnet-install: Calling: resolve_installation_path /opt/dotnet
dotnet-install: InstallRoot: '/opt/dotnet'.
dotnet-install: Calling: get_normalized_architecture_for_specific_sdk_version Latest 9.0 arm
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: 'aspnetcore-runtime', os: 'linux', architecture: 'arm'.
dotnet-install: Constructed aka.ms link: 'https://aka.ms/dotnet/9.0/aspnetcore-runtime-linux-arm.tar.gz'.
dotnet-install: Calling: get_http_header https://aka.ms/dotnet/9.0/aspnetcore-runtime-linux-arm.tar.gz true
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: get_http_header_curl https://aka.ms/dotnet/9.0/aspnetcore-runtime-linux-arm.tar.gz true
dotnet-install: Received response: HTTP/1.1 301 Moved Permanently
Server: Kestrel
Location: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-runtime-9.0.11-linux-arm.tar.gz
Request-Context: appId=cid-v1:d94c0f68-64bf-4036-8409-a0e761bb7ee1
X-Response-Cache-Status: True
Content-Length: 0
Expires: Tue, 16 Dec 2025 02:18:03 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Dec 2025 02:18:03 GMT
Connection: keep-alive
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-MD5: Y9jQEZ7pF5PD5w3QbnGPug==
Last-Modified: Tue, 11 Nov 2025 11:24:42 GMT
ETag: 0x8DE2114E8D1277E
x-ms-request-id: 9afa5b1c-b01e-0083-2b2f-6e7b02000000
x-ms-version: 2009-09-19
x-ms-lease-status: unlocked
x-ms-blob-type: BlockBlob
Cache-Control: public, max-age=862948
Date: Tue, 16 Dec 2025 02:18:03 GMT
Connection: keep-alive
Content-Length: 42160343
Akamai-GRN: 0.1cadfc3e.1765851483.6d89cd1
dotnet-install: The redirect location retrieved: 'https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-runtime-9.0.11-linux-arm.tar.gz'.
dotnet-install: Retrieved primary payload URL from aka.ms link: 'https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-runtime-9.0.11-linux-arm.tar.gz'.
dotnet-install: Downloading using legacy url will not be attempted.
dotnet-install: Version: '9.0.11'.
dotnet-install: Calling: get_specific_product_version 9.0.11 https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-runtime-9.0.11-linux-arm.tar.gz
dotnet-install: Calling: get_specific_product_version_url 9.0.11 true https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-runtime-9.0.11-linux-arm.tar.gz
dotnet-install: Constructed productVersion link: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-productVersion.txt
dotnet-install: Calling: get_specific_product_version_url 9.0.11 false https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-runtime-9.0.11-linux-arm.tar.gz
dotnet-install: Constructed productVersion link: https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/productVersion.txt
dotnet-install: Checking for the existence of https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.11/aspnetcore-productVersion.txt
dotnet-install: Calling: machine_has curl
dotnet-install: Calling: is_dotnet_package_installed /opt/dotnet shared/Microsoft.AspNetCore.App 9.0.11
dotnet-install: Calling: combine_paths /opt/dotnet shared/Microsoft.AspNetCore.App
dotnet-install: combine_paths: root_path=/opt/dotnet
dotnet-install: combine_paths: child_path=shared/Microsoft.AspNetCore.App
dotnet-install: Calling: combine_paths /opt/dotnet/shared/Microsoft.AspNetCore.App 9.0.11
dotnet-install: combine_paths: root_path=/opt/dotnet/shared/Microsoft.AspNetCore.App
dotnet-install: combine_paths: child_path=9.0.11
dotnet-install: is_dotnet_package_installed: dotnet_package_path=/opt/dotnet/shared/Microsoft.AspNetCore.App/9.0.11
dotnet-install: ASP.NET Core Runtime with version '9.0.11' is already installed.
Worth noting that this is on subsequent attempts, the initial attempt showed it being installed:
dotnet-install: Installation finished successfully.
Trying the automated updater again simply gives the same error repeatedly, suggesting there was an issue installing .NET 9 when it's not true. There was another issue that mentioned this, #1510, but that was being done in Proxmox and subsequently resolved using a command not available to me. I suspect that it's just not possible to update on Buster, but this page suggests that it should still work on Buster, unless it hasn't been updated.
Thanks for the details. It seems that you have .NET runtime installed using package manager (apt-get) earlier so this script is unable to proceed. You need to either manually install the ASP.NET Runtime using package manager or remove all dotnet packages and let the install script manage the installation.
You can also run dotnet --info command to know how its installed.
Thanks for the details. It seems that you have .NET runtime installed using package manager (apt-get) earlier so this script is unable to proceed. You need to either manually install the ASP.NET Runtime using package manager or remove all dotnet packages and let the install script manage the installation.
I never installed .NET myself. It was installed, years ago, by the automated installer for Technitium DNS on what was at the time a fresh clean install of Raspbian OS. For my sanity, I just checked the history and this is right at the very top:
sludge@pi1 ~ $ history
1 sudo nano /etc/ssh/sshd_config
2 sudo systemctl restart sshd
3 exit
4 curl -sSL https://download.technitium.com/dns/install.sh | sudo bash
I've been updating it that same way ever since.
As I mentioned in the first comment of this issue, the first attempt at upgrading from 13.6 to the latest did show in /etc/dns/install.log that it went through the process of installing 9.0.11 and then finished by explicitly stating dotnet-install: Installation finished successfully..
Subsequent attempts show the install log I provided, where it confirms that it is already installed (because the automated installer installed it).
Either way, to be complete, I checked dotnet --info and this is what it returns:
Failed to load /opt/dotnet/host/fxr/9.0.11/libhostfxr.so, error: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /opt/dotnet/host/fxr/9.0.11/libhostfxr.so)
The library libhostfxr.so was found, but loading it from /opt/dotnet/host/fxr/9.0.11/libhostfxr.so failed
- Installing .NET prerequisites might help resolve this problem.
https://go.microsoft.com/fwlink/?linkid=2063370
I know less than nothing about .NET or how it's installation impacts things, but I can safely assume that that isn't the output I should be getting. I'll not touch anything else with it until I can get some feedback from yourself.
I never installed .NET myself. It was installed, years ago, by the automated installer for Technitium DNS on what was at the time a fresh clean install of Raspbian OS. For my sanity, I just checked the history and this is right at the very top:
Thanks for confirming that you have not installed .NET runtime using package manager. The .NET install script gives similar error when .NET is installed using package manager so in many cases its that reason.
From the error message that dotnet --info command gave, it looks like some dependency is missing and thus the command is failing to run. The DNS server's install script uses the same command so its unable to figure out if the runtime is installed or not.
I guess the reason for the missing dependency may be due to older Raspbian OS that you have which does not have that dependency available. I have the DNS server deployed using Raspbian OS too and did not see this issue, probably due to it being a newer release.
Try the solution given here and see if installing the dependency makes the dotnet --info command work. Once the command works, the DNS server should upgrade without issues.