Web開発のためのUbuntu仮想マシンを作成しましたが、Gitをバージョン管理に使用したいと思っています。 [通常のインストールとする前に、私は、これらの問題に遭遇したことがないので、私はVMに言及した理由は単純である。] 仮想マシンでGitを使用したセグメンテーションフォルト
私は新しいGitのレポを初期化するためにgit init
を使用して、私はすぐに次のエラーが表示されます
segmentation fault
を。
Gitは実際にリポジトリを初期化するように見えますが(関連ファイルを作成することによって)、git status
またはgit add
にしようとすると、fatal: not a Git repository
というエラーが表示されます。
この問題についての洞察は高く評価されます。
A)
[email protected]:/var/www$uname -a
Linux ubuntu 2.6.38-8-generiC#42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
[email protected]:/var/www$lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
B)
[email protected]:/var/www$dpkg --status git
Package: git
Status: install ok installed
Priority: optional
Section: vcs
Installed-Size: 10624
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 1:1.7.4.1-3
Replaces: cogito (<< 0.16rc2-0), git-core (<< 1:1.7.0.4-1.), gitweb (<< 1:1.7.4~rc1)
Provides: git-completion, git-core
Depends: libc6 (>= 2.7), libcurl3-gnutls (>= 7.16.2-1), libexpat1 (>= 1.95.8), zlib1g (>= 1:1.2.0), perl-modules, liberror-perl, git-man (>> 1:1.7.4.1), git-man (<< 1:1.7.4.1-.), emacsen-common
Recommends: patch, less, rsync, ssh-client
Suggests: git-doc, git-el, git-arch, git-cvs, git-svn, git-email, git-daemon-run, git-gui, gitk, gitweb
Breaks: cogito (<= 0.18.2+), git-buildpackage (<< 0.4.38), gitosis (<< 0.2+20090917-7), gitpkg (<< 0.15), gitweb (<< 1:1.7.4~rc1), guilt (<< 0.33), qgit (<< 1.5.5), stgit (<< 0.15), stgit-contrib (<< 0.15)
Conflicts: git-core (<< 1:1.7.0.4-1.)
Conffiles:
/etc/bash_completion.d/git 8f2975422e54845ec9aea549daa6050b
Description: fast, scalable, distributed revision control system
Git is popular version control system designed to handle very large
projects with speed and efficiency; it is used for many high profile
open source projects, most notably the Linux kernel.
.
Git falls in the category of distributed source code management tools.
Every Git working directory is a full-fledged repository with full
revision tracking capabilities, not dependent on network access or a
central server.
.
This package provides the git main components with minimal dependencies.
Additional functionality, e.g. a graphical user interface and revision
tree visualizer, tools for interoperating with other VCS's, or a web
interface, is provided as separate git* packages.
Original-Maintainer: Gerrit Pape <[email protected]>
Homepage: http://git-scm.com/
[email protected]:/var/www$ find /etc/apt -iname '*.list' | xargs cat | grep -v ^# | sort -u
deb http://dl.google.com/linux/chrome/deb/ stable main
deb http://extras.ubuntu.com/ubuntu natty main
deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb http://security.ubuntu.com/ubuntu natty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ natty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ natty universe
deb http://us.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ natty-updates universe
deb-src http://extras.ubuntu.com/ubuntu natty main
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ natty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ natty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates universe
C)
:ここでUPDATEは@seheによって要求された情報であります
[email protected]:/var/www$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games [email protected]:/var/www$ echo $LD_LIBRARY_PATH [email protected]:/var/www$ echo $LD_PRELOAD [email protected]:/var/www$ which git /usr/bin/git [email protected]:/var/www$ file $(which git) /usr/bin/git: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped [email protected]:/var/www$ ldd $(which git) linux-vdso.so.1 => (0x00007fff841ff000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1eee16e000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1eedf50000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1eedbbb000) /lib64/ld-linux-x86-64.so.2 (0x00007f1eee396000)
関連するエラーメッセージについては、 'dmesg'をチェックしてください。 – ismail
@ smsmail:(他の理由では理解できない理由のために)OPはそれが '_virtual_'マシンであると言及する必要があると感じているからです。 – sehe
私は 'dmesg'で何を探しているのか全く分かりませんが、 '[12028.878591] git [5288]:seffaultが7f6260f13ffeの場合0000000000473bc7 sp 00007ffff8aa5770エラー4がgit [400000 + 127000]'のエラーをハイライト表示します。 – ServAce85