別のソースからパッケージをインストールし、すべての依存関係も更新するにはどうすればよいですか?

別のソースからパッケージをインストールし、すべての依存関係も更新するにはどうすればよいですか?

nvidia-driverDebian experimental からインストールしようとしています:

$ sudo apt-get install nvidia-driver=352.63-1

しかし、依存関係エラーが発生します:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver : Depends: libgl1-nvidia-glx (= 352.63-1) but 340.96-2 is to be installed
                 Depends: libegl1-nvidia (= 352.63-1) but 340.96-2 is to be installed
                 Depends: nvidia-driver-bin (= 352.63-1) but 340.96-2 is to be installed
                 Depends: xserver-xorg-video-nvidia (= 352.63-1) but 340.96-2 is to be installed
                 Depends: nvidia-vdpau-driver (= 352.63-1) but 340.96-2 is to be installed
                 Depends: nvidia-alternative (= 352.63-1)
                 Depends: nvidia-kernel-dkms (= 352.63-1) or
                          nvidia-kernel-352.63
                 Recommends: nvidia-settings (>= 352) but 340.93-1 is to be installed
                 Recommends: libgles1-nvidia (= 352.63-1) but 340.96-2 is to be installed
                 Recommends: libgles2-nvidia (= 352.63-1) but 340.96-2 is to be installed
E: Unable to correct problems, you have held broken packages.

つまり、nvidia-driverexperimental には依存関係があり、apt はインストールしようとしているパッケージと同じソースではなく、デフォルトのソースからインストールしようとするようです。

apt-get で必要な依存関係をすべて自動的にインストールする方法はありますか? 最初にどのような変更が行われるかを確認できると、非常に重要なパッケージをいじっていないことがわかり、とても助かります。

答え1

私は、sources.list に重複した行があったときにこれを見ました:

deb http://httpredir.debian.org/debian/ jessie contrib メイン deb http://httpredir.debian.org/debian/ 非フリー

これらの2行を1行に置き換えれば、すべて問題ありません。

deb http://httpredir.debian.org/debian/ jessie contrib メイン 非フリー

関連情報