查询所有内核:dpkg --get-selections |grep linux正在使用的内核不能删除:uname -r删除不需要的内核:sudo apt purge XXX
dpkg --get-selections |grep linux
uname -r
sudo apt purge XXX