`
Beaver's
  • 浏览: 394693 次
  • 性别: Icon_minigender_2
  • 来自: 天津
社区版块
存档分类
最新评论

error: Exited sync due to gc errors 解决方法

    博客分类:
  • git
阅读更多
repo 版本升级,在执行 repo sync 的时候出现了  error: Exited sync due to gc errors ;查明原因是GIT 的版本太低,升级后的repo 不兼容GIT  1.7.2 以下的版本,而我的刚好是1.7.1(悲哀啊)

解决方案升级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

3 查询更新后的版本

git --version

版本号较之前的高,即更新成功


体会:升级git 期间我尝试了各种方法
1.直接升级git:发现通过 sudo apt-get install git获取的也不是git 的最新版本;
2.暴力删除git:把安装目录下的git 文件全部删除,试图重新安装,结果git 没有完全删除,也无法安装新版git,最后 sudo apt-get remove git 才把git 删干净;通过 sudo apt-get install git 安装新的git,版本仍是1.7.1,不是最新的;
3.下载git-1.8.0源码,自行编译:期间出现很多问题,例如缺少某些sh或者.o 文件等,全部安装后,还是出现 error: Exited sync due to gc errors;估计是之前的git 没有卸载干净的缘故;
4.最后再google 可访问的情况下,g.cn了下,终于找到解决方法 请参考http://blog.csdn.net/javensun/article/details/8124341

解决该问题历经4个小时,最大感概:google 强于 baidu,可惜总被墙,无奈啊...

如果你的系统是Ubuntu10.04,还可尝试如下方法升级git(Ubuntu10.10 的系统该方法试验不成功):

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

即可。


发现2个比较好的网站,共享下:
1.linux 各种软件的安装方法:
http://wiki.ubuntu.org.cn/index.php?title=Wayland%E7%9A%84%E7%BC%96%E8%AF%91%E5%AE%89%E8%A3%85&variant=zh-hans
http://wiki.linuxdeepin.com/index.php/%E7%BC%96%E8%AF%91Wayland#.E5.AE.89.E8.A3.85_git

2. git 最新版源码编译安装(未进行试验)
http://forkhope.diandian.com/post/2012-10-04/40040973375
分享到:
评论

相关推荐

    RuntimeError: DataLoader worker (pid(s) 9528, 8320) exited unexpectedly

    RuntimeError: DataLoader worker (pid(s) 9528, 8320) exited unexpectedly 去网上搜教程,说是在loader定义的时候多进程的参数指定的问题,我的loader定义如下 loader = Data.DataLoader( dataset=torch_dataset,...

    Android4.1.2下载和编译过程中问题总结1.doc

    在下载 Android 源码的过程中,可能会出现一些问题,例如 repo sync 出现 error: Exited sync due to gc errors。这类问题的产生原因可能是 Git 版本太低,解决方法是更新 Git 到 1.7.6。可以从 smb://jrgfile001....

    mongodb: mongod 启动报错[about to fork child process, waiting until server is ready for connections]

    ERROR: child process failed, exited with error number 1 To see additional information in this output, start without the "--fork" option. 可能的问题原因: 已经有mongd进程在运行了 配置错误(如dbpath log...

    Weditor包,安装weditor失败,subprocess-exited-with-error

    python安装weditor失败 weditor-0.6.2-py3-none-any.whl离线包,成功了。 不想麻烦的,直接下我下载好的安装包,pip install 下载包的路径及安装包

    安装kubelet报错的解决方法

    [root@xxx yum.repos.d]# yum install -y kubelet kubeadm kubectl Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile kubernetes | 1.4 kB 00:00:00 ...Error: Nothing to do

    ABAQUS许可证

    ABAQUS6.10许可证到期后,替换此许可证,注意更改下电脑名称即可

    springboot2.2X项目构建报错解决

    报错信息:[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (gradle) on project spring-boot-gradle-plugin: Command execution failed.: Process exited with an error: 1 (Exit ...

    asp.net Core 2.1 win x64.zip

    亲测 解决了win10 下 vs2019 下报错的问题: 报错信息: rzc discover exited with code -2147450730 官网下载不到了,都是3.1版本,这个是存货。

    SQL Server 2005 RTM 安装错误 :The SQL Server System Configuration Checker cannot be executed due to

    The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine XXXX Error:2147749896 (0x80041008).  For help, click: ...

    Nginx+keepalived安装与配置

    - 将 libpcre.so.0.0.1 链接到 libpcre.so.1:`ln -s /path/to/libpcre.so.0.0.1 /path/to/libpcre.so.1` **2.3 配置开机启动** - 将 Nginx 添加至系统服务管理器:`chkconfig --add nginx` - 设置开机启动:`...

    BURNINTEST--硬件检测工具

    - Enhanced the mechanism to report memory hardware errors in the Memory torture test. Release 5.3 build 1033 WIN32 release 1 October 2008 - Changes to correct a BurnInTest crash problem on some ...

    sequelize-cockroachdb:一起使用Sequelize和CockroachDB

    如果返回ERROR: cockroach server exited with error: unable to lookup hostname使用--host localhost标志运行的ERROR: cockroach server exited with error: unable to lookup hostname 。 运行cockroach sql --...

    交换机配置实验文件PPT

    我们学校比较详尽的网络拓扑,有锐捷网络公司开发,上传此资料,希望大家能够受益,很不错的资料啊。 我们学校比较详尽的网络拓扑,有锐捷网络公司开发,上传此资料,希望大家能够受益,很不错的资料啊。...

    Python安装模块的常见问题及解决方法

    1、error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 解决办法: # Python 3 $ sudo apt-get install python3 python-dev python3-dev \ build-essential libssl-dev libffi-dev \ libxml2-dev ...

    waiting-for-the-bus-server:等待总线服务器应用程序

    waiting-for-the-bus-server提供了一些查询机构、路线、站点和时间的方法。 它还具有空间查询功能,可以查找附近的站点、路线和机构。 有一个为 Pebble Smartwatch 开发的应用程序使用该服务器提供的 API。 你可以...

    thinkphp Apache配置重启Apache1 restart 出错解决办法

    错误信息通常是:“Job for httpd.service failed because the control process exited with error code.”,并建议通过`systemctl status httpd.service`和`journalctl -xe`命令查看详细状态和日志。从给出的日志中...

    Vue安装Vue Devtools调试工具提示 Error: Cannot find module ‘@vue-devtools/build-tools’ 解决办法

    尝试了很多方法,都不能解决改问题。 为了能够在谷歌浏览器上安装vue调试工具,通过下面步骤最终把Vue的调试工具安装成功。 步骤一:  访问该地址:vue调试工具插件 ,下载vue调试工具插件。直接点击推荐下载,...

    python安全管理子进程-subprocess

    `subprocess`模块提供了多种方法来创建和管理子进程,如`Popen`, `call`, `check_call`, `check_output`等,它们各有不同的用例和功能。 `Popen`是`subprocess`模块的基础类,用于初始化一个新的进程。它允许开发者...

    如何在Linux下使用Rsync

    一款快速增量备份工具 Remote Sync,远程同步 支持本地复制,或者与其他SSH、rsync主机同步。  对于各种组织和公司,数据对他们是重要的,即使对于电子商务,数据也是同样重要的。Rsync是一款通过网络备份重要数据...

    docker 报错 Exited (1) 4 minutes ago的原因分析

    docker 报错 1. 查看原因 ... error=‘Cannot allocate memory’ (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mma

Global site tag (gtag.js) - Google Analytics