Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Missing assembly reference on Ubuntu 22.04 and 20.04

Discussion in 'Editor & General Support' started by unity_suIvHUJsyi0TIw, May 19, 2022.

  1. unity_suIvHUJsyi0TIw

    unity_suIvHUJsyi0TIw

    Joined:
    Oct 4, 2021
    Posts:
    3
    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?
     

    Attached Files:

  2. unity_suIvHUJsyi0TIw

    unity_suIvHUJsyi0TIw

    Joined:
    Oct 4, 2021
    Posts:
    3
    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:
    Code (CSharp):
    1. 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 S***! 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?
     
    Last edited: May 19, 2022