web-dev-qa-db-fra.com

Dépendances non satisfaites lorsque j'ai essayé de libérer des noyaux non utilisés

Je cours 12.04.

J'ai lu ceci https://askubuntu.com/a/90219/18876 comme référence.

J'ai vérifié tout ce que j'ai.

yeukhon@fubini:~$ aptitude search ~ilinux-image
i   linux-image-3.2.0-29-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-31-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-32-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-33-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-34-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-35-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-36-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-37-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-38-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
i   linux-image-3.2.0-39-generic-pae     - Linux kernel image for version 3.2.0 on 32 bit 
BB  linux-image-generic-pae              - Generic Linux kernel image

Je pense que j'utilise 39?

yeukhon@fubini:~$ uname -a
Linux fubini 3.2.0-39-generic-pae #62-Ubuntu SMP Wed Feb 27 22:25:11 UTC 2013 i686 i686 i386 GNU/Linux

J'ai donc commencé à purger comme suggéré dans la référence.

Sudo apt-get purge linux-image-3.2.0-29 linux-image-3.2.0-30 linux-image-3.2.0-31 linux-image-3.2.0-32 linux-image-3.2.0-33 linux-image-3.2.0-34 linux-image-3.2.0-35 linux-image-3.2.0-36 linux-image-3.2.0-37 linux-image-3.2.0-38
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'linux-image-3.2.0-29-generic-pae' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-powerpc64-smp' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-virtual' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-generic' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-powerpc-smp' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-highbank' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-29-omap' for regex 'linux-image-3.2.0-29'
Note, selecting 'linux-image-3.2.0-30-powerpc64-smp' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-highbank' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-powerpc-smp' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-virtual' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-generic' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-generic-pae' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-30-omap' for regex 'linux-image-3.2.0-30'
Note, selecting 'linux-image-3.2.0-31-generic' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-generic-pae' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-highbank' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-omap' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-powerpc64-smp' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-powerpc-smp' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-31-virtual' for regex 'linux-image-3.2.0-31'
Note, selecting 'linux-image-3.2.0-32-powerpc-smp' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-highbank' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-virtual' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-generic-pae' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-generic' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-powerpc64-smp' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-32-omap' for regex 'linux-image-3.2.0-32'
Note, selecting 'linux-image-3.2.0-33-powerpc64-smp' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-powerpc-smp' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-omap' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-virtual' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-generic-pae' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-lowlatency-pae' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-generic' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-lowlatency' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-33-highbank' for regex 'linux-image-3.2.0-33'
Note, selecting 'linux-image-3.2.0-34-generic-pae' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-powerpc64-smp' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-virtual' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-generic' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-powerpc-smp' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-highbank' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-34-omap' for regex 'linux-image-3.2.0-34'
Note, selecting 'linux-image-3.2.0-35-powerpc-smp' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-generic-pae' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-omap' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-virtual' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-powerpc64-smp' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-generic' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-lowlatency-pae' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-lowlatency' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-35-highbank' for regex 'linux-image-3.2.0-35'
Note, selecting 'linux-image-3.2.0-36-powerpc-smp' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-lowlatency' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-highbank' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-powerpc64-smp' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-generic-pae' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-virtual' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-lowlatency-pae' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-omap' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-36-generic' for regex 'linux-image-3.2.0-36'
Note, selecting 'linux-image-3.2.0-37-virtual' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-generic' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-lowlatency' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-highbank' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-omap' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-powerpc64-smp' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-powerpc-smp' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-lowlatency-pae' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-37-generic-pae' for regex 'linux-image-3.2.0-37'
Note, selecting 'linux-image-3.2.0-38-highbank' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-lowlatency' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-generic-pae' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-virtual' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-generic' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-lowlatency-pae' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-omap' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-powerpc64-smp' for regex 'linux-image-3.2.0-38'
Note, selecting 'linux-image-3.2.0-38-powerpc-smp' for regex 'linux-image-3.2.0-38'
Package linux-image-3.2.0-29-generic is not installed, so not removed
Package linux-image-3.2.0-29-virtual is not installed, so not removed
Package linux-image-3.2.0-30-generic is not installed, so not removed
Package linux-image-3.2.0-30-generic-pae is not installed, so not removed
Package linux-image-3.2.0-30-virtual is not installed, so not removed
Package linux-image-3.2.0-31-generic is not installed, so not removed
Package linux-image-3.2.0-31-virtual is not installed, so not removed
Package linux-image-3.2.0-32-generic is not installed, so not removed
Package linux-image-3.2.0-32-virtual is not installed, so not removed
Package linux-image-3.2.0-33-generic is not installed, so not removed
Package linux-image-3.2.0-33-virtual is not installed, so not removed
Package linux-image-3.2.0-34-generic is not installed, so not removed
Package linux-image-3.2.0-34-virtual is not installed, so not removed
Package linux-image-3.2.0-35-generic is not installed, so not removed
Package linux-image-3.2.0-35-virtual is not installed, so not removed
Package linux-image-3.2.0-36-generic is not installed, so not removed
Package linux-image-3.2.0-36-virtual is not installed, so not removed
Package linux-image-3.2.0-37-generic is not installed, so not removed
Package linux-image-3.2.0-37-virtual is not installed, so not removed
Package linux-image-3.2.0-38-generic is not installed, so not removed
Package linux-image-3.2.0-38-virtual is not installed, so not removed
Package linux-image-3.2.0-33-lowlatency is not installed, so not removed
Package linux-image-3.2.0-33-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-35-lowlatency is not installed, so not removed
Package linux-image-3.2.0-35-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-36-lowlatency is not installed, so not removed
Package linux-image-3.2.0-36-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-37-lowlatency is not installed, so not removed
Package linux-image-3.2.0-37-lowlatency-pae is not installed, so not removed
Package linux-image-3.2.0-38-lowlatency is not installed, so not removed
Package linux-image-3.2.0-38-lowlatency-pae is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-generic-pae : Depends: linux-image-3.2.0-40-generic-pae but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Maintenant, je ne sais pas comment procéder, surtout je ne veux pas déranger l'ordinateur. Des idées? Merci.


Solution

J'ai trouvé Ma partition/boot a atteint 100% et je ne peux plus mettre à niveau. Je ne peux pas supprimer les anciens noyaux pour faire de la place plus tard. En gros, j'ai suivi ses conseils de [removing] old vmlinuz initrd, abi and System.map files individually jusqu'à ce que je dispose de suffisamment d'espace libre. Je n'ai besoin que de supprimer les deux premiers.

Ensuite, je fais Sudo apt-get install -f et utilise enfin le petit script bash de @ Salem pour supprimer la plupart des anciens noyaux. J'ai gardé les deux derniers comme suggéré. Redémarrez à la fin, puis si je fais uname -a je verrai que le nouveau noyau est maintenant installé (dans mon cas, il s'agit de 40).

3
CppLearner

Je pense que votre problème est qu’apt essaie d’installer/supprimer linux-image-generic-pae, ce qui devrait indiquer le dernier noyau disponible (qui est linux-image-3.2.0-40-generic-pae), mais le dernier noyau que vous avez installé est le *39. .

Je vous suggère donc de lancer la commande suggérée par apt avec --dry-run (cela ne fera que simuler ce que apt ferait):

Sudo apt-get -f install --dry-run

Cela vous permettra de savoir ce que apt essaie de faire, et vous pourrez alors décider s’il est ok ou non (s’il essaye d’installer le plus récent noyau qui est ok, s’il essaye de supprimer celui que vous utilisez, il vaut mieux essayez autre chose).

Après cela, le meilleur moyen consiste probablement à supprimer chaque noyau manuellement (dans votre sortie apt-get purge, il semble que tout est sélectionné correctement). Vous pouvez spécifier chaque commande seule ou vous pouvez faire quelque chose comme:

for version in {29..38}; do
echo "Removing kernel 3.2.0-$version"
Sudo apt-get remove linux-image-3.2.0-$version-generic-pae
done
4
Salem