升级时发现boot,空间满了,卸载以前的内核,清理空间。

如何升级内核请查看我上篇博客:https://www.cnblogs.com/junsec/p/11453049.html

 

卸载多余内核,清理boot

1、查看当前内核版本

uname -a

 

2、确定系统安装的header和image

dpkg --list|grep linux-image
dpkg --list|grep linux-headers

 

3、卸载多余的header和image

apt-get remove --purge linux-headers-xxxx
apt-get remove --purge linux-image-xxx

 

4、清理

apt-get autoclean
apt-get autoremove

 

5、更新grub,这也是我踩坑的点,没有更新grub,直接重启,结果就很惨

update-grub2

 

6、重启,就可以了

reboot

  

 

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2022-03-06
  • 2021-06-04
  • 2022-12-23
  • 2021-08-27
  • 2021-10-17
  • 2021-10-22
猜你喜欢
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-08-23
  • 2021-07-03
相关资源
相似解决方案