J'ai de la difficulté à trouver certaines solutions pour créer de la place sur ma partition de démarrage ... J'ai lu et compris autoremove
- J'ai lu et compris apt-get -f install
. Mais mon problème est un peu différent de toutes les questions qui ont des réponses. Tout le monde dit de supprimer manuellement tous les noyaux sauf les 3 derniers. Voici ma réservation.
Lorsque j'émets la commande uname -r
, je reçois:
4.4.0-78-generic
Quand j'émets dpkg --list 'linux-image*'
, je reçois:
rc linux-image-4.4.0-31-generic 4.4.0-31.50 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-62-generic 4.4.0-62.83 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-63-generic 4.4.0-63.84 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-64-generic 4.4.0-64.85 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-66-generic 4.4.0-66.87 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-70-generic 4.4.0-70.91 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-71-generic 4.4.0-71.92 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-72-generic 4.4.0-72.93 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc linux-image-4.4.0-75-generic 4.4.0-75.96 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-78-generic 4.4.0-78.99 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-79-generic 4.4.0-79.100 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-81-generic 4.4.0-81.104 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-83-generic 4.4.0-83.106 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-87-generic 4.4.0-87.110 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-89-generic 4.4.0-89.112 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-91-generic 4.4.0-91.114 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-92-generic 4.4.0-92.115 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-93-generic 4.4.0-93.116 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iF linux-image-4.4.0-96-generic 4.4.0-96.119 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iF linux-image-4.4.0-97-generic 4.4.0-97.120 AMD64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
in linux-image-4.4.0-98-generic <none> AMD64 (no description available)
rc linux-image-extra-4.4.0-31-generic 4.4.0-31.50 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-62-generic 4.4.0-62.83 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-63-generic 4.4.0-63.84 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-64-generic 4.4.0-64.85 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-66-generic 4.4.0-66.87 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-70-generic 4.4.0-70.91 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-71-generic 4.4.0-71.92 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-72-generic 4.4.0-72.93 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc linux-image-extra-4.4.0-75-generic 4.4.0-75.96 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-78-generic 4.4.0-78.99 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-79-generic 4.4.0-79.100 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-81-generic 4.4.0-81.104 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-83-generic 4.4.0-83.106 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-87-generic 4.4.0-87.110 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-89-generic 4.4.0-89.112 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-91-generic 4.4.0-91.114 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-92-generic 4.4.0-92.115 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iF linux-image-extra-4.4.0-93-generic 4.4.0-93.116 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-extra-4.4.0-96-generic 4.4.0-96.119 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-extra-4.4.0-97-generic 4.4.0-97.120 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-extra-4.4.0-98-generic 4.4.0-98.121 AMD64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
iU linux-image-generic 4.4.0.98.103 AMD64 Generic Linux kernel image
J'ai essayé apt-get autoremove
, mais j'ai obtenu:
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:
linux-image-extra-4.4.0-98-generic : Depends: linux-image-4.4.0-98-generic but it is not installed
linux-image-generic : Depends: linux-image-4.4.0-98-generic but it is not installed
Recommends: thermald but it is not installed
E: Unmet dependencies. Try using -f.
J'essaie alors de résoudre les dépendances via Sudo apt-get -f install
et d'obtenir:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic linux-headers-4.4.0-87
linux-headers-4.4.0-87-generic linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic
linux-image-4.4.0-79-generic linux-image-4.4.0-81-generic linux-image-4.4.0-83-generic linux-image-4.4.0-87-generic linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic linux-image-4.4.0-92-generic
linux-image-extra-4.4.0-79-generic linux-image-extra-4.4.0-81-generic linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic linux-image-extra-4.4.0-89-generic
linux-image-extra-4.4.0-91-generic linux-image-extra-4.4.0-92-generic
Use 'Sudo apt autoremove' to remove them.
The following additional packages will be installed:
linux-image-4.4.0-98-generic
Suggested packages:
fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
linux-image-4.4.0-98-generic
0 upgraded, 1 newly installed, 0 to remove and 99 not upgraded.
12 not fully installed or removed.
Need to get 0 B/21.9 MB of archives.
After this operation, 67.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 446621 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-98-generic_4.4.0-98.121_AMD64.deb ...
Done.
Unpacking linux-image-4.4.0-98-generic (4.4.0-98.121) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-98-generic_4.4.0-98.121_AMD64.deb (--unpack):
cannot copy extracted data for './boot/vmlinuz-4.4.0-98-generic' to '/boot/vmlinuz-4.4.0-98-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-98-generic /boot/vmlinuz-4.4.0-98-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-image-4.4.0-98-generic_4.4.0-98.121_AMD64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Voici où je suis confus .. J'utilise la version 4.4.0-78-generic selon uname -r
. Pourtant, littéralement, toutes les réponses que j'ai lues à ce jour disent de supprimer tout sauf les 3 derniers! Cela voudrait dire retirer le noyau que j'utilise actuellement correctement ??
J'ai même essayé: Sudo apt-get remove linux-image-4.4.0-31-generic
qui est le plus ancien d'après dpkg --list 'linux-image*'
et j'obtiens:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'linux-image-4.4.0-31-generic' 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-extra-4.4.0-98-generic : Depends: linux-image-4.4.0-98-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-98-generic but it is not going to be installed
Recommends: thermald but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Pas installé?! Je suis complètement confus. Après avoir vu cette débâcle, quelle est ma prochaine action? Quelqu'un peut-il expliquer pourquoi il existe des versions de noyau SUPÉRIEURES à celles que j'utilise actuellement? Et comment puis-je résoudre ce problème sur un serveur de production?
CE IS PAS UN DUPLICATA DE Ma partition/boot a atteint 100% et maintenant je ne peux pas mettre à jour. Peut ne retirez pas les vieux noyaux pour faire de la place As:
1) Cet OP ne résout pas le problème de noyaux en conflit. 2) n'aborde pas la sécurité de le faire dans un environnement de production
Commencez par installer le paquet suivant:
Sudo apt install byobu
Ensuite, vous pouvez supprimer les noyaux inutilisés avec la commande suivante:
Sudo purge-old-kernels
Cela devrait aider à libérer de l'espace.
Pour information vérifier cet article .