Missing assembly reference on Ubuntu 22.04 and 20.04

I recently got a new PC, and tried to run Unity on both Ubuntu 20.04 and 22.04. In Ubuntu 20.04 it was easier to run the UnityHub from the repository but on 22.04, after resolving the issues with dependencies (mainly libssl) I finally managed to run the UnityHub 3.1.2. But after that, I witnessed weird compile errors showing up in the editor about missing assemblies reference. Which are there and is set to be loaded for any OS and any CPU. Note that the same project works fine on windows and even on a different device running Ubuntu 20.04 (running UnityHub 2.4). Can anybody help? Maybe there is a dependency I should install that I am missing in the new PC?

Alright, now I’m feeling stupid! I’ll leave this here in case someone else followed this path.
The problem is that in my project, I was using git-lfs for large assets as well as dll files. In Ubuntu however, when you install the git package, it won’t come with git-lfs and checking out the project will result in some malformed placeholder files for those that is being tracked by lfs. Hence it was solved by installing the package and checking out the project again:

sudo apt install git-lfs

I noticed this as I dived deep to see why the dll files are not added to the project generated for external editor on my new device while on the older one, it was added. Then I realized that the dlls are not in a valid format (tried to decompile them and failed). So then I remembered that shit! these are being tracked by lfs <face palm!>
However, I feel the malformity of those files should have been reported by Unity because I checked the unity logs and noticed that it is trying to import those dll files and then no error was given there. Just a report that it is done. So that gave me the impression that at least Unity has imported the files just fine. So yeah, maybe an improvement for unity errors?