次のコマンドを使用してGitをインストールしようとしています。
sudo apt-get install git-core
そして
sudo apt-get install git
どちらもうまくいかないようです。一部のパッケージが見つからないようです。両方のコマンドの結果は次のとおりです。
私のソースのリスト:
# deb http://ftp.de.debian.org/debian jessie main
deb http://ftp.de.debian.org/debian jessie main non-free contrib
deb-src http://ftp.de.debian.org/debian jessie main non-free contrib
deb http://old-releases.debian.org/ jessie/updates main contrib non-free
deb-src http://old-releases.debian.org/ jessie/updates main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian jessie-updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main
deb http://mirrors.digitalocean.com/debian jessie main contrib non-free
deb-src http://mirrors.digitalocean.com/debian jessie main contrib non-free
# jessie-updates, previously known as 'volatile'
deb http://mirrors.digitalocean.com/debian jessie-updates main contrib non-free
deb-src http://mirrors.digitalocean.com/debian jessie-updates main contrib non-free
deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all
deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main
私のLinuxバージョン:Debian GNU / Linux 8(jessie)
Gitの正しいパッケージURLは何ですか?
ベストアンサー1
source.listのすべての行を削除し、次の行を追加します。
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free
忘れないでapt-get update