-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Install dotnet-sdk-3.1 on WSL with Ubuntu 20.04 tells me "Unable to correct problems, you have held broken packages" #4616
Comments
After manually finding libicu here http://ftp.us.debian.org/debian/pool/main/i/icu/, and fetching this version: libicu57_57.1-6+deb9u4_amd64.deb and installing it, apt now installs dotnet-sdk-3.1. Steps:
$ dotnet --version
3.1.201 I actually first tried to do
which gave me same error as mentioned in the issue "you have held broken packages". Is there any reason why this isn't mentioned somehow, in the documentation under "Troubleshooting the package manager": https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-2004#troubleshoot-the-package-manager? Am I doing something wrong? I would like, still to know. |
@leecow can you take a look at this issue? |
We don't have packages published yet that support 20.04, there are some workarounds in #4360. |
Duplicate of #4360 |
first option worked for me..!! NICE!!!!! :) :) |
@mslot Your fix worked perfectly. Thank you! |
@mslot Works fine! +1 |
Works for me on Win10 WSL~~👍 |
Coming from a Debian bullseye system, this workaround works fine, just to point out though, I've noticed some CVEs with that version:
But
|
@mslot Perfect, your fix worked for me as well |
Saved my day ! thanks @mslot |
have followed this documentation to try to install dotnet sdk 3.1 on WSL (Ubuntu 20.04): https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-2004. I get an error saying I have broken packages.
I am on
On wsl 1 (I think, when running wsl -v or wsl --version in a powershell, it gives me nothing.). My Windows information is:
I have done these steps:
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-3.1
When I run step 6, i get this error
If i step "down the line" doing:
sudo apt install dotnet-runtime-3.1
Which throws this error:
Then doing this:
sudo apt install dotnet-runtime-3.1
which gives me this errorIt can't install the correct libicu. I haven't tried to install one of the icu libraries, because i dont know which to install.
Is this not possible when running Ubuntu 20.04 on WSL 1 on Windows 10? Or am I missing something?
The text was updated successfully, but these errors were encountered: