-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can't install .NET6 runtime on Ubuntu 22.04 #19845
Comments
Were you using the Ubuntu feeds or the Microsoft feeds for finding the package? There can be issues if you mix the feeds (hence why we stopped producing the MS ones in later versions). Assigning to @MichaelSimons as he's probably more familiar with linux package installs. |
@NikolaMilosavljevic - Can you provide some guidance? TIA |
No idea. How do I check? |
I ran into this same problem trying to install
Note that 8.0 is from the microsoft source and 6.0 is from the ubuntu source. I want to keep my MS sources for vscode and mssql odbc, so I made an apt preferences file to select the ubuntu packages for dotnet to keep them consistent:
I removed all the dotnet packages and reinstalled, and now I have both runtimes available as expected:
|
@RussKie I see that you have Microsoft feed registered, so Ubuntu will try to obtain packages from both Ubuntu (Jammy) and Microsoft (PMC) feeds. This is an unsupported scenario as you would end up with a mix of packages and it won't work correctly as packages from these 2 feeds install to different paths. This issue offers solutions based on your intended experience: |
Old issue triage: Closing per Nikola's comment. |
I'm trying to install .NET 6 runtime on my Ubuntu (in WSL2)
If I run
sudo apt update && sudo apt install -y dotnet-sdk-6.0
on top of that I still get the same error:If I run
sudo apt update && sudo apt install -y dotnet-sdk-8.0
it seems to heal and I get both the SDKs but only one runtime installed:What's going on? How do I get .NET6 runtime installed without .NET8?
The text was updated successfully, but these errors were encountered: