sudo apt-get remove linux-headers-2.6.32-21-generic

8、删除完后,再用命令:dpkg --get-selections | grep linux 查看当前内核启动选项相关信息:
linux-headers-2.6.32-21 已经没有了,被删除了
linux-headers-2.6.32-21-generic已经没有了,被删除了
linux-image-2.6.32-21-generic 显示为deinstall,表示被卸载删除了

9、 虽然在卸载旧内核的时候提示信息说已经帮我们更新了系统启动项,但为了保险起见我们执行sudo update-grub更新开机启动控制文件。











