I have encountered an error using printfn function in F# Interactive in Ubuntu 22.04 LTS.
System.MissingMethodException: Method not found: 'Void Microsoft.FSharp.Core.PrintfFormat`5..ctor(System.String)'
.NET core in 6.0.400 version is already installed on my machine
> dotnet --list-sdks
6.0.400 [/usr/share/dotnet/sdk]
and after starting Interactive mode and typing simple code, I get the error.
> dotnet fsi
> printfn "Hello %s" "World";;
System.MissingMethodException: Method not found: 'Void Microsoft.FSharp.Core.PrintfFormat`5..ctor(System.String)'.
Stopped due to error
I don't have much experience with Linux, so any suggestions on how to make it work are welcome. This only happens in F# Interactive, so I'm assuming my setup is missing something, but I don't know what it is.