パッケージをインストールできません。依存関係を自動的にインストールする方法はありますか?

パッケージをインストールできません。依存関係を自動的にインストールする方法はありますか?

Ubuntu 14.04を使用してください。インストールしようとしています。dpkg-devこれにはいくつかの依存ファイルが必要です。

bin$ sudo apt-get install dpkg-dev
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:
 dpkg-dev : Depends: libdpkg-perl (= 1.17.5ubuntu5) but 1.17.5ubuntu5.6 is to be installed
            Recommends: build-essential but it is not going to be installed
            Recommends: fakeroot
            Recommends: libalgorithm-merge-perl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

その後、次のことを行い、すべての依存関係をインストールすることをお勧めします。以前のインストールが必要です。

bin$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libsdl-image1.2 libtar0 libva-x11-1 libxcb-composite0 libxcb-xv0
  vlc-plugin-notify vlc-plugin-pulse
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

これは何もしません。この障害を克服する方法をお勧めします。よろしくお願いします。

ベストアンサー1

  1. パッケージのリストを更新し、問題が解決するかどうかを確認してください。

  2. 別のツール(aptitude手動バージョンの選択など)を使用して競合を解決します。 UIに慣れるのに少し時間がかかりますが、めちゃくちゃな依存関係を保存するのに非常に役立ちます。

おすすめ記事