diff --git a/src/linux/Packaging.Linux/install-from-source.sh b/src/linux/Packaging.Linux/install-from-source.sh index cf57321f9..124290dba 100755 --- a/src/linux/Packaging.Linux/install-from-source.sh +++ b/src/linux/Packaging.Linux/install-from-source.sh @@ -116,11 +116,21 @@ fi eval "$(sed -n 's/^ID=/distribution=/p' /etc/os-release)" eval "$(sed -n 's/^VERSION_ID=/version=/p' /etc/os-release | tr -d '"')" case "$distribution" in - debian | ubuntu) + ubuntu) $sudo_cmd apt update install_shared_packages apt install - # add dotnet package repository/signing key + # install dotnet packages and dependencies if needed + if [ -z "$(verify_existing_dotnet_installation)" ]; then + $sudo_cmd apt update + $sudo_cmd apt install dotnet6 -y + fi + ;; + debian) + $sudo_cmd apt update + install_shared_packages apt install + + # add and prioritize dotnet package repository/signing key $sudo_cmd apt update && $sudo_cmd apt install wget -y curl -LO https://packages.microsoft.com/config/"$distribution"/"$version"/packages-microsoft-prod.deb $sudo_cmd dpkg -i packages-microsoft-prod.deb