16.04 - o kernel mais recente não pode ser removido

0

Meu som parou de funcionar depois de atualizar para linux-image-4.4.8-040408 (estou usando 16.04). Eu tentei as etapas especificadas aqui help.ubuntu.com

mas ficou preso ao tentar executar

sudo apt-get install linux-image-extra-'uname -r'

com a seguinte mensagem de erro:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-4.4.8-040408
E: Couldn't find any package by glob 'linux-image-4.4.8-040408'
E: Couldn't find any package by regex 'linux-image-4.4.8-040408''

No entanto, o kernel aparece em grub :

sudo update-grub


Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT     is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.8-040408-generic
Found initrd image: /boot/initrd.img-4.4.8-040408-generic
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done

Então, estranhamente, o grub encontra o kernel (eu também posso inicializar com o kernel), mas não consigo reinstalar ou removê-lo.

dpkg -l | grep linux-image

rendimentos

ii  linux-image-4.4.0-21-generic                4.4.0-21.37                                                    amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-28-generic                4.4.0-28.47                                                 amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-21-generic          4.4.0-21.37                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-28-generic          4.4.0-28.47                                                 amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP

Eu ficaria grato por qualquer sugestão sobre como remover a entrada do grub, ou fazer uma reinstalação limpa do kernel.

    
por David 09.07.2016 / 14:17

1 resposta

1

Parece que o linux-image-4.4.8-040408 foi instalado manualmente sem usar o pacote Debian.

Inicialize com o kernel 4.4.0-28 selecionado no menu grub e, em seguida, exclua manualmente os arquivos 4.4.8 do kernel de /boot .

Em seguida, execute

sudo update-grub
    
por Pilot6 09.07.2016 / 14:29