How can I add more disk space to /boot for update

81

Solution 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

Solution 2

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) ).

Share:
81

Related videos on Youtube

ivan quintero
Author by

ivan quintero

Updated on September 18, 2022

Comments

  • ivan quintero
    ivan quintero over 1 year

    Here is what I am trying to accomplish. Build an electron app that I can install on the server and on client machines.

    The server install will have the app install as normal.

    The client install will be configured to access the electron API on the server machine.

    This way you can basically the same code base to install server and client versions.

    Is this possible?

    • Braiam
      Braiam over 10 years
      Which of them is? Hard disk space or RAM? What is the exact error message? What's the output of free and df -h?
    • UbuntuFan
      UbuntuFan over 10 years
      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.
    • Braiam
      Braiam over 10 years
      The best way to add additional information to your question is by editing it, with the edit button. It is better visible that way, and comments are mainly for secondary, temporary purposes. Comments are removed under a variety of circumstances. Anything important to your question should be in the question itself.
    • Braiam
      Braiam over 10 years
      We also need dpkg -l linux-image*
    • Nanne
      Nanne over 10 years
      there's probably some leftovers from earlier upgrades in /boot, images and the likes. Some things you can do: use df -h to check harddisk space. You say you have plenty, but the partition /boot still can be full. Then, check out what is actually in /boot, the message is quite clear the problem is there. Maybe we van find something you can remove there? like old initrd stuffs?
    • Avinash Raj
      Avinash Raj over 10 years
      plz upload gparted screenshot to imgur.com and post the link here.
    • hadi
      hadi almost 10 years
      There is a very good answer [here][1]. [1]: askubuntu.com/questions/142926/…
    • karel
      karel almost 7 years
  • Zeth
    Zeth about 3 years
    Hmmm... This seem to upgrade the distribution as well ( sudo apt-get dist-upgrade ), which isn't included in the question. It's probably a good idea to do, but it isn't something I would advise people to do regardless of anything. I follow this link and did sudo apt-get autoremove, but after that df -h in the terminal showed that I still had a problem. But by running sudo update-grub afterwards, then the capacity dropped from 96% to 55%.