Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

git-lfs command not found

Discussion in 'Linux Editor' started by oxysofts, Oct 3, 2020.

  1. oxysofts


    Dec 17, 2015
    There are some git packages that we want to use through the package manager, however when I try to open the project I get this error


    Both git and git-lfs work from the terminal and are installed with apt through the packages available out of the box in on Linux Mint. They are both in /usr/bin.

    This is the error itself

    Code (CSharp):
    2. /home/nuck/Unity/Hub/Editor/2020.1.6f1/Editor/Unity
    3. -projectpath
    4. /home/nuck/Repositories/Nanokin
    5. -useHub
    6. -hubIPC
    7. -cloudEnvironment
    8. production
    9. -hubSessionId
    10. 996b0170-0588-11eb-8965-17548b3d3c0b
    11. -accessToken
    12. Tgtw8TE_vx1uoLqFtdYWgYJsAgDaJoYnAWalZOv3EkU003f
    13. Successfully changed project path to: /home/nuck/Repositories/Nanokin
    14. /home/nuck/Repositories/Nanokin
    15. Using Asset Import Pipeline V2.
    16. Error when executing git command:
    17.   - args: checkout, 561339c07f940a0238c43d6cc77c1836373f7fa9
    18.   - stdout:
    19.   - stderr: git-lfs filter-process: git-lfs: command not found
    20. fatal: the remote end hung up unexpectedly
    22. [Package Manager] Done resolving packages in 4.53s seconds
    23. An error occurred while resolving packages:
    24.   Project has invalid dependencies:
    25.     com.realgames.dear-imgui: Cannot checkout repository []:
    26.       Error when executing git command. git-lfs filter-process: git-lfs: command not found
    27.       fatal: the remote end hung up unexpectedly
    30. A re-import of the project may be required to fix the issue or a manual modification of /home/nuck/Repositories/Nanokin/Packages/manifest.json file.
    31. [Unity Package Manager (Upm)]
    32. Parent process [480] was terminated

    Any ideas? Would like to try Linux for gamedev since it is lighter. Thanks

    edit: I believe it is fixed now after making symlinks in /usr/local/bin

    Code (csharp):
    2. $ which git                                            
    3. /usr/local/bin/git
    4. $ which git-lfs                                        
    5. /usr/local/bin/git-lfs
    Last edited: Oct 5, 2020