Ubuntu prompts solution for insufficient boot space

When the system is used for a long time, various problems will appear. This is particularly obvious for Windows, and Linux is no exception. Of course, Linux is definitely far better than Windows in terms of stability. My computer’s Ubuntu system has been in use for almost two years, and there has just been a warning that there is only 0 bytes of hard disk space left in the volume boot . Simply put, the boot space is insufficient . Then we will talk about the solution to Ubuntu prompting insufficient boot space.

 

Not enough space:

 Let me check the disk space:

 It is indeed full.

The /boot directory contains the system boot files and kernel. 100M of space is sufficient. However, since the old kernel is still stored in it after the kernel is updated, it will prompt that the /boot space is insufficient when installing the software. The best solution is to change Remove unused old kernels.

1. View information about the kernel used by the current system.

run uname -a

You can see the output is:

 So the kernel of Linux vagrant 4.4.0-197-generic is used.

Second, view the installed kernel information

 At this time, you can delete other mirrors, and the following errors may be reported:

 

 Then let me execute the command to repair dependencies:

 Then it prompts that there is not enough space, Nima, isn't this entering an endless loop? Nest!

 Don't worry, then I will force delete other useless mirrors directly:

 Follow the above and then delete other mirrors. At this time, you can see that boot has freed up a lot of space!

 

Guess you like

Origin blog.csdn.net/lchmyhua88/article/details/113932215