From: http://my.oschina.net/u/947673/blog/277224
# Solution
This is because your boot partition is a separate partition. For example, I only gave 100 m, which was not installed in Ubuntu before. So when this prompt appears, I am very puzzled, the answer is found.
Why is the boot partition full?
It mainly stores some old Linux image files.
So,
Run the following command to view the Linux images in the boot partition:
Dpkg-L | grep Linux-Image
We found linux-image-3.13.0-24-generic, linux-image-3.13.0-27-generic, linux-image-3.13.0-29-generic, It's all.
We also need to know the image and so that the system is currently using. Run the following command:
Uname-R
My current version is 3.small-29-generic, so those smaller than "29" are old.
Then we will delete it/them,
If you only have one old image, use
Sudo apt-Get purge linux-image-x.x.x-xx-generic
If there are multiple, like mine
One is keep repeating sudo apt-Get purge linux-image-x.x.x-xx-generic, (of course I don't want to do this ...)
Second, you can use the following commands:
Sudo apt-Get purge linux-image-3.13.0-{24, 27}-generic
Note: Of course it cannot include "29 "!
OK. The problem can be solved now.
Below is a copy of the original answer.
Okay, so from the output/etc/fstab
You posted, it seems that your/boot
Is mounted on a separate partition, and from the outputdf -h
, That partition is full. This is because there are some old kernels installed that are not needed; this is evident from the outputdpkg -l | grep linux-image
That you posted, where you can see more than one "Linux-image" with different versions. We need to remove the old versions. First, I want you to run the commanduname -r
In a terminal, this will show you the kernel version you are currently using. It will say something like this3.5.0-26-generic
. Take a note of that number,26
! The following commands will assume that's the kernel you're running.
The command to remove the old kernel versions is:
sudo apt-get purge linux-image-x.x.x-xx-generic
... Where the X characters are numbers. So, in your case, we wowould have to run this command for each of the versions, likesudo apt-get purge linux-image-3.5.0-17-generic
,sudo apt-get purge linux-image-3.5.0-18-generic
, And so on. But, there's a way to do all of this through one command. The command is this:
sudo apt-get purge linux-image-3.5.0-{17,18,19,21,22,23,24}-generic
Do not run the command yet! Read the following.
This command will remove those versions in the brackets. I 've left out versions 3.5.0-25, 3.5.0-26, and 3.5.0-28 because from yourdpkg
Output, your 3.5.0-28 is half configured (fromiF
Status next to it), so I'm assuming that was the one that your upgrade was trying to upgrade. so, a guess wocould say that the current running kernel is 3.5.0-26, that's why I'm not including the number26
In the brackets. But again, you need to find out what version you're re runninguname -r
.If the last number from that output is one of the numbers in the brackets above, do not run the command, And let us know.
But if the last number inuname -r
Is 26, or 28, or even 25, then it's safe to run the above command (however, if it's 25, remove number 24 from the brackets ). enter your password when prompted, and typey
When asked. This will show a bunch of lines, and will eventually go back[email protected]:~$
, Hopefully without errors. When it's done, dodf -h
And look at the last line, the one that starts/dev/sda1
. You shoshould find that it now has more space, and that the percentage used is less than 100% like it was before. You can proceed with your update.
Not enough free disk space on disk '/boot' (reprinted)