Недостаточно памяти в /boot во время обновления ядра - повреждено ядро

Я запустил apt-get upgrade для обновления моего ядра вчера (ubuntu 15.04) и /boot не хватило памяти (обычно, если недостаточно места, это мешает запуску задачи обновления)

Я случайно удалил активное ядро, заставив меня выполнить следующие действия: Как восстановить систему после случайного удаления всех ядер?

Я застрял на шаге 13, так как предыдущая ошибка памяти мешает мне установить текущее ядро ​​или обновить оставшееся ядро.

Обновление выдает следующую ошибку

    root@ubuntu:/# apt-get -y upgrade linux-image-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... linux-image-generic is already the newest version.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.19.0-31-generic (3.19.0-31.36) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Failed to symbolic-link boot/initrd.img-3.19.0-31-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-3.19.0-31-generic.postinst line 629.
dpkg: error processing package linux-image-3.19.0-31-generic (--configure):
 subprocess installed post-installation script returned error exit status 17
dpkg: dependency problems prevent configuration of linux-image-extra-3.19.0-31-generic:
 linux-image-extra-3.19.0-31-generic depends on linux-image-3.19.0-31-generic; however:
  Package linux-image-3.19.0-31-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.19.0-31-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-3.19.0-31-generic:
 linux-signed-image-3.19.0-31-generic depends on linux-image-3.19.0-31-generic (= 3.19.0-31.36); however:
  Package linux-image-3.19.0-31-generic is not configured yet.
 linux-signed-image-3.19.0-31-generic depends on linux-image-extra-3.19.0-31-generic (= 3.19.0-31.36); however:
  Package linux-image-extra-3.19.0-31-generic is not configured yet.

dpkg: error processing package linux-signed-image-3.19.0-31-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
       Errors were encountered while processing:
 linux-image-3.19.0-31-generic
 linux-image-extra-3.19.0-31-generic
 linux-signed-image-3.19.0-31-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я также попытался очистить и установить свежие, без кости из-за той же ошибки

root@ubuntu:/# sudo apt-get purge Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-3.19.0-31-generic (3.19.0-31.36) ... Running depmod. update-initramfs: deferring update (hook will be called later) Failed to symbolic-link boot/initrd.img-3.19.0-31-generic to initrd.img:File exists at /var/lib/dpkg/info/linux-image-3.19.0-31-generic.postinst line 629. dpkg: error processing package linux-image-3.19.0-31-generic (--configure):  subprocess installed post-installation script returned error exit status 17 dpkg: dependency problems prevent configuration of linux-image-extra-3.19.0-31-generic:  linux-image-extra-3.19.0-31-generic depends on linux-image-3.19.0-31-generic; however:   Package linux-image-3.19.0-31-generic is not configured yet.

dpkg: error processing package linux-image-extra-3.19.0-31-generic (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-signed-image-3.19.0-31-generic:  linux-signed-image-3.19.0-31-generic depends on linux-image-3.19.0-31-generic (= 3.19.0-31.36); however:   Package linux-image-3.19.0-31-generic is not configured yet.  linux-signed-image-3.19.0-31-generic depends on linux-image-extra-3.19.0-31-generic (= 3.19.0-31.36); however:   Package linux-image-extra-3.19.0-31-generic is not configured yet.

dpkg: error processing package linux-signed-image-3.19.0-31-generic (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
       Errors were encountered while processing:  linux-image-3.19.0-31-generic  linux-image-extra-3.19.0-31-generic  linux-signed-image-3.19.0-31-generic E: Sub-process /usr/bin/dpkg returned an error code (1)

Я полагаю, что это требует своего собственного вопроса, так как это вопрос dpkg, а не тот, который напрямую связан с вопросом выше

1 ответ

Не зная, что еще делать, я просто удалил пакет

sudo apt-get remove linux-image-extra-3.19.0-31-generic

и переустановил его

apt-get -y upgrade linux-image-generic

Кажется, сделал трюк

Другие вопросы по тегам