Too Many Kernel Images

1

Eu fiz o upgrade do Ubuntu 12.04 LTS para o 14.04 LTS

Quando tento executar sudo apt-get upgrade , obtenho:

Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-33-generic /boot/vmlinuz-3.2.0-33-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-33-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-33-generic /boot/vmlinuz-3.2.0-33-generic
Generating grub configuration file ...
cat: /video.lst: No such file or directory
/usr/sbin/grub-probe: error: failed to get canonical path of ''.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 64
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-33-generic.postrm line 328.
dpkg: error processing package linux-image-3.2.0-33-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing linux-image-3.2.0-34-generic (3.2.0-34.53) ...

Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-34-generic /boot/vmlinuz-3.2.0-34-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-34-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-34-generic /boot/vmlinuz-3.2.0-34-generic
Generating grub configuration file ...
cat: /video.lst: No such file or directory
/usr/sbin/grub-probe: error: failed to get canonical path of ''.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 64
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-34-generic.postrm line 328.
dpkg: error processing package linux-image-3.2.0-34-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing linux-image-3.2.0-35-generic (3.2.0-35.55) ...

<snip>
<snip>
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-65-generic /boot/vmlinuz-3.2.0-65-generic
update-initramfs: Deleting /boot/initrd.img-3.2.0-65-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-65-generic /boot/vmlinuz-3.2.0-65-generic
Generating grub configuration file ...
cat: /video.lst: No such file or directory
/usr/sbin/grub-probe: error: failed to get canonical path of ''.
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try 'grub-probe --help' or 'grub-probe --usage' for more information.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 64
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-65-generic.postrm line 328.
dpkg: error processing package linux-image-3.2.0-65-generic (--remove):
 subprocess installed post-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-image-3.2.0-26-generic
 linux-image-3.2.0-27-generic
 linux-image-3.2.0-29-generic
 linux-image-3.2.0-30-generic
 linux-image-3.2.0-31-generic
 linux-image-3.2.0-32-generic
 linux-image-3.2.0-33-generic
 linux-image-3.2.0-34-generic
 linux-image-3.2.0-35-generic
 linux-image-3.2.0-36-generic
 linux-image-3.2.0-37-generic
 linux-image-3.2.0-38-generic
 linux-image-3.2.0-39-generic
 linux-image-3.2.0-40-generic
 linux-image-3.2.0-41-generic
 linux-image-3.2.0-43-generic
 linux-image-3.2.0-44-generic
 linux-image-3.2.0-45-generic
 linux-image-3.2.0-48-generic
 linux-image-3.2.0-49-generic
 linux-image-3.2.0-51-generic
 linux-image-3.2.0-52-generic
 linux-image-3.2.0-53-generic
 linux-image-3.2.0-54-generic
 linux-image-3.2.0-55-generic
 linux-image-3.2.0-56-generic
 linux-image-3.2.0-57-generic
 linux-image-3.2.0-58-generic
 linux-image-3.2.0-59-generic
 linux-image-3.2.0-60-generic
 linux-image-3.2.0-61-generic
 linux-image-3.2.0-63-generic
 linux-image-3.2.0-64-generic
 linux-image-3.2.0-65-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
lcable@dell9150:/boot/grub>

Eu não tenho ideia do que está errado ou como consertá-lo.

    
por LarryC 31.08.2014 / 20:16

3 respostas

1

O que significa "Não apport relatório escrito porque o MaxReports já foi atingido "significa? sugere, como o título da sua mensagem sugere, que há muitos kernels antigos instalados. A publicação oferece vários métodos para remover kernels antigos. Veja também: Removendo kernels antigos para um método de listar todos os kernels instalados, retenha os dois últimos (atual mais um "backup") e remova as versões anteriores.

    
por CentaurusA 31.08.2014 / 20:46
0

Minha sugestão é instalar o removedor de kernel.

removedor de kernel

Ferramenta para remoção dos pacotes do kernel Linux.

Esta ferramenta lida com as tarefas comuns durante o manuseio de kernels de teste, a remoção de imagens de kernel obsoletas, cabeçalhos, pacotes dependentes, links simbólicos e drivers associados. Crack não embalados abaixo de / lib / modules / $ KVERS serão eliminados. Nem os kernels atuais, nem os mais recentes serão oferecidos para remoção.

Mantenedor: Alf Gaida [email protected]

Fonte: link

Para instalar o kerml-remover, baixe estes arquivos:

link

link

Instale-os pelo Gdebi, para resolver dependências, primeiro creativecommons3_1.1_all.deb.

Editar: ---------------------

Teste isso:

Inicie o computador com um live-dvd-usb Trusty Tahr.

Após o carregamento da sessão, abra um terminal.

Executar no terminal:

sudo su
fdisk -l
+++Suppose that / is /dev/sda1
umount /dev/sda1
fsck -a /dev/sda1
mount /dev/sda1 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
apt-get update
apt-get autoremove
apt-get clean
apt-get -f install
dpkg --configure -a
apt-get dist-upgrade
apt-get clean
grub-install /dev/sda
grub-install --recheck /dev/sda
update-grub
Control + D 
umount /mnt/sys
umount /mnt/proc
umount /mnt/dev
umount /mnt
reboot

Fim --------------------

    
por kyodake 31.08.2014 / 23:50
0

plz verificar este link, renomear o diretório postrm.d pode resolver o problema. Não é possível remover os kernels "run-parts: /etc/kernel/postrm.d/zz-update-grub encerrado com o código de retorno 1"

    
por xiaoyifang 30.09.2014 / 08:33