16.04——无法删除最新内核

16.04——无法删除最新内核

升级到 16.04 后,我的声音停止工作linux-image-4.4.8-040408。我尝试了此处指定的步骤帮助中心

但在尝试执行时卡住了

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

出现以下错误消息:

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''

然而,内核出现在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

奇怪的是,grub 找到了内核(我也可以使用该内核启动),但我无法重新安装或删除它。

dpkg -l | grep linux-image

产量

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

如果您能提供任何关于如何从 grub 中删除条目或者全新重新安装内核的提示,我将不胜感激。

答案1

看起来 linux-image-4.4.8-040408 已经手动安装,没有使用 Debian 打包。

4.4.0-28使用从 grub 菜单中选择的内核进行启动,然后4.4.8从中手动删除内核文件/boot

然后运行

sudo update-grub

相关内容