Android 10 repo init failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Android 10 repo init failed

1,155 次查看
aravinthkumarja
Senior Contributor II

I'm using Ubuntu 20.4, While doing repo init I'm getting below error.

 

Traceback (most recent call last):
File "/home/aravinth/Project/AndroidQ/.repo/repo/main.py", line 500, in <module>
_Main(sys.argv[1:])
File "/home/aravinth/Project/AndroidQ/.repo/repo/main.py", line 476, in _Main
result = repo._Run(argv) or 0
File "/home/aravinth/Project/AndroidQ/.repo/repo/main.py", line 155, in _Run
result = cmd.Execute(copts, cargs)
File "/home/aravinth/Project/AndroidQ/.repo/repo/subcmds/init.py", line 390, in Execute
self._SyncManifest(opt)
File "/home/aravinth/Project/AndroidQ/.repo/repo/subcmds/init.py", line 236, in _SyncManifest
m.MetaBranchSwitch(opt.manifest_branch)
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 2634, in MetaBranchSwitch
self.Sync_LocalHalf(syncbuf)
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 1170, in Sync_LocalHalf
self._InitWorkTree()
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 2224, in _InitWorkTree
_lwrite(os.path.join(dotgit, HEAD), '%s\n' % self.GetRevisionId())
File "/home/aravinth/Project/AndroidQ/.repo/repo/project.py", line 51, in _lwrite
fd.write(content)
TypeError: a bytes-like object is required, not 'str'

 

0 项奖励
回复
2 回复数

1,146 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Try to update the packages and redowload th repo file

0 项奖励
回复

1,137 次查看
aravinthkumarja
Senior Contributor II

I did the same, but I'm getting the same issue in repo init.

0 项奖励
回复