文章目录
#repo sync出错整理
##1. 出现contains uncommitted changes错误
###1.1. 出现error: .repo/manifests/: contains uncommitted changes错误
原因:修改了.repo/manifests目录下的东西,但没提交导致的
解决方法:
$ cd .repo/manifests
$ git reset --hard HEAD~3
$ cd -
$ repo sync -f -d -j16
###1.2. 出现error: .repo/repo/: contains uncommitted changes错误
原因:修改了.repo/repo目录下的东西,但没提交导致的
解决方法:
$ cd .repo/repo
$ git reset --hard HEAD~3
$ cd -
$ repo sync -f -d -j16
##2. 出现了error: manifest missing or unreadable – please run init错误
repo sync出现如下错误
Fetching projects: 100% (571/571), done.
Syncing work tree: 83% (474/570) error: in sync -j32
: [Errno 2] No such file or directory: u’/home/root/lmr1-master/packages/inputmethods/LatinIME/.git/HEAD’
error: manifest missing or unreadable – please run init
解法办法如下:
root@ubuntu:~/an$ rm packages/inputmethods/LatinIME -rf
root@ubuntu:~/an$ cd .repo/
root@ubuntu:~/an/.repo$ ls
manifests manifests.git manifest.xml project.list project-objects projects repo
root@ubuntu:~/an/.repo$ cd project-objects/platform
root@ubuntu:~/an/.repo/project-objects/platform$ rm packages/inputmethods/LatinIME.git/ -rf
root@ubuntu:~<