方法一:
1、查看系统下可使用的内核有哪些
dpkg --get-selectiongs|grep linux-image
liming@CM:~$ dpkg --get-selections|grep linux-image
linux-image-3.8.0-29-generic deinstall
linux-image-3.8.0-31-generic install
linux-image-3.8.0-32-generic install
linux-image-generic-lts-raring install
2、删除旧版本的内核
sudo apt-get remove linux-image-3.8.0-31-generic
方法二:
ls /usr/src/ 查看老版本的内核
liming@CM:/usr/src$ ls
linux linux-headers-3.8.0-32
linux-headers-3.8.0-29 linux-headers-3.8.0-32-generic
linux-headers-3.8.0-29-generic linux-source-3.2.0
linux-headers-3.8.0-31 linux-source-3.2.0.tar.bz2
linux-headers-3.8.0-31-generic
删除老版本内核
sudo apt-get autoremove linux-headers-3.8.0-29 linux-headers-3.8.0-31