J'ai ajouté ppa:kubuntu-ppa/backports
de la manière habituelle, puis effectué un dist-upgrade
. Il fallait télécharger plus de gigaoctets de fichiers, donc je suis parti si pour l'après-midi. À mon retour, j'ai constaté que le système était devenu très instable et inutilisable.
Je me suis connecté à la console et l'ai redémarré à partir de là et quand je suis rentré, les choses sont un peu fouillies.
J'ai couru Sudo apt-get -f dist-upgrade
et a remarqué ce qui suit dans la sortie:
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)
Idéalement, j'aimerais satisfaire les dépendances, donc si possible, quelqu'un peut-il vous conseiller comment le faire s'il vous plaît. À défaut, veuillez indiquer comment revenir à la configuration précédente.
Merci.
Utilisation d'Ubuntu 12.04 avec le noyau 3.8.0-34-generic # 49 ~ precise1-Ubuntu
** MISE À JOUR **
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
MISE À JOUR 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
MISE À JOUR
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:
MISE À JOUR 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)
Tous vos packages doivent être de la même version:
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
Après cela, vous devriez vérifier à nouveau: Sudo apt-get check
. Il ne devrait pas y avoir d'autre erreur.
Si pour une raison quelconque la solution ci-dessus n'a pas fonctionné, utilisez aptitude
:
Sudo apt-get install aptitude
Sudo aptitude -f install
Il devrait vous présenter une série de solutions possibles, sélectionnez celle qui ne désinstalle aucun package et/ou mettez à niveau les packages. Je ne peux pas donner d'exemple pour le moment.
Suspect: je crois que kde-workspace-data
est trop mis à jour et pourrait casser des choses (kdm), mais pour une raison quelconque, kdm n'est pas avec la même version (darn PPA maintaners), donc l'installation de 4:4.8.5-0ubuntu0.3
et la mise à niveau de kdm devrait résoudre le problème:
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
Peut-être que le package est dans un très mauvais état incohérent, vous devez le réinstaller en -
Sudo apt-get --reinstall install kubuntu-desktop
et redémarrez une fois, j'espère que cela fonctionnera.Si ce n'est pas le cas, désactivez le référentiel de rétroportages kubuntu en accédant à Software & Updates > Other Sources
, puis essayez
Sudo apt-get update
Sudo apt-get install kubuntu-desktop
cette fois, cela fonctionnera.