早上用ubuntu下载android x86一直报一个错误
root@ubuntu:~# repo init -u git://android-x86.git.sf.net/gitroot/android-x86/x86/platform/manifest.git -b gingerbread-x86
/usr/local/bin/repo: line 1: syntax error near unexpected token `newline'
/usr/local/bin/repo: line 1: `<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
这里只需要先执行一个命令PATH=~/bin:$PATH
然后再执行
git://android-x86.git.sf.net/gitroot/android-x86/x86/platform/manifest.git -b gingerbread-x86就OK了
本文提供了解决Ubuntu环境下使用repo工具下载Androidx86时报错的解决方案,通过修改PATH环境变量和执行特定命令即可顺利进行下载。

被折叠的 条评论
为什么被折叠?



