在注意到我的Git发行版不再执行基本任务(例如克隆)后,我得出的结论是我的git-remote-https已损坏:
jason@jasonfil-laptop:~/temp/Vision[]$ GIT_TRACE=2 git fetch
10:44:44.305725 git.c:349 trace: built-in: git 'fetch'
10:44:44.369539 run-command.c:341 trace: run_command: 'git-remote-https' 'origin' 'https://github.com/JasonFil/Vision'
jason@jasonfil-laptop:~/temp/Vision[]$ $(git --exec-path)/git-remote-https
Segmentation fault
git --exec-path
评估为:
jason@jasonfil-laptop:~/temp/Vision[]$ git --exec-path
/usr/lib/git-core
因此:
jason@jasonfil-laptop:~/temp/Vision[]$ /usr/lib/git-core/git-remote-https
Segmentation fault
有关如何解决问题的任何想法?以下是一些系统规范(我正在运行Debian测试):
jason@jasonfil-laptop:~/OneDrive/code/datasets/Dataset_Cyber$ cd
jason@jasonfil-laptop:~$ git --version
git version 2.1.4
jason@jasonfil-laptop:~$ cat /etc/debian_version
stretch/sid
jason@jasonfil-laptop:~$ uname -r
3.16.0-4-686-pae
编辑以回答Matthieu对库的不兼容版本的评论:
有问题的命令给了我各种信息:
jason@jasonfil-laptop:~$ ldd $(git --exec-path)/git-remote-https
linux-gate.so.1 (0xb77be000)
libpcre.so.3 => /lib/i386-linux-gnu/libpcre.so.3 (0xb7732000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb7715000)
libresolv.so.2 => /lib/i386-linux-gnu/i686/cmov/libresolv.so.2 (0xb76fd000)
libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xb76e1000)
librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xb76d8000)
libcurl-gnutls.so.4 => /usr/lib/i386-linux-gnu/libcurl-gnutls.so.4 (0xb7659000)
libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xb7630000)
libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb7485000)
/lib/ld-linux.so.2 (0xb77c1000)
libidn.so.11 => /usr/lib/i386-linux-gnu/libidn.so.11 (0xb7450000)
librtmp.so.1 => /usr/lib/i386-linux-gnu/librtmp.so.1 (0xb742f000)
libssh2.so.1 => /usr/lib/i386-linux-gnu/libssh2.so.1 (0xb7400000)
libnettle.so.6 => /usr/lib/i386-linux-gnu/libnettle.so.6 (0xb73c1000)
libgnutls-deb0.so.28 => /usr/lib/i386-linux-gnu/libgnutls-deb0.so.28 (0xb727b000)
libgssapi_krb5.so.2 => /usr/lib/i386-linux-gnu/libgssapi_krb5.so.2 (0xb722a000)
libkrb5.so.3 => /usr/lib/i386-linux-gnu/libkrb5.so.3 (0xb7154000)
libk5crypto.so.3 => /usr/lib/i386-linux-gnu/libk5crypto.so.3 (0xb7120000)
libcom_err.so.2 => /lib/i386-linux-gnu/libcom_err.so.2 (0xb711b000)
liblber-2.4.so.2 => /usr/lib/i386-linux-gnu/liblber-2.4.so.2 (0xb710a000)
libldap_r-2.4.so.2 => /usr/lib/i386-linux-gnu/libldap_r-2.4.so.2 (0xb70b0000)
libhogweed.so.4 => /usr/lib/i386-linux-gnu/libhogweed.so.4 (0xb707b000)
libgmp.so.10 => /usr/lib/i386-linux-gnu/libgmp.so.10 (0xb6fec000)
libgcrypt.so.20 => /lib/i386-linux-gnu/libgcrypt.so.20 (0xb6f3b000)
libp11-kit.so.0 => /usr/lib/i386-linux-gnu/libp11-kit.so.0 (0xb6ed7000)
libtasn1.so.6 => /usr/lib/i386-linux-gnu/libtasn1.so.6 (0xb6ec2000)
libkrb5support.so.0 => /usr/lib/i386-linux-gnu/libkrb5support.so.0 (0xb6eb5000)
libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb6eb0000)
libkeyutils.so.1 => /lib/i386-linux-gnu/libkeyutils.so.1 (0xb6eab000)
libsasl2.so.2 => /usr/lib/i386-linux-gnu/libsasl2.so.2 (0xb6e8c000)
libgpg-error.so.0 => /lib/i386-linux-gnu/libgpg-error.so.0 (0xb6e77000)
libffi.so.6 => /usr/lib/i386-linux-gnu/libffi.so.6 (0xb6e6f000)
我不确定我应该先把重点放在哪里。有什么想法吗?
答案 0 :(得分:2)
git clone
在内部执行git init
和git fetch
。您可以通过手动执行这些步骤获得更多信息,例如:
git init Vision
cd Vision/
git remote add origin https://github.com/JasonFil/Vision
git fetch
git checkout master
要尝试的另一件事是:
GIT_TRACE=2 git clone --verbose https://github.com/JasonFil/Vision
这应该更加冗长,仅--verbose
。
答案 1 :(得分:0)
重新安装包libcurl3
后问题已解决。