questa mattina stavo aggiornando la mia Debian Buster e dopo aver dato sudo aptitude safe-upgrade ho ricevuto questo output:
- Codice: Seleziona tutto
update-initramfs: Generating /boot/initrd.img-4.16.0-2-amd64
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.16.0-2-amd64 with 1.
dpkg: errore nell'elaborare il pacchetto initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Elaborazione dei trigger per libc-bin (2.27-3)...
Si sono verificati degli errori nell'elaborazione:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
Configurazione di initramfs-tools (0.130)...
update-initramfs: deferring update (trigger activated)
Elaborazione dei trigger per initramfs-tools (0.130)...
update-initramfs: Generating /boot/initrd.img-4.16.0-2-amd64
gzip: stdout: No space left on device
cpio: errore di scrittura: Pipe interrotta
E: mkinitramfs failure cpio 2 gzip 1
update-initramfs: failed for /boot/initrd.img-4.16.0-2-amd64 with 1.
dpkg: errore nell'elaborare il pacchetto initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Si sono verificati degli errori nell'elaborazione:
initramfs-tools
Mi sembra di capire che ho la partizione /boot piena (usando LVM con full disk encryption ho la partizione di boot separata.
Devo quindi eliminare una qualche linux-image vecchia. Dando il comando aptitude search ~ilinux-image vedo che ho:
- Codice: Seleziona tutto
i A linux-image-4.14.0-3-amd64 - Linux 4.14 for 64-bit PCs
i A linux-image-4.15.0-2-amd64 - Linux 4.15 for 64-bit PCs
i A linux-image-4.15.0-3-amd64 - Linux 4.15 for 64-bit PCs
i A linux-image-4.16.0-1-amd64 - Linux 4.16 for 64-bit PCs
i A linux-image-4.16.0-2-amd64 - Linux 4.16 for 64-bit PCs
i linux-image-4.9.0-3-amd64 - Linux 4.9 for 64-bit PCs
i A linux-image-4.9.0-5-amd64 - Linux 4.9 for 64-bit PCs
i linux-image-amd64 - Linux per PC a 64 bit (metapacchetto)
Provo ad eliminare l'immagine 4.9.0-3-amd64 (visto che non è una dipendenza), ma cmq output ho:
- Codice: Seleziona tutto
sudo apt-get autoremove linux-image-4.9.0-3-amd64
[sudo] password di leo:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno RIMOSSI:
linux-image-4.14.0-3-amd64 linux-image-4.15.0-2-amd64 linux-image-4.15.0-3-amd64
linux-image-4.9.0-3-amd64 linux-image-4.9.0-5-amd64
0 aggiornati, 0 installati, 5 da rimuovere e 5 non aggiornati.
1 non completamente installati o rimossi.
Dopo quest'operazione, verranno liberati 1'141 MB di spazio su disco.
Continuare? [S/n]
Cioè mi vuole eliminare tutti ikernel che ho in /boot? Prima di fare qualche cavolata ho risposto di "no".
Cosa mi consigliate di fare?
Ciao ciao leo:)