Runtime: Broken packages for Ubuntu Server 18.04

Created on 30 Jul 2018  路  11Comments  路  Source: dotnet/runtime

Steps to reproduce

Follow the steps at https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/runtime-current

Expected behavior

Running sudo apt-get install aspnetcore-runtime-2.1 installs the package alongside its dependencies.

Actual behavior

apt fails with the following message:

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.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
E: Unable to correct problems, you have held broken packages.

Environment data

Ubuntu Server 18.04.1

area-Setup documentation

Most helpful comment

I had the same issue, adding the universe repository fixed it as @jBylinski mentioned

sudo add-apt-repository universe
sudo apt-get update

All 11 comments

Package feed has been tested fine so we need to look at your system. Do you have previous versions of .NET currently installed? You can check with dpkg --get-selections | grep dotnet.

I鈥檝e just found out I was missing the universe repository, it works fine after adding it to sources.list! Sorry, it鈥檚 all working now!

I had the same issue, adding the universe repository fixed it as @jBylinski mentioned

sudo add-apt-repository universe
sudo apt-get update

@leecow , is there a plan to update the .NET Core installation guide for Ubuntu 18.04 ?

Yep, looks like this is an issue with the default repo setup on Ubuntu Server so we'll find a place to add the appropriate content.

Linking to related/duplicate issue https://github.com/dotnet/core/issues/1822

we need to add sudo add-apt-repository universe to the installation instructions for Ubuntu 18.04

I got same issue , Even after running sudo add-apt-repository universe ..Net Core 2.0.9 runtime not installing on ubuntu

caused by powershell package.

Depends: libc6, libgcc1, libgssapi-krb5-2, liblttng-ust0, libstdc++6, zlib1g, libssl1.0.0, libicu55
Ubuntu 18.04 actually has libicu60

@leecow can you verify the instructions are updated and this can be closed?

@leecow verified, closing.

This is still not working and the work around of sudo add-apt-repository universe | sudo apt-get update did not work

sudo apt-get install -y powershell
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
powershell : Depends: liblttng-ust0 but it is not going to be installed
Depends: libssl1.0.0 but it is not installable
Depends: libicu60 but it is not installable
powershell-lts : Depends: liblttng-ust0 but it is not going to be installed
Depends: libssl1.0.0 but it is not installable
Depends: libicu60 but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

My version is the Microsoft WSL version.

uname -a
Linux SGP-LT-00006 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Because of this issue I cannot install .DotNET core and subsequently Powershell.

I find it bizare that this is still an issue over 2 years after the original post

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chunseoklee picture chunseoklee  路  3Comments

jzabroski picture jzabroski  路  3Comments

omajid picture omajid  路  3Comments

v0l picture v0l  路  3Comments

jkotas picture jkotas  路  3Comments