Building Android VIM3L Problem

Good afternoon. I will say right away I’m a beginner.
I want to understand the build of Android. Installed Linux Mint system latest x64 version. I do everything according to the instructions from here: https://docs.khadas.com/vim3/BuildAndroid.html
During these procedures, I get some errors:

  1. When I execute the sudo ./install.sh command, the error Error: Failed to call git rev-parse --git-dir --show-toplevel: "fatal: not a git repository (or any of the parent directories): .git \ n "
  2. When I execute the repo init, repo sync command (no difference directly or through a script), errors appear:
    repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

… A new version of repo (2.4) is available.
… You should upgrade soon:

cp /home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/repo /usr/bin/repo

Usage: repo init [options]

main.py: error: no such option: -j
root@arxip32-MS-7B46:/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY# repo sync -j4
repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

… A new version of repo (2.4) is available.
… You should upgrade soon:

cp /home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/repo /usr/bin/repo

Fetching projects: 22% (152/687) android_prebuilts_gcc_linux-x86_host_x86_64-liFetching projects: 65% (447/687) android_vendor_amlogic_prebuilt_libstagefrightFetching projects: 69% (475/687) android_system_extraserror: Cannot fetch linux (GitError: linux update-ref: fatal: 7a2b95478b169a0ff113a570836dbae4324205a0^0: not a valid SHA1
)
Exception in thread Thread-457:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 346, in _FetchHelper
clone_filter=clone_filter)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1553, in Sync_NetworkHalf
self._InitMRef()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2886, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2898, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message=msg, detach=True)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3285, in UpdateRef
self.update_ref(*cmdv)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3351, in runner
(self._project.name, name, p.stderr))
GitError: linux update-ref: fatal: 7a2b95478b169a0ff113a570836dbae4324205a0^0: not a valid SHA1

Fetching projects: 82% (564/687) android_prebuilts_gcc_linux-x86_x86_x86_64-linFetching projects: 90% (619/687) android_packages_providers_ApplicationsProvideFetching projects: 94% (646/687) android_external_google-api-services-storageerror: Cannot fetch u-boot (GitError: u-boot update-ref: fatal: 4752efbb90b7d048a81760c67f8c826f14baf41c^0: not a valid SHA1
)
Exception in thread Thread-605:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 346, in _FetchHelper
clone_filter=clone_filter)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1553, in Sync_NetworkHalf
self._InitMRef()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2886, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2898, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message=msg, detach=True)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3285, in UpdateRef
self.update_ref(*cmdv)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3351, in runner
(self._project.name, name, p.stderr))
GitError: u-boot update-ref: fatal: 4752efbb90b7d048a81760c67f8c826f14baf41c^0: not a valid SHA1

Fetching projects: 99% (681/687) android_external_guiceerror: Cannot fetch android_vendor_amlogic_FactoryTest (GitError: android_vendor_amlogic_FactoryTest update-ref: fatal: eb12a04904166da467a8ac1dd4f1acbd6768257b^0: not a valid SHA1
)
Exception in thread Thread-668:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 346, in _FetchHelper
clone_filter=clone_filter)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1553, in Sync_NetworkHalf
self._InitMRef()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2886, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2898, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message=msg, detach=True)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3285, in UpdateRef
self.update_ref(*cmdv)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3351, in runner
(self._project.name, name, p.stderr))
GitError: android_vendor_amlogic_FactoryTest update-ref: fatal: eb12a04904166da467a8ac1dd4f1acbd6768257b^0: not a valid SHA1

Fetching projects: 99% (684/687), done.
error: Cannot fetch android_vendor_amlogic_FactoryTest (GitError: android_vendor_amlogic_FactoryTest update-ref: fatal: eb12a04904166da467a8ac1dd4f1acbd6768257b^0: not a valid SHA1
)
Exception in thread Thread-1377:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 346, in _FetchHelper
clone_filter=clone_filter)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1553, in Sync_NetworkHalf
self._InitMRef()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2886, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2898, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message=msg, detach=True)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3285, in UpdateRef
self.update_ref(*cmdv)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3351, in runner
(self._project.name, name, p.stderr))
GitError: android_vendor_amlogic_FactoryTest update-ref: fatal: eb12a04904166da467a8ac1dd4f1acbd6768257b^0: not a valid SHA1

error: Cannot fetch u-boot (GitError: u-boot update-ref: fatal: 4752efbb90b7d048a81760c67f8c826f14baf41c^0: not a valid SHA1
)
Exception in thread Thread-1376:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 346, in _FetchHelper
clone_filter=clone_filter)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1553, in Sync_NetworkHalf
self._InitMRef()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2886, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2898, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message=msg, detach=True)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3285, in UpdateRef
self.update_ref(*cmdv)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3351, in runner
(self._project.name, name, p.stderr))
GitError: u-boot update-ref: fatal: 4752efbb90b7d048a81760c67f8c826f14baf41c^0: not a valid SHA1

error: Cannot fetch linux (GitError: linux update-ref: fatal: 7a2b95478b169a0ff113a570836dbae4324205a0^0: not a valid SHA1
)
Exception in thread Thread-1375:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 801, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 754, in run
self.__target(*self.__args, **self.__kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 301, in _FetchProjectList
success = self._FetchHelper(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 346, in _FetchHelper
clone_filter=clone_filter)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1553, in Sync_NetworkHalf
self._InitMRef()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2886, in _InitMRef
self._InitAnyMRef(R_M + self.manifest.branch)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 2898, in _InitAnyMRef
self.bare_git.UpdateRef(ref, dst, message=msg, detach=True)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3285, in UpdateRef
self.update_ref(*cmdv)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3351, in runner
(self._project.name, name, p.stderr))
GitError: linux update-ref: fatal: 7a2b95478b169a0ff113a570836dbae4324205a0^0: not a valid SHA1

fatal: failed to unpack tree object HEAD
error: Cannot checkout linux: GitError: Cannot initialize work tree for linux
Traceback (most recent call last):
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/main.py”, line 622, in
_Main(sys.argv[1:])
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/main.py”, line 596, in _Main
result = run()
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/main.py”, line 589, in
run = lambda: repo._Run(name, gopts, argv) or 0
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/main.py”, line 266, in _Run
result = cmd.Execute(copts, cargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 966, in Execute
self._Checkout(all_projects, opt, err_event, err_results)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 562, in _Checkout
self._CheckoutWorker(**kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 442, in _CheckoutWorker
return self._CheckoutOne(opt, project, *args, **kwargs)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py”, line 476, in _CheckoutOne
project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 1616, in Sync_LocalHalf
self._InitWorkTree(force_sync=force_sync, submodules=submodules)
File “/home/arxip32/git_lfs/git-lfs-2.3.4/WORKING_DIRECTORY/.repo/repo/project.py”, line 3075, in _InitWorkTree
raise GitError('Cannot initialize work tree for ’ + self.name)
error.GitError: Cannot initialize work tree for linux

I think I had the same Problem, the commit 7a2b95478b169a0ff113a570836dbae4324205a0 from the linux repo was added recently and hasn’t existed before try again