升级时发现boot,空间满了,卸载之前的内核,清理空间。html
如何升级内核请查看我上篇博客:https://www.cnblogs.com/junsec/p/11453049.htmllinux
卸载多余内核,清理bootbash
一、查看当前内核版本code
uname -a
二、肯定系统安装的header和imagehtm
dpkg --list|grep linux-image dpkg --list|grep linux-headers
三、卸载多余的header和imageblog
apt-get remove --purge linux-headers-xxxx apt-get remove --purge linux-image-xxx
四、清理rem
apt-get autoclean apt-get autoremove
五、更新grub,这也是我踩坑的点,没有更新grub,直接重启,结果就很惨get
update-grub2
六、重启,就能够了博客
reboot