これに対する答えが世界のどこかにすでにある場合は事前に申し訳ありませんが、私はすでに3時間でこれをPRODUCTIONサーバーにインストールしようとしており、どこにも到達していません。
私のニーズ:
サーバーでgitコマンド(例:push、commitなど)を実行したい。そのためには、「git」コマンドが必要です(そうです!)。
私が試したこと:
これをフォローしようとしました:http://oli.zilla.org.uk/2010/12/07/installing-git-on-debian-lenny.html
そしてこれ:初心者のためのGit:決定的な実用ガイド
そしてこれ:RailsプラグインのインストールにはGitが必要ですか?
ソース( http://packages.debian.org/lenny/i386/git-core/download)、. debファイル(http://ftp.de.debian.org/debian/pool/main/ )をダウンロードしようとしましたg / git /)
問題:
ソースを取得しようとしたときの404:http: //packages.debian.org/lenny/i386/git-core/download
私が使用しようとしたすべてのリポジトリは、パッケージをダウンロードするときに404を与えてくれました
次のようにgit-1.7.9をインストールするには、libc6を2.7から2.9に更新する必要があります。
stewie:/tmp# dpkg -i git_1.7.9-1~bpo60+1_i386.deb
Selecting previously deselected package git.
(Reading database ... 20477 files and directories currently installed.)
Unpacking git (from git_1.7.9-1~bpo60+1_i386.deb) ...
dpkg: dependency problems prevent configuration of git:
git depends on libc6 (>= 2.9); however:
Version of libc6 on system is 2.7-18lenny7.
git depends on libcurl3-gnutls (>= 7.16.2-1); however:
Package libcurl3-gnutls is not installed.
git depends on libexpat1 (>= 1.95.8); however:
Package libexpat1 is not installed.
git depends on liberror-perl; however:
Package liberror-perl is not installed.
git depends on git-man (>> 1:1.7.9); however:
Package git-man is not installed.
git depends on git-man (<< 1:1.7.9-.); however:
Package git-man is not installed.
dpkg: error processing git (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
git
しかし、Debianlennyの2.9が見つかりませんでした
最後の質問:
Debian 5(lenny)にgitをインストールするにはどうすればよいですか?
試行
@sarnoldソリューションを試しましたが、(より多くの404):http: //justpaste.it/w5s
解決:
@sarnoldのコメントを(彼自身の答えで)使用しました!
ああ。レニーは鏡から外されました。代わりにarchive.debian.orgを使用するようにsources.listを編集する必要があります-この新しいものだけでなく、すべてのパッケージ行に対して。このシステムをサポートされているリリースにアップグレードすることを検討してください。
方法:
の内容を編集します/etc/apt/sources.list
:
nano /etc/apt/sources.list
以下を追加します。
deb http://archive.debian.org/debian/ lenny main non-free contrib
deb-src http://archive.debian.org/debian/ lenny main non-free contrib
deb http://archive.debian.org/debian-security/ lenny/updates main non-free contrib
deb-src http://archive.debian.org/debian-security/ lenny/updates main non-free contrib
apt-getキャッシュを更新します:
apt-get update
gitをインストールします:
apt-get install git-core
終わり!:)
後期編集:
何らかの理由で、ドイツのミラーはまだ有効であるようです。追加するだけ
deb http://ftp.de.debian.org/debian-archive/debian/ lenny main
deb-src http://ftp.de.debian.org/debian-archive/debian/ lenny main
あなたのsources.listに行き、パッケージを入手してみてください。
または、もちろん、Debianバックポートを試してください。
deb http://backports.debian.org/debian-backports squeeze-backports main