先查看系统内核版本linux
uname -a
查看全部内核版本bash
dpkg --get-selections|grep linux
删除旧内核版本ide
apt autoremove --purge 或 apt-get remove linux-image-* apt-get remove linux-headers-*
列出已经删除可是状态为deinstall的内核spa
dpkg --get-selections | grep deinstall | cut -f1
删除状态为deinstall的内核blog
dpkg --purge `sudo dpkg --get-selections | grep deinstall | cut -f1`