Skip to content

Install information is incorrect for dotnet on Ubuntu 20.04LTS with WSL2 #19388

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
SquidPony opened this issue Jul 9, 2020 · 0 comments · Fixed by #19907
Closed

Install information is incorrect for dotnet on Ubuntu 20.04LTS with WSL2 #19388

SquidPony opened this issue Jul 9, 2020 · 0 comments · Fixed by #19907
Assignees

Comments

@SquidPony
Copy link

Information is incomplete (at least on WSL2 and Ubuntu 20.04LTS)

sudo apt-get update; \ sudo apt-get install -y apt-transport-https && \ sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-3.1

gives the error

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-3.1 : Depends: dotnet-runtime-3.1 (>= 3.1.1) but it is not going to be installed
                  Depends: aspnetcore-runtime-3.1 (>= 3.1.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

This is with a new WSL2 and Windows Store provided Ubuntu 20.04LTS setup.

Following the troubleshooting advice from 1822 and 3328 led me to believe that this is a long-standing issue with the way the Ubuntu system is set up, causing the instructions in the referenced page to be incorrect in some cases.

Going down a rabbit hole of many many issues similar to this, I found the following which resolved this issue: 4360

Image of above comment for ease of discussion:
image

The docs should be updated to indicate that the above might be needed.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants