Я использую 14.04 LTS.
Обновления ядра не будут устанавливаться или удаляться. Загрузочное пространство (примерно 240 Мб) теперь заполнено, и использование sudo apt-get autoremove
, autoclean
, clean
или remove
не будет работать.
Все началось с обновления ядра 3.13.0-47.
Место не освобождается и появляется следующее...
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 60 not to upgrade.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.13.0-47-generic (3.13.0-47.78) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-48-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-47-generic /boot/vmlinuz-3.13.0-47-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-47-generic /boot/vmlinuz-3.13.0-47-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-47-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-47-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-47-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-47-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.13.0-48-generic (3.13.0-48.80) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.13.0-47-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-48-generic /boot/vmlinuz-3.13.0-48-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-48-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-48-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.13.0-48-generic.postinst line 1025.
dpkg: error processing package linux-image-3.13.0-48-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-48-generic:
linux-image-extra-3.13.0-48-generic depends on linux-image-3.13.0-48-generic; however:
Package linux-image-3.13.0-48-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.13.0-48-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-3.13.0-48-generic; however:
Package linux-image-3.13.0-48-generic is not configured yet.
linux-image-generic depends on linux-image-extra-3.13.0-48-generic; however:
Package linux-image-extra-3.13.0-48-generic is not configured yet.
dpkg: error processing package linux-image-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.13.0.48.55); however:
Package linux-image-generic is not cNo apport report written because the error message indicates it's a follow-up error from a previous failure.
No apport report written because MaxReports has already been reached
No apport report written because MaxReports has already been reached
onfigured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-extra-3.13.0-46-generic (3.13.0-46.79) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-46-generic /boot/vmlinuz-3.13.0-46-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-46-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-46-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-3.13.0-46-generic (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports has already been reached
dpkg: dependency problems prevent configuration of linux-image-extra-3.13.0-47-generic:
linux-image-extra-3.13.0-47-generic depends on linux-image-3.13.0-47-generic; however:
Package linux-image-3.13.0-47-generic is not configured yet.
> dpkg: error processing package linux-image-extra-3.13.0-47-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports has already been reached
E: Sub-process /usr/bin/dpkg returned an error code (1)
Как это можно исправить без переустановки? Я пробовал изменить размер загрузочной области, но GParted не позволяет.
решение1
У меня была та же проблема. После выполнения df -h я увидел, что мой /boot
был почти полон. Я прошел черезэто руководстводля удаления старых версий ubuntu. Теперь обновление работает нормально. Это немного странно, потому что обычно я получаю сообщение об ошибке, сообщающее, /boot
что почти заполнено, а не неописательное сообщение об ошибке.