のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

repo syncのエラー(失敗)

fatal: HTTP request failed
error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/XXXXXXXX

fatal: HTTP request failed
Fetching projects: 80% (191/238)
error: Exited sync due to fetch errors

repo sync -f

エラーになるプロジェクトを個別にSyncする。
まず、エラーになるプロジェクトを確認する。
$ repo sync -f
Fetching projects: 79% (189/238) error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/packages/apps/Nfc/info/refs

fatal: HTTP request failed
error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/packages/apps/MusicFX/info/refs

fatal: HTTP request failed
error: Couldn't resolve host 'android.googlesource.com'
while accessing https://android.googlesource.com/platform/packages/apps/PackageInstaller/info/refs

fatal: HTTP request failed
error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/packages/apps/Music/info/refs

error: Cannot fetch platform/packages/apps/Nfc
error: Cannot fetch platform/packages/apps/PackageInstaller
error: Cannot fetch platform/packages/apps/MusicFX

各プロジェクトごとにSyncしてみる。
$ repo sync platform/packages/apps/MusicFX
Fetching projects: 100% (1/1), done.
$ repo sync platform/packages/apps/Music
Fetching projects: 100% (1/1), done.
$ repo sync platform/packages/apps/PackageInstaller
Fetching projects: 100% (1/1), done.