DebianにGitをインストールするときに満たされない依存関係

DebianにGitをインストールするときに満たされない依存関係

Gitをインストールしようとしていますが、Debian 8.6 Jessie依存関係の問題があります。奇妙なことに、私はGit最近Linuxに慣れて、仮想マシンに何度もインストールしましたが、問題はありませんでした。

apt-get install git

明らかにする:

The following packages have unmet dependencies:
  git : Depends: liberror-perl but is not installable
        Recommends: rsync but it is not installable
E: Unable to correct problems, you have held broken packages.

修正する

私のものsources.list

ここに画像の説明を入力してください。

私のシステムに問題があるようです。もう何も正しくインストールできません。Pulseaudio数日前に正常にインストールされたエントリのインストール中に依存関係の問題が発生しました。

ベストアンサー1

次の行を追加してsource.listを編集する必要があります。

deb http://ftp.ca.debian.org/debian/ jessie main contrib

その後、パッケージをアップグレードしてインストールしますgit

apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get -f install
apt-get install git

編集する

次のパッケージgitliberror-perlそして[rsync]サムリポジトリがmainないため、リポジトリとその依存関係をインストールできないため、リポジトリからダウンロードできます。mainsources.listgit

あなたはsources.listnon-freeパッケージで):

deb http://ftp.ca.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

deb http://ftp.ca.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.ca.debian.org/debian/ jessie-updates main contrib non-free

deb http://ftp.ca.debian.org/debian/ jessie-backports main contrib non-free

Debian Stretchでは、/etc/apt/sources.list(少なくとも)次のことを行う必要があります。

deb http://deb.debian.org/debian stretch main
deb http://security.debian.org/ stretch/updates main 
deb http://deb.debian.org/debian/ stretch-updates main

おすすめ記事