godot: Editor can't find .NET when installed from the official Ubuntu feeds
Godot version
4.0.beta10.mono.official.d0398f62f
System information
Ubuntu 22.10 with dotnet 6
Issue description
If you are using Ubuntu 22.10, maybe other version, and you install .Net 6.0 from the official Ubuntu feeds, Godot 4 can’t find the .Net package’s install location and therefore can’t find /usr/share/dotnet/host/fxr
.
This is because the Ubuntu feeds put the dotnet directory at usr/lib/dotnet
and if you install the package directly from the Microsoft official feeds the package is at usr/share/dotnet
When launching Godot 4, the error message is: "The host fxr folder does not exist: /usr/share/dotnet/host/fxr"
Steps to reproduce
- Start from a clean machine - you must not have any version of dotnet installed from any distribution/official feed or Microsoft feed.
- Download Godot 4.
- Install to
/opt/godot
- this mean the Godot executable is at/opt/godot4/Godot_v4.0-beta10_mono_linux.x86_64
- Run
sudo apt install dotnet-sdk-6.0
- Run
/opt/godot4/Godot_v4.0-beta10_mono_linux.x86_64
Error message
ERROR: The host fxr folder does not exist: /usr/share/dotnet/host/fxr
at: try_get_path_from_dotnet_root (modules/mono/editor/hostfxr_resolver.cpp:323)
Minimal reproduction project
This is during the program launch, I’m happy to attach logs if that will help. I don’t think a repro project helps here.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (9 by maintainers)
Running Godot from the terminal solved my problem
@kepiz This was fixed 4 days ago, the fix is not available in the version of Godot you’re using (I assume 4.1.1-stable).
You’ll find the fix in the upcoming 4.2-dev5, and likely in 4.1.2 when it’s released.