Я заканчивал синхронизацию репозитория для сборки AOSP, когда мой компьютер завис. Я не смог его запустить, поэтому выключил его вручную. Когда я перезагрузился, я возобновил синхронизацию, которая заняла всего 10 минут или около того. Когда он закончился, у меня осталась эта ошибка:
error: cts/: platform/cts checkout 518922e7374115e5b7b6eac7aef000c9b0ac5e9a
error: Cannot checkout platform/cts
error: Unable to fully sync the tree
error: Checking out local projects failed.
Failing repos:
cts
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
platform/cts checkout 518922e7374115e5b7b6eac7aef000c9b0ac5e9a
я перезапустил на этот раз синхронизировать репо -j1 --fail-fast Вот что я получил
`fatal: Unable to create '/home/jr/aaos/.vscode/Worker/cts/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
error: cts/: platform/cts checkout 518922e7374115e5b7b6eac7aef000c9b0ac5e9a
error: Cannot checkout platform/cts
error: Unable to fully sync the tree
error: Checking out local projects failed.
Failing repos:
cts
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
platform/cts checkout 518922e7374115e5b7b6eac7aef000c9b0ac5e9a
(env) jr@Expiremental:~/aaos/.vscode/Worker$ `
Мне просто удалить папку CTS и выполнить повторную синхронизацию?





Удалите /home/jr/aaos/.vscode/Worker/cts/.git/index.lock и попробуйте еще раз. Сначала можете попробовать минимальную синхронизацию, repo sync platform/cts. Если все пойдет хорошо, снова запустите полную синхронизацию репозитория. Символ index.lock не был удален должным образом, поскольку вы завершили процесс, выключив машину.
Если repo sync platform/cts по-прежнему не работает, вы можете удалить эти пути и повторить попытку.
rm -rf /home/jr/aaos/.vscode/Worker/cts
rm -rf /home/jr/aaos/.vscode/Worker/.repo/projects/cts.git
rm -rf /home/jr/aaos/.vscode/Worker/.repo/project-objects/platform/cts.git
Следовал вашему руководству, и все сработало прекрасно!