Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing dotnet core in ubuntu end up having dependency conflicts

I did install dotnetcore in ubuntu without any problem earlier. But sometime I end up having dependency issues with in earlier version but always with ubuntu 20.04.

I am following the guidance provided here

Whenever I tried to install sudo apt-get install dotnet-sdk-3.1 it shows dependency issues:

The following packages have unmet dependencies:

dotnet-sdk-3.1 : Depends: dotnet-runtime-3.1 (>= 3.1.3) but it is not going to be installed

Depends: aspnetcore-runtime-3.1 (>= 3.1.3) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

I tried to add every packages one by one and eventually sudo apt install dotnet-sdk-3.1 dotnet-runtime-3.1 aspnetcore-runtime-3.1 dotnet-runtime-deps-3.1.

The following packages have unmet dependencies:
 dotnet-runtime-deps-3.1 : Depends: libicu but it is not installable or
                                    libicu63 but it is not installable or
                                    libicu60 but it is not installable or
                                    libicu57 but it is not installable or
                                    libicu55 but it is not installable or
                                    libicu52 but it is not installable

Now apt-cache policy libicu (or any libicu63 etc) show does not have installation candidate.

libicu:
Installed: (none)
Candidate: (none)
Version table:

I am not sure why is this happening and how to fix it.

like image 453
Rahul Chakrabarty Avatar asked Mar 02 '23 12:03

Rahul Chakrabarty


1 Answers

It's being discussed here - https://github.com/dotnet/core/issues/4616 (which is a duplicate of https://github.com/dotnet/core/issues/4360)

You can do the following work-around:

Steps:

$ wget http://ftp.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u4_amd64.deb
$ sudo dpkg -i libicu57_57.1-6+deb9u4_amd64.deb
$ sudo apt install dotnet-sdk-3.1

$ dotnet --version
3.1.201

Works for me

like image 53
nZeus Avatar answered Mar 05 '23 02:03

nZeus