Skip to content

Cannot install dotnet no matter what I try. #2836

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

Closed
tristonb2049 opened this issue Jun 5, 2019 · 4 comments
Closed

Cannot install dotnet no matter what I try. #2836

tristonb2049 opened this issue Jun 5, 2019 · 4 comments
Labels
needs-more-info Not enough information has been provided. Please share more detail as requested.

Comments

@tristonb2049
Copy link

tristonb2049 commented Jun 5, 2019

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: Linux Ubuntu 19.04 - x64

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.2 : Depends: aspnetcore-runtime-2.2 (>= 2.2.5) but it is not going to be installed
                  Depends: dotnet-runtime-2.2 (>= 2.2.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
@tristonb2049
Copy link
Author

Note: I'm running Mint 19.1, and have tried all of the ubuntu packages, as well as Debian just to be sure. All ended up with this same error.

@dagood
Copy link
Member

dagood commented Jun 7, 2019

Ubuntu 18.04's package seems like the one that will work for Mint 19.1. 18.04 has libicu60, which matches Mint 19.1's libicu60. Ubuntu 19.04 went on to libicu63.

(I used the linuxmintd/mint19-amd64 Docker image to check what Mint has, not completely sure if that's correct.)

The install error you're getting unfortunately doesn't give enough info to do anything about this, you have to follow the package dependency chain down manually to see what the root cause is. Can you run these for more info?

# This install command will show exactly which dependency can't be met.
sudo apt-get install dotnet-runtime-deps-2.2
# Shows the repositories you have configured. Source: https://askubuntu.com/a/741948
grep -r --include '*.list' '^deb ' /etc/apt/sources.list /etc/apt/sources.list.d/

@dagood dagood added the needs-more-info Not enough information has been provided. Please share more detail as requested. label Jun 7, 2019
@tristonb2049
Copy link
Author

tristonb2049 commented Jun 8, 2019

Hey thanks for your reply! Fortunately I was able to fix it: https://stackoverflow.com/questions/54065894/cannot-install-net-core-2-2-on-ubuntu-18-04l with this stack over flow answer and get it installed! Thanks again!

@karelz
Copy link
Member

karelz commented Jun 14, 2019

Seems to be addressed, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info Not enough information has been provided. Please share more detail as requested.
Projects
None yet
Development

No branches or pull requests

3 participants