web-dev-qa-db-ja.com

KDEバックポートPPAを追加すると、依存関係が満たされなくなりました。直し方?

追加した ppa:kubuntu-ppa/backportsを通常の方法で実行し、次にdist-upgrade。ギガバイトを超えるファイルをダウンロードする必要があったので、午後のために残しておきました。私が戻ったとき、システムが非常に不安定になり、使用できなくなっていたことがわかりました。

コンソールにログインして、コンソールから再起動しましたが、戻ったときに、やや混乱しています。

私は走ったSudo apt-get -f dist-upgradeと出力で次のことに気づきました:

The following packages will be upgraded:
  kdm
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,227 kB of archives.
After this operation, 1,668 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of kdm:
 kdm depends on kde-workspace-kgreet-plugins (= 4:4.8.5-0ubuntu0.3); however:
  Version of kde-workspace-kgreet-plugins on system is 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1.
 kde-workspace-data (4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1) breaks kdm (<< 4:4.10.80) and is installed.
  Version of kdm to be configured is 4:4.8.5-0ubuntu0.3.
dpkg: error processing kdm (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kubuntu-desktop:
 kubuntu-desktop depends on kdm; however:
  Package kdm is not configured yet.
dpkg: error processing kubuntu-desktop (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
                                                                    No apport report written because MaxReports has already been reached
                                                     Errors were encountered while processing:
 kdm
 kubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)

理想的には、依存関係を満たしたいので、できれば、誰かがその方法をアドバイスしてください。それが失敗した場合は、以前の構成にロールバックする方法をアドバイスしてください。

ありがとう。

カーネル3.8.0-34-generic#49〜precise1-UbuntuでUbuntu 12.04を使用する

**更新**

peter@pete:~$ Sudo apt-get check
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.
 kde-workspace-data : Breaks: kdm (< 4:4.10.80) but 4:4.8.5-0ubuntu0.3 is installed
 kdm : Depends: kde-workspace-kgreet-plugins (= 4:4.8.5-0ubuntu0.3) but 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 is installed
E: Unmet dependencies. Try using -f.
peter@pete:~$ 
peter@pete:~$ 
peter@pete:~$ Sudo apt-get -f check
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done

更新2

peter@pete:~$ apt-cache policy kde-workspace-data kdm
kde-workspace-data:
  Installed: 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
  Candidate: 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
  Version table:
 *** 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status
     4:4.11.1-0ubuntu1~ubuntu12.04.1~ppa3 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
     4:4.11.0-0ubuntu1~ubuntu12.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
     4:4.10.5-0ubuntu0.1~ubuntu12.04~ppa2 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
     4:4.8.5-0ubuntu0.3 0
        500 http://free.nchc.org.tw/ubuntu/ precise-updates/main i386 Packages
     4:4.8.2a-0ubuntu4 0
        500 http://free.nchc.org.tw/ubuntu/ precise/main i386 Packages
kdm:
  Installed: 4:4.8.5-0ubuntu0.3
  Candidate: 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
  Version table:
     4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
 *** 4:4.8.5-0ubuntu0.3 0
        500 http://free.nchc.org.tw/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     4:4.8.2a-0ubuntu4 0
        500 http://free.nchc.org.tw/ubuntu/ precise/main i386 Packages

更新

peter@pete:~$ Sudo apt-get install kde=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-data=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-kgreet-plugins=4:4.11.kspace-data=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-kgreet-plugins=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version ‘4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1’ for ‘kde’ was not found
peter@pete:~$ 
peter@pete:~$ apt-cache policy kde-workspace-data kdekde-workspace-data:
  Installed: 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
  Candidate: 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
  Version table:
 *** 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
        100 /var/lib/dpkg/status
     4:4.11.1-0ubuntu1~ubuntu12.04.1~ppa3 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
     4:4.11.0-0ubuntu1~ubuntu12.04~ppa1 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
     4:4.10.5-0ubuntu0.1~ubuntu12.04~ppa2 0
        500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ precise/main i386 Packages
     4:4.8.5-0ubuntu0.3 0
        500 http://free.nchc.org.tw/ubuntu/ precise-updates/main i386 Packages
     4:4.8.2a-0ubuntu4 0
        500 http://free.nchc.org.tw/ubuntu/ precise/main i386 Packages
kde:
  Installed: (none)
  Candidate: (none)
  Version table:

更新4

peter@pete:~$ Sudo apt-get -f install kdm=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-data=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-kgreet-plugins=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
kde-workspace-data is already the newest version.
kde-workspace-data set to manually installed.
kde-workspace-kgreet-plugins is already the newest version.
kde-workspace-kgreet-plugins set to manually installed.
The following packages were automatically installed and are no longer required:
  libkasten1controllers1 libnepomukdatamanagement4 libkface1 libkexiv2-10
  libkdegames5a libkipi8 libkggzgames4 libopencv-legacy2.3 ttf-dustin
  libkasten1okteta1core1 libkggznet4 libkggzmod4 libopencv-video2.3
  libkasten1okteta1gui1 libkasten1okteta1controllers1 libanalitza4abi1
  libkwinnvidiahack4 ktron libkdecorations4 libkwinglutils1 libkasten1core1
  rdesktop libboost-graph1.46.1 libnepomuksync4 libopenctl0.8 libokularcore1abi1
  libindi0 libkasten1gui1 kbattleship libplasmaclock4abi3 libkdcraw20
  libanalitzagui4abi1 libattica0.3 kdevplatform5-libs liblastfm0
  libsolidcontrolifaces4abi2 libsublime5 libkwineffects1abi3
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  kdm
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2,227 kB of archives.
After this operation, 1,668 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of kdm:
 kdm depends on kde-workspace-kgreet-plugins (= 4:4.8.5-0ubuntu0.3); however:
  Version of kde-workspace-kgreet-plugins on system is 4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1.
 kde-workspace-data (4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1) breaks kdm (<< 4:4.10.80) and is installed.
  Version of kdm to be configured is 4:4.8.5-0ubuntu0.3.
dpkg: error processing kdm (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                         dpkg: dependency problems prevent configuration of kubuntu-desktop:
 kubuntu-desktop depends on kdm; however:
  Package kdm is not configured yet.
dpkg: error processing kubuntu-desktop (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates it's a follow-up error from a previous failure.
                         Errors were encountered while processing:
 kdm
 kubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
2
Peter Snow

すべてのパッケージは同じバージョンでなければなりません:

Sudo apt-get update
Sudo apt-get install kdm=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-data=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-kgreet-plugins=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1

その後、もう一度確認する必要があります:Sudo apt-get check。他のエラーがあってはなりません。

上記の解決策が何らかの理由で機能しない場合は、aptitudeを使用します。

Sudo apt-get install aptitude
Sudo aptitude -f install

考えられる一連のソリューションが表示されます。パッケージをアンインストールしないものやパッケージをアップグレードするものを選択します。現時点では例を示すことはできません。


容疑者:kde-workspace-dataが更新されすぎて問題が発生する可能性がある(kdm)と考えていますが、何らかの理由でkdmが同じバージョンではない(PPA maintanersと同じ)ため、4:4.8.5-0ubuntu0.3をインストールしてアップグレードしますkdmは問題を解決するはずです:

Sudo apt-get install kdm=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1 kde-workspace-data=4:4.8.5-0ubuntu0.3 kde-workspace-kgreet-plugins=4:4.11.3-0ubuntu0.1~ubuntu12.04~ppa1
1
Braiam

パッケージが非常に悪い不整合な状態にある可能性があります。再インストールする必要があります-

Sudo apt-get --reinstall install kubuntu-desktop

一度再起動して、うまくいくことを願ってください。そうでない場合は、Software & Updates > Other Sourcesにアクセスしてkubuntuバックポートリポジトリを無効にしてから、

Sudo apt-get update
Sudo apt-get install kubuntu-desktop

今度は動作します。

0
Sukupa91