3

When I perform an update, then informed me that I do not have enough disk space.

I have plenty of hard drive space so I just need to increase space on the partition that is allowed for ubuntu to use for operating system and updates.

The error message reads

The upgrade needs a total of 26.7 M free space on disk '/boot'. Please free at least an additional 10.5 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean

I have done sudo apt-get clean and still not enough space.

I have tried sudo apt-get autoclean then sudo apt-get update & sudo apt-get upgrade

enter image description here

A.B.
  • 92,125
UbuntuFan
  • 123
  • 2
  • 3
  • 10

5 Answers5

1

I'm going to guess that Update Manager is trying to load a new kernel in /boot and there's not enough room, so we can free up space by removing older kernels.

Firstly and foremost, please be careful.

Let's look at what's in the /boot partition - I'll use Nautilus as Super User from my computer to provide an example.

lkristie@TinMan:~$ sudo nautilus
[sudo] password for lkristie:

This is the procedure I follow when I need space for new kernels.

Open /boot when Nautilus comes up (screenshot below).

Note the tagged objects are all of the same version - delete them; I'd recommend this: free up the disk space you need and that's it.

If you're tempted to do some housekeeping here, understand the impact of whatever it is you decide to do and - if you're not sure - do the required reading before taking any action.

Leland

enter image description here

1

Had the same problem with the GUI. Opened a terminal and entered my threefold:

sudo apt-get update; sudo apt-get dist-upgrade && sudo apt-get autoremove

That's worked (But I don't know why :o) ).

JensE
  • 21
0

I had a similar problem and another post on a similar topic told me about a utility called Ubuntu Tweak and how to install it from the Terminal. It has solved my problem by removing old kernels and freeing lots of space.

mnsh
  • 5
0

Since this is one of the highest ranked Google results and nobody actually answered your question, I figured I'd answer albeit 2 years late.

The first and easiest thing to try is

sudo apt-get autoremove 

This will remove redundant packages to free up space. However, this isn't always a solution if for some reason you did not allocate enough space to the boot partition and you still don't have enough space after removing redundancies. If this is the case:

Install Ubuntu to an external disk (flash stick or similar), then live boot your system from that disk.

Install GParted from Ubuntu Software Center.

Find the partition with mount point: /boot . It will likely show that almost the entire partition is full/used.

Right-click and "resize" partition below /boot partition to create free, unallocated space after the /boot partition.

Right click and resize /boot partition, expanding it on the right into the free space created by resizing partition below.

Shut down, remove live boot Ubuntu drive & restart into your normal desktop environment.

Your boot partition now has more space.

-1

Try:

sudo apt-get autoclean

To get rid of old downloaded packages. Then, try to install the updates:

sudo apt-get update && sudo apt-get upgrade