When I want to run the .dll file in the Ubuntu system, this error :
Could not resolve CoreCLR path. For more details, enable tracing by setting COREHOST_TRACE environment variable to 1
Can any of you help me?

When I want to run the .dll file in the Ubuntu system, this error :
Could not resolve CoreCLR path. For more details, enable tracing by setting COREHOST_TRACE environment variable to 1
Can any of you help me?

I had the same issue with .Net 6.0 in an Ubuntu AWS instance. It turns out that you have to include --self-contained option when publishing, like this:
dotnet publish backend/bundle_name.sln -c release -r linux-x64 -o /artifacts/bin --self-contained
You also have to set RuntimeIdentifier in you csprojects. See this another issue.