-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 system with Ubuntu 22.04 where Microsoft packages are partially replaced by Canonical packages #73764
Comments
Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov Issue DetailsIs there an existing issue for this?
Describe the bugMy issue seems to be similar to this one except I'm on linux (popOS 22.04). When I attempt to install the dotnet sdk using When I do dotnet --info, I get: Not found
Host:
Version: 6.0.8
Architecture: x64
Commit: 55fb7ef977
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.8 [/usr/lib/dotnet/dotnet6-6.0.108/shared/Microsoft.NETCore.App] I've tried doing Here is my
Here is my path:
I've also tried removing all dotnet packages that showed up in Any help is appreciated. Expected BehaviorNo response Steps To ReproduceNo response Exceptions (if any)No response .NET Version6.0 Anything else?No response
|
It should look for SDK next to the |
I had exactly the same issue yesterday, following the same steps you did there. Eventually removed the packages again and used the dotnet-install.sh script to install it and that works (instructions can be found here: https://www.how2shout.com/linux/how-to-install-net-core-dotnet-on-ubuntu-22-04-lts/). |
Hello everyone, So I ended up solving the issue as well by doing the following: I would however recommend following the instructions in the StackOverflow post first as using the package manager might be the better solution. |
I can't reproduce this issue. Fresh install of popOS 22.04, installing the distro
|
This issue has been marked |
The issue seems to be resolved now |
I'd like to add my experience today. Yeah, I've had the exact problem and solved removing dotnet and reinstalling using the "scripted install". No other installation process worked (all I tried, seems to install - quite quick - but no SDK)
After that, dotnet started to work. Unfortunatelly, after turn off the computer and turn on again next day, SDK was out again. Reseaching, I found this [ https://github.com/dotnet/sdk/issues/27129#issuecomment-1214358108 ] solution that worked perfectly. Don't know if it's the right solution, but makes sense. |
This is a duplicate of dotnet/core#7699 - that's the canonical reference on how to deal with the problems in question. |
Is there an existing issue for this?
Describe the bug
My issue seems to be similar to this one except I'm on linux (popOS 22.04).
Summing up the problem - when I attempted to use
dotnet watch run
today, I got the* You intended to execute a .NET SDK command: No .NET SDKs were found.
message.When I attempt to install the dotnet sdk using
sudo apt install dotnet-sdk-6.0
I getdotnet-sdk-6.0 is already the newest version (6.0.400-1).
When I do dotnet --info, I get:
I've tried doing
whereis dotnet
and adding all those paths to my $PATH but it didn't solve my problem. It was working just fine yesterday. Today when I got on the computer, I ran system and vscode updates - I don't know if that caused the problem.Here is my
whereis dotnet
:Here is my path:
I've also tried removing all dotnet packages that showed up in
apt list installed 'dotnet*'
, restarting and reinstalling.Any help is appreciated.
Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
6.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: