我正在尝试删除启动菜单上的额外条目

我正在尝试删除启动菜单上的额外条目

尝试清除下面的条目,但响应是找不到。然后我执行 grub update,它看到了条目。帮助

luisc@luisc-OptiPlex-GX280:~$ sudo apt-get purge linux-image-2.6.38-13
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-2.6.38-13
E: Couldn't find any package by regex 'linux-image-2.6.38-13'
luisc@luisc-OptiPlex-GX280:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found linux image: /boot/vmlinuz-2.6.38-13-generic
Found initrd image: /boot/initrd.img-2.6.38-13-generic
Found linux image: /boot/vmlinuz-2.6.35-31-generic
Found initrd image: /boot/initrd.img-2.6.35-31-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda1
Found Ubuntu 10.10 (10.10) on /dev/sda11
Found Ubuntu 11.10 (11.10) on /dev/sda9
done

尝试了建议的命令,这就是我得到的。

luisc@luisc-OptiPlex-GX280:~$ sudo apt-get purge linux-image-2.6.38-13-generic
[sudo] password for luisc: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-2.6.38-13-generic
E: Couldn't find any package by regex 'linux-image-2.6.38-13-generic'
luisc@luisc-OptiPlex-GX280:~$ 

答案1

您需要在purge命令行中使用完整的包名称 - 您缺少-generic后缀。

这应该有效:

sudo apt-get purge linux-image-2.6.38-13-generic

相关内容