1

Every time I use my computer it tells me there are updates to install but whenever I try to install them it doesn't work and says there's "not enough space on disk". I've only used 109.2GB of 485.8GB according to the Disk Usage Analyzer. Why does it think that there's not enough space? Can someone please help me with this? Thanks.

Filesystem     1K-blocks      Used Available Use% Mounted on
udev             2872800         4   2872796   1% /dev
tmpfs             577704      1172    576532   1% /run
/dev/dm-1      474434712 106694932 343616800  24% /
none                   4         0         4   0% /sys/fs/cgroup
none                5120         0      5120   0% /run/lock
none             2888504    136268   2752236   5% /run/shm
none              102400        60    102340   1% /run/user
/dev/sda1         240972    170231     58300  75% /boot
muru
  • 197,895
  • 55
  • 485
  • 740
Owen Ward
  • 11
  • 1
  • 1
  • 3
  • 3
    Can you report the output of df? – laugh salutes Monica C Oct 15 '16 at 13:26
  • Filesystem 1K-blocks Used Available Use% Mounted on udev 2872800 4 2 872796 1% /dev tmpfs 577704 1172 576532 1% /run /dev/dm-1 474434712 106694932 343616800 24% / none 4 0 4 0% /sys/fs/cgroup none 5120 0 5120 0% /run/lock none 2888504 136268 2752236 5% /run/shm none 102400 60 102340 1% /run/user /dev/sda1 240972 170231 58300 75% /boot – Owen Ward Oct 16 '16 at 14:39
  • Please edit the question and add this information. A comment can't hold multiple lines. – laugh salutes Monica C Oct 16 '16 at 14:40
  • I can't get it to give me a table like it does in the terminal – Owen Ward Oct 16 '16 at 14:43
  • just paste it after the question. Enclose with backquotes to get a nice format. If you don't know how, just provide the info and someone will format it for you. That's how it works here :) – laugh salutes Monica C Oct 16 '16 at 14:47

1 Answers1

1

Based on your df result, your boot filesystem has less the 60 MB free. Most likely that the updates you are trying to install need more space than that.

A boot volume of 170 MB is quite small. The obvious thing to do is to increase its size, but this requires some time and expertise, so consider some faster actions first...

Try the following

  1. Run sudo apt-get autoclean and then sudo apt-get autoremove. This will remove package stuff that isn't used at all and may free some space in the /boot filesystem.

  2. If you know you have packages you can live without, it may be a good idea to remove them. sudo apt-get purge <package-name> will do that. Knowing which packages you can live without may be tricky, though.

  3. Try the updates again. If you are lucky you may have enough free space at this point.

If this does not work, you will have to resize the boot partition. This involves editing the partition table with a tool like gparted, and you will have to create a bootable USB drive and boot from it. You should probably allocate at least 1G to /boot to be on the safe side.

I will not attempt to describe how to edit the partition table - it is a delicate procedure that I performed only one or twice... but there are some other posts here that discuss it, like this one.

Edit: Actually there is another question and answer with much higher votes. You may want to read this one.