Adicionando Backports do KDE O PPA causou dependências não atendidas. Como consertar?

2

Adicionei ppa:kubuntu-ppa/backports da maneira normal e, em seguida, executei dist-upgrade . Precisava baixar mais de gigabyte de arquivos, então saí pela tarde. Quando retornei, descobri que o sistema se tornara muito instável e inutilizável.

Eu entrei no console e reiniciei a partir daí e quando voltei, as coisas estão um pouco confusas.

Corri sudo apt-get -f dist-upgrade e observei o seguinte na saída:

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)

Idealmente, eu gostaria de satisfazer as dependências, então, se possível, alguém pode aconselhar como fazer isso, por favor. Caso contrário, por favor, informe como retornar a configuração anterior.

Obrigado.

Usando o Ubuntu 12.04 com o Kernel 3.8.0-34-generic # 49 ~ precise1-Ubuntu

** ATUALIZAÇÃO **

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

UPDATE 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

UPDATE 3

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:

UPDATE 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)
    
por Peter Snow 30.11.2013 / 07:23

2 respostas

1

Todos os seus pacotes devem ser da mesma versão:

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

Depois disso, você deve verificar novamente: sudo apt-get check . Não deve haver outro erro.

Se por algum motivo a solução acima não funcionou, use aptitude :

sudo apt-get install aptitude
sudo aptitude -f install

Ele deve apresentar uma série de possíveis soluções, selecione aquela que não desinstala pacotes e / ou atualiza pacotes. Eu não posso oferecer um exemplo neste momento.

Suspeito: Estou acreditando que kde-workspace-data está muito atualizado e pode quebrar coisas (kdm), mas por alguma razão o kdm não está com a mesma versão (por exemplo, PPA maintaners), então instalando 4:4.8.5-0ubuntu0.3 e atualizando o kdm deve resolver o problema:

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
    
por Braiam 30.11.2013 / 11:45
0

Possivelmente o pacote está em um estado inconsistente muito ruim, você deve reinstalá-lo por -

sudo apt-get --reinstall install kubuntu-desktop

e reinicie uma vez, espero que funcione. Se não desativar o repositório backports do kubuntu, vá para Software & Updates > Other Sources e tente

sudo apt-get update
sudo apt-get install kubuntu-desktop

agora, desta vez, funcionará.

    
por Sukupa91 30.11.2013 / 07:34