Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken packages for Ubuntu Server 18.04 #3262

Closed
jbyl opened this issue Jul 30, 2018 · 11 comments
Closed

Broken packages for Ubuntu Server 18.04 #3262

jbyl opened this issue Jul 30, 2018 · 11 comments
Assignees
Labels
area-Setup documentation Documentation bug or enhancement, does not impact product or test code

Comments

@jbyl
Copy link

jbyl commented Jul 30, 2018

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

@leecow
Copy link
Member

leecow commented Jul 31, 2018

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.

@jbyl
Copy link
Author

jbyl commented Jul 31, 2018

I’ve just found out I was missing the universe repository, it works fine after adding it to sources.list! Sorry, it’s all working now!

@mandrewbot3k
Copy link

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

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

@rakeshsinghranchi
Copy link
Member

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

@leecow
Copy link
Member

leecow commented Aug 1, 2018

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.

@joshfree
Copy link
Member

joshfree commented Aug 1, 2018

Linking to related/duplicate issue dotnet/core#1822

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

@KhalilMohammad
Copy link

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

@kartas39
Copy link

kartas39 commented Nov 7, 2018

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

@dagood
Copy link
Member

dagood commented Feb 27, 2019

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

@dagood
Copy link
Member

dagood commented Nov 20, 2019

@leecow verified, closing.

@dagood dagood closed this as completed Nov 20, 2019
@msftgits msftgits transferred this issue from dotnet/core-setup Jan 30, 2020
@TomHowarth
Copy link

TomHowarth commented Nov 2, 2020

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

@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Setup documentation Documentation bug or enhancement, does not impact product or test code
Projects
None yet
Development

No branches or pull requests

9 participants