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?
@leecow are there special steps needed for libicu57?
A 'generic' 17.10 install should already have libicu57 installed. If not, apt install libicu57 will do the trick. Hopefully this will be fully ironed out once 17.10 packages are building for the 2.0 release branch.
/cc @ianhays
Can confirm with Ubuntu/Mate bionic + MS Repo https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod / artful That when using "Synaptic Package Manager":
- mark dotnet-sdk-2.1.4 -> broken (due to unresolved dependency to dotnet-runtime-2.0.5)
- mark dotnet-runtime-2.0.5 leads to a green dotnet-sdk-2.1.4 but is broken itself
- selecting libcurl3 removes libcurl4 and SEVERAL dependencies of that like virtualbox, cmake, sagemath :-o
- so I'd guess libcurl is the blocker issue, maybe someone could reproduce this (The Package Manager shows an error at 1st apply click, just retry when everything is green)
same to me in xubuntu 18.04

I've followed this steps:

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.1.105
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.
18.04 feed registration info has been added to the 2.0.7 release notes (2.1.105 SDK) and will make it to dot.net in the next day or so.
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.
Linux Mint 18.3
ruslan-N550JK ~ # apt-get install dotnet-sdk-2.1.105
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.1.105 : Depends: dotnet-runtime-2.0.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Hi ! I have the same issue on Ubuntu 17.10 installed today on an Azure VM. Is there any work arround ? Is it possible to install it without the package manager ?
I get this on Xenial:
cumpsd master S:2 U:2 ~/.dotfiles sudo apt-get install dotnet-sdk-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.1 : Depends: dotnet-runtime-2.1 (>= 2.1.0) but it is not going to be installed
Depends: aspnetcore-runtime-2.1 (>= 2.1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
cumpsd master S:2 U:2 ~/.dotfiles 100 sudo apt-get install dotnet-runtime-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-runtime-2.1 : Depends: dotnet-runtime-deps-2.1 (>= 2.1.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
cumpsd master S:2 U:2 ~/.dotfiles 100 sudo apt-get install dotnet-runtime-deps-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-runtime-deps-2.1 : Depends: libicu57 but it is not installable
E: Unable to correct problems, you have held broken packages.
cumpsd master S:2 U:2 ~/.dotfiles 100 sudo apt-get install libicu57
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libicu57 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libicu57' has no installation candidate
cumpsd master S:2 U:2 ~/.dotfiles 100
```
For reference, I have libicu55 which comes with Xenial. 57 is not available on Xenial, only starting at Artful.
libicu55 is already the newest version (55.1-7ubuntu0.4).
Depends: libicu60 but it is not installable :(
@CumpsD - I'm wondering if you need to clean house, so to speak. Can you run du --max-depth=2 /usr/share/dotnet/shared and let me know what versions are installed?
I've cleaned house, reinstalled WSL and now it's fine
@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' replacing CODENAMEHERE with the code name of your OS (xenial for 16.04). This is the same command @fafg put, just with CODENAMEHERE subbed in. Then just run sudo apt-get update and everything should work.
i had similar problem for 18.04
in my case had errors:
The following packages have unmet dependencies:
dotnet-sdk-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.2) but it is not going to be installed
Depends: aspnetcore-runtime-2.1 (>= 2.1.2) but it is not going to be installed
at the end of the chain libicu60 requires for me
try use my comment https://github.com/dotnet/core-setup/issues/4247#issuecomment-409174218
just install the required version of libicu
I had this issue and found I didn't have the universe repo in my sources.list. You can add this using the following:
sudo add-apt-repository universe
sudo apt-get update
thanks @alansav! I also had to open several (random?) ports on our firewall. So I opend all ports targeting the external IP 13.80.10.205 (on port 11371)
And here is my final script putting it all together.
sudo add-apt-repository universe
sudo apt-get update
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893
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 update
sudo apt-get install apt-transport-https
sudo apt-get install aspnetcore-runtime-2.1
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
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.
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.