I was trying to deploy an ASP.NET Core 2.2
application to a DigitalOcean
droplet running Ubuntu 18.04
. I followed the steps provided on the official documentation.
But I am getting the error.
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: dotnet-sdk-2.2 : Depends: aspnetcore-runtime-2.2 (>= 2.2.0) but it is not going to be installed Depends: dotnet-runtime-2.2 (>= 2.2.0) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Any help? I tried to get help from other forums and SO answer still no luck.
NET Core 2.2 is supported until December 23, 2019. After that time, . NET Core patch updates will no longer include updated packages of container images for . NET Core 2.2.
NET Core runtime allows you to run applications on Linux that were made with .
this is a known issue on GitHub
Developers have suggested different solutions as per my knowledge. I Suggest you to check the link.
The problem generally happends on the lack of libicu
. where is the version of libicu.
Below is the suggested solution for the version of DotNet-Core Sdk dotnet-sdk-2.2
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list' sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-2.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With