runtime: Unable to install dotnet-sdk on Ubuntu 17.10
@PabloRioseco commented on Mon Apr 16 2018
I am trying to install dotnet-sdk to then be able to work with Visual Studio Code with dotnet in ubuntu 17.10
S.O.: Ubuntu 17.10 64b Update: Lastest version.
I am performing the following procedure indicated by: https://www.microsoft.com/net/learn/get-started/linux/ubuntu17-10 but when I’m installed sdk, I get an error when installing dotnet-sdk:
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1.104
Reading list of packages ... Done
Creating dependency tree
Reading the status information ... Done
Do not can instal some pack. This may mean that
you asked for an impossible situation or, if you are using the distribution
unstable, that some necessary packages have not yet been created or are
They have taken out of «Incoming».
The following information can help resolve the situation:
The following packages have unfulfilled dependencies:
dotnet-sdk-2.1.104: It depends: dotnet-runtime-2.0.6 but it will not be installed
E: Problems could not be corrected, you have retained broken packages.
@richlander commented on Mon Apr 16 2018
PTAL @leecow
@leecow commented on Tue Apr 17 2018
I’ve confirmed the 17.10 repo is working correctly and was able to install dotnet-sdk-2.1.104 (we released 2.1.105 today). It may be that you need to do a little house cleaning. The easiest first step is to sudo apt-get remove dotnet-host. This will uninstall the host and all dependencies leaving you in a fairly clean state to try in re-install.
@Mayocampo commented on Thu Apr 19 2018
Hi @leecow , i have the same issue trying to install 2.1.105. Already executed sudo apt-get remove dotnet-host but error still there… What other steps can we follow to install core 2.0 ?
(i´m doing this process in order to install JetBrains Rider)… By the way, i’m using Linux Mint Sylvia (so, i suppose that instructions for Ubuntu 17 works seamlessly)
@Mayocampo commented on Thu Apr 19 2018
Followed instructions here https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.7-download.md
And still not working

@Mayocampo commented on Thu Apr 19 2018
Also tried to install only dotnet-runtime-2.0.7 and get this error
may@maylinux ~ $ sudo apt-get install dotnet-runtime-2.0.7
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios aún no se han creado o se
han sacado de «Incoming».
La siguiente información puede ayudar a resolver la situación:
Los siguientes paquetes tienen dependencias incumplidas:
dotnet-runtime-2.0.7 : Depende: libgssapi-krb5-2 (>= 1.14+dfsg) pero 1.13.2+dfsg-5ubuntu2 va a ser instalado
Depende: libicu57 pero no es instalable
Depende: dotnet-hostfxr-2.0.7 pero no va a instalarse
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
So, in english it says that: 2.0.7 depends on libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 will be installed 2.0.7 depends on libicu57 but it’s not installable (?) 2.07 depends on dotnet-hostfxr-2.0.7 but it will be not installed…
So… whats happening here?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 4
- Comments: 28 (5 by maintainers)
what I did, from the ubuntu 16 version to 17 the only thing that changes is xenial to artful, and the pattern keep to ubuntu 18 version, so just change from artful to bionic.
cheers.
I ran into the same problem trying to install it on Linux Mint 18.3. The above instructions didn’t work.
Instead I downloaded the libicu60 deb directly from here, installed it manually and then installed the SDK. That appears to have fixed it for me.
same to me in xubuntu 18.04
I’ve followed this steps:
I had this issue and found I didn’t have the universe repo in my sources.list. You can add this using the following:
Here do you have all the icu stuff to download the deb packages : http://security.ubuntu.com/ubuntu/pool/main/i/icu/
after select yours you need to download it (this is for net core 2.2) : wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu60_60.2-3ubuntu3_amd64.deb -P /tmp/
And then just install it : sudo dpkg -i /tmp/libicu60_60.2-3ubuntu3_amd64.deb .
Then you can follow the Net core 2.2 installation from Microsoft.
@Chemik27 I had the same problem. @fafg specifically put the commands for bionic (ubuntu 18.04). To fix this just disable/remove the ppa (https://packages.microsoft.com/ubuntu/18.04/prod or https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod) and run
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-CODENAMEHERE-prod CODENAMEHERE main" > /etc/apt/sources.list.d/dotnetdev.list'replacingCODENAMEHEREwith the code name of your OS (xenial for 16.04). This is the same command @fafg put, just withCODENAMEHEREsubbed in. Then just runsudo apt-get updateand everything should work.Managed to manually install the libicu55 manually by doing this:
and then installing it like this:
After that I can run the command:
Disclaimer: I really don’t know what I doing though 8-|
You’re welcome!
I think I’ve found the solution. I’m using version 16.04, and followed this link: linux prerequisites After installing several required packages, I’m able to install dotnet-sdk-2.1 on my Linux.
was running into this also on ubuntu 16.04, but the solution from @fafg works!
my error was: after running apt-get install dotnet-sdk-2.1.105
The following packages have unmet dependencies: dotnet-sdk-2.1.105 : Depends: dotnet-runtime-2.0.7 but it is not going to be installed
after running apt-get install dotnet-runtime-2.0.7 The following packages have unmet dependencies: dotnet-runtime-2.0.7 : Depends: libgssapi-krb5-2 (>= 1.14+dfsg) but 1.13.2+dfsg-5ubuntu2 is to be installed Depends: libicu57 but it is not installable Depends: dotnet-hostfxr-2.0.7 but it is not going to be installed E: Unable to correct problems, you have held broken packages.