解决Ubuntu下boot分区剩余空间不足

原文转自: https://www.2cto.com/os/201305/208245.html


Ubuntu下boot分区剩余空间不足解决


 经常升级 系统,出现了上图的提示,解决办法:

1.dpkg --get-selections |grep linux-image 查看已安装的linux-image各版本

2.uname -a 一般使用的都是最新版,如上图的3.8.0-19,但保险起见,确认下

3.sudo apt-get purge linux-image-3.5.0-27-generic使用purge卸载3.5.0-27,若使用remove卸载则会有类似3.5.0-17的遗留
4.再次运行dpkg --get-selections |grep linux-image查看情况

5.卸载完后可以用df命令看下boot分区的空间使用情况。

6.对于图中因使用remove命令而残留的deinstall的,使用sudo dpkg -P linux-image-extra-3.5.0-17-generic

猜你喜欢

转载自blog.csdn.net/hjq376247328/article/details/78608330