执行repo sync 的时候,错误信息:error: Exited sync due to gc errors
原因: repo 升级,不兼容GIT 1.7.2 以下的版本。
方案升级git到 1.7.2以及以上的版本。
Ubuntu10.x用户可尝试如下操作:
1 修改/etc/apt/sources.list文件
把下面内容加到最后面
deb http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ oneiric main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ oneiric-updates universe main multiverse restricted
2 执行下面两个命令
sudo apt-get update
sudo apt-get install git
本文介绍了解决reposync遇到的“error: Exited sync due to gc errors”错误的方法,该问题源于repo工具升级后与旧版Git(1.7.2以下)的不兼容。文章提供了针对Ubuntu 10.x系统的解决方案,包括更新软件源列表和升级Git版本的具体步骤。

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



