查看当前系统启动用的内核版本
root@zhouss:/boot#uname-rm 4.4.0-92-genericx86_64 root@zhouss:/boot#
列出安装过的内核版本
root@zhouss:/boot#dpkg--get-selections|greplinux-image linux-image-4.4.0-21-generic deinstall linux-image-4.4.0-45-generic deinstall linux-image-4.4.0-47-generic deinstall linux-image-4.4.0-51-generic deinstall linux-image-4.4.0-53-generic deinstall linux-image-4.4.0-57-generic deinstall linux-image-4.4.0-59-generic deinstall linux-image-4.4.0-62-generic deinstall linux-image-4.4.0-64-generic deinstall linux-image-4.4.0-66-generic deinstall linux-image-4.4.0-67-generic deinstall linux-image-4.4.0-71-generic deinstall linux-image-4.4.0-72-generic deinstall linux-image-4.4.0-75-generic install linux-image-4.4.0-78-generic install linux-image-4.4.0-79-generic install linux-image-4.4.0-81-generic install linux-image-4.4.0-83-generic install linux-image-4.4.0-87-generic install linux-image-4.4.0-89-generic install linux-image-4.4.0-91-generic install linux-image-4.4.0-92-generic install linux-image-4.4.0-93-generic install linux-image-extra-4.4.0-21-generic deinstall linux-image-extra-4.4.0-45-generic deinstall linux-image-extra-4.4.0-47-generic deinstall linux-image-extra-4.4.0-51-generic deinstall linux-image-extra-4.4.0-53-generic deinstall linux-image-extra-4.4.0-57-generic deinstall linux-image-extra-4.4.0-59-generic deinstall linux-image-extra-4.4.0-62-generic deinstall linux-image-extra-4.4.0-64-generic deinstall linux-image-extra-4.4.0-66-generic deinstall linux-image-extra-4.4.0-67-generic deinstall linux-image-extra-4.4.0-71-generic deinstall linux-image-extra-4.4.0-72-generic deinstall linux-image-extra-4.4.0-75-generic install linux-image-extra-4.4.0-78-generic install linux-image-extra-4.4.0-79-generic install linux-image-extra-4.4.0-81-generic install linux-image-extra-4.4.0-83-generic install linux-image-extra-4.4.0-87-generic install linux-image-extra-4.4.0-89-generic install linux-image-extra-4.4.0-91-generic install linux-image-extra-4.4.0-92-generic install linux-image-extra-4.4.0-93-generic install linux-image-extra-4.4.0-96-generic install root@zhouss:/boot#
把与当前版本不符的全部删除,只保留92版的两个包
root@zhouss:/boot#apt-getautoremovelinux-image-4.4.0-75-generic root@zhouss:/boot#apt-getautoremovelinux-image-extra-4.4.0-75-generic 类似的,把其他版一一删除 提示:/boot分区没有空间,可能导致无法卸载。
重新平衡:
root@zhouss:/boot#apt-getautoremove-f root@zhouss:/boot#apt-getinstall-f
重启系统
root@zhouss:/boot#reboot