Fedora 32: No SDKs were found
See original GitHub issueHello! I followed the instructions here: https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-fedora32
For installing dotnet core SDK and runtime using the Fedora package manager, using the commands:
sudo dnf install dotnet-sdk-3.1
sudo dnf install aspnetcore-runtime-3.1
sudo dnf install dotnet-runtime-3.1
Note that the 2nd and 3rd command above did nothing, because the first command for the sdk installed everything.
After successfully installing, I can see that I have all the packages:
$ sudo dnf list installed 'dotnet*'
Installed Packages
dotnet-apphost-pack-3.1.x86_64 3.1.3-1.fc32 @updates
dotnet-host.x86_64 3.1.3-1.fc32 @updates
dotnet-hostfxr-3.1.x86_64 3.1.3-1.fc32 @updates
dotnet-runtime-3.1.x86_64 3.1.3-1.fc32 @updates
dotnet-sdk-3.1.x86_64 3.1.201-1 @packages-microsoft-com-prod
dotnet-targeting-pack-3.1.x86_64 3.1.3-1.fc32 @updates
The problem is, however, that no SDK’s are detected
$ dotnet --info
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
Host (useful for support):
Version: 3.1.3
Commit: 4a9f85e9f8
.NET Core SDKs installed:
No SDKs were found.
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.3 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.3 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
System info
$ cat /etc/*release
Fedora release 32 (Thirty Two)
NAME=Fedora
VERSION="32 (Workstation Edition)"
ID=fedora
VERSION_ID=32
VERSION_CODENAME=""
PLATFORM_ID="platform:f32"
PRETTY_NAME="Fedora 32 (Workstation Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:32"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f32/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=32
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=32
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Fedora release 32 (Thirty Two)
Fedora release 32 (Thirty Two)
If I check my path for my non-root user, the only dotnet related entry is /home/wes/.dotnet/tools
.
I’ve tried uninstalling and reinstalling this half a dozen times and I can’t get it to recognize or detect the SDK. What can I do to get this working?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Dotnet SDK not foun, but it's installed : r/Fedora
Hi there, after update to Fedora 32, dotnet can be found in official Fedora's repos. ... NET Core SDKs installed: No SDKs were...
Read more >NET Core 3.1 installed on Fedora 32 but it doesn't work
When I switch to that directory. Don't run dotnet new from within the /usr/bin directory. What's in there is a symlink to the...
Read more >Fedora 36 dotnet 6 installation
I read this issue Fedora 32: No SDKs were found · Issue #11533 · dotnet/sdk · GitHub and did everything, but it is...
Read more >Install the .NET SDK or the .NET Runtime on Fedora
Demonstrates the various ways to install .NET SDK and .NET Runtime on Fedora.
Read more >NET SDK wouldn't show up on Fedora 36
Reinstalled successfully, still won't show up. Even tried. sudo dnf install dotnet-sdk-6.0.x86_64. No result after installation. dotnet --info.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I resolved this issue by running:
sudo dnf remove dotnet-sdk-3.1
And then following most of the instructions here: https://stackoverflow.com/a/59201350
Then
sudo dnf install dotnet-sdk-3.1
I did not use the wget or rpm commands suggested in the stackoverflow post, as they aren’t necessary in Fedora 32 because dotnet appears to be included in the OS repos now.
The commentary on that post suggests that the
sudo dnf clean all
might have been the thing that solves the problem.The issue is likely due to the differences in the Fedora repos vs. the Microsoft repos. Microsoft’s repo installs the runtime into /usr/share/dotnet, which is where the CLI will look if it comes from a Microsoft-installed package. Fedora installs dotnet-* to /usr/lib64/dotnet and looks for the installed SDKs and runtimes there instead.
Try this to fix your issue (worked for me with Fedora 34):
$ sudo dnf remove dotnet-*
$ sudo dnf install --enablerepo=packages-microsoft-com-prod --disablerepo=updates --disablerepo=fedora dotnet-sdk-5.0
After I did this, the SDK was found:
$ dotnet --info
.NET SDK (reflecting any global.json): Version: 5.0.302 Commit: c005824e35Runtime Environment: OS Name: fedora OS Version: 33 OS Platform: Linux RID: fedora.33-x64 Base Path: /usr/share/dotnet/sdk/5.0.302/
Host (useful for support): Version: 5.0.8 Commit: 35964c9215
.NET SDKs installed: 5.0.302 [/usr/share/dotnet/sdk]
.NET runtimes installed: Microsoft.AspNetCore.App 5.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download