Search This Blog

2024/10/20

Ubuntu: Troubleshooting Installation of dotnet-sdk-8.0

If you try to install Dotnet 8.0 in Ubuntu you get following
error


The following packages have unmet dependencies: dotnet-host-7.0 :
Conflicts: dotnet-host E: Error, pkgProblemResolver::Resolve generated breaks,
this may be caused by held packages.

Lets Troubleshoot it

Remove all repositaries related to microsoft most of the time you added for mssql & vscode

sudo rm -f /etc/apt/sources.list.d/mssql-release.list
sudo rm /etc/apt/sources.list.d/microsoft-prod.list.save


Now remove all dotnet related installed packages

sudo apt purge dotnet-sdk* dotnet-host* dotnet* aspnetcore* netstandard*

Try installing again

sudo apt update
sudo apt install dotnet-sdk-8.0

You can remove this package as

sudo apt-get remove dotnet-sdk-6.0

You cam upgrade from this package by

sudo apt upgrade dotnet-sdk-8.0

Confirm installed packages
dotnet --info

You can confirm list of SDK
dotnet --list-sdk


List runtimes
dotnet --list-runtimes

No comments:

Post a Comment