依存関係:libqtgui4(> = 4.6.2)ですがインストールされていません

依存関係:libqtgui4(> = 4.6.2)ですがインストールされていません

Python用Wing IDEをインストールしたいと思います。これを実行すると、dpkgはインストールされていない一部のqtパッケージを表示します。 Synaptic Package Managerを介して一部をインストールしましたが、残りは見つかりませんでした。これで問題は、-fをインストールしたり、他のパッケージをインストールまたは削除できないことです。すべて以下を含みます:

root@debian32:/home/saman/Downloads# apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 libqt4-network : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not installed
 libqt4-sql : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not installed
 libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not installed
 libqt4-xml : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not installed
 libqtcore4-perl : Depends: libqtcore4 (>= 4:4.8) but it is not installed
                   Depends: libqtgui4 (>= 4:4.8) but it is not installed
 libqtdbus4 : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not installed
 libqtgui4-perl : Depends: libqtcore4 (>= 4:4.8) but it is not installed
                  Depends: libqtgui4 (>= 4:4.8) but it is not installed
 libsmokeqtcore4-3 : Depends: libqtcore4 (>= 4:4.8.0) but it is not installed
 libsmokeqtgui4-3 : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not installed
                    Depends: libqtgui4 (>= 4:4.8.5) but it is not installed
 libsmokeqtnetwork4-3 : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not installed
 wingide5 : Depends: libqtcore4 (>= 4.6.2) but it is not installed
            Depends: libqtgui4 (>= 4.6.2) but it is not installed
            Depends: libqt4-svg (>= 4.6.2) but it is not installed
            Depends: libqt4-webkit (>= 4.6.2) but it is not installed
            Depends: libqt4-script (>= 4:4.5.3) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

今これは私にとって本当に大きな問題です。この問題をどのように解決しますか?

# apt-cache policy libqtcore4
libqtcore4:
  Installed: (none)
  Candidate: 4:4.8.6+git64-g5dc8b2b+dfsg-3
  Version table:
     4:4.8.6+git64-g5dc8b2b+dfsg-3 0
        500 http://ftp.tr.debian.org/debian/ stable/main i386 Packages
        100 /var/lib/dpkg/status




# apt-get install libqtcore4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libqtcore4-perl : Depends: libqtgui4 (>= 4:4.8) but it is not going to be installed
 libqtgui4-perl : Depends: libqtgui4 (>= 4:4.8) but it is not going to be installed
 libsmokeqtgui4-3 : Depends: libqtgui4 (>= 4:4.8.5) but it is not going to be installed
 ninja-ide : Depends: python-pyinotify but it is not going to be installed
             Depends: python-qt4 but it is not going to be installed
 wingide5 : Depends: libqtgui4 (>= 4.6.2) but it is not going to be installed
            Depends: libqt4-svg (>= 4.6.2) but it is not going to be installed
            Depends: libqt4-webkit (>= 4.6.2) but it is not going to be installed
            Depends: libqt4-script (>= 4:4.5.3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).



root@debian32:/usr/share/eclipse/dropins# apt-get install libqtgui4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libqt4-network : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not going to be installed
 libqt4-sql : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not going to be installed
 libqt4-sql-mysql : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not going to be installed
 libqt4-xml : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not going to be installed
 libqtcore4-perl : Depends: libqtcore4 (>= 4:4.8) but it is not going to be installed
 libqtdbus4 : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not going to be installed
 libqtgui4 : Depends: libqtcore4 (= 4:4.8.6+git64-g5dc8b2b+dfsg-3) but it is not going to be installed
 libqtgui4-perl : Depends: libqtcore4 (>= 4:4.8) but it is not going to be installed
 libsmokeqtcore4-3 : Depends: libqtcore4 (>= 4:4.8.0) but it is not going to be installed
 libsmokeqtgui4-3 : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not going to be installed
 libsmokeqtnetwork4-3 : Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not going to be installed
 ninja-ide : Depends: python-pyinotify but it is not going to be installed
             Depends: python-qt4 but it is not going to be installed
 wingide5 : Depends: libqtcore4 (>= 4.6.2) but it is not going to be installed
            Depends: libqt4-svg (>= 4.6.2) but it is not going to be installed
            Depends: libqt4-webkit (>= 4.6.2) but it is not going to be installed
            Depends: libqt4-script (>= 4:4.5.3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).




root@debian32:/usr/share/eclipse/dropins# apt-cache policy libqtgui4
libqtgui4:
  Installed: (none)
  Candidate: 4:4.8.6+git64-g5dc8b2b+dfsg-3
  Version table:
     4:4.8.6+git64-g5dc8b2b+dfsg-3 0
        500 http://ftp.tr.debian.org/debian/ stable/main i386 Packages
        100 /var/lib/dpkg/status

ベストアンサー1

APTが競合を解決できないように依存関係を破ったようです。一部のパッケージを一時的に削除するか、不要なパッケージをインストールする必要があります。

非公式のパッケージソースを一時的に無効にすると便利です。 Wingideや他の非公式パッケージソースを編集/etc/apt/sources.listまたは/etc/apt/sources.list.d/*コメントアウトします(対応する行#の先頭に追加)。すべての公式のDebianソースコードをアーカイブしてください。その後、実行してapt-get updateもう一度やり直してくださいapt-get -f install

それでも問題が解決しない場合は、一部の非公式パッケージを削除してみてください。このパスを開始する場合は削除しましたが、再インストールしたいパッケージに注意してください。 aptitudeがインストールされている場合は、それを使用して非公式のソースからパッケージを検索できます。

apt-cache policy $(aptitude search -F %p '!~Odebian ~i')

適性を使用すると、ターミナルで引数なしで起動することも、インターフェースを使用して対話式に競合を解決しようとすることもできます。現在能力がなければ、インストールするのは難しいかもしれません。パッケージを手動でダウンロードしてインストールできますが、そのためには依存関係を手動で追跡する必要があります。dpkg -i FILENAME.deb

ウイングサイドを設置する このような状況が生じたので、ウイングサイドを取り外してみてください。

進行したら、apt-get -f installもう一度実行してみてください。

正常に実行してapt-get -f installエラーが報告されない場合は、非公式ソースを再度有効にしてください。 Synapticの代わりにaptitudeまたはを試してくださいapt-get。最近では、apt-get依存関係解決ではAptitudeよりも優れています。その結果、Synapticよりも優れていますが、Synapticを使用しても以前と同じようにシステムに損傷を与えないでください。オプションを手動で実行またはdpkg使用しない限り--force、そうでなければパッケージ管理のバグがあるツールで、非公式パッケージの奇妙な動作によって発生する可能性があります。

おすすめ記事