How can I add more disk space to /boot for update
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
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) ).
Related videos on Youtube
ivan quintero
Updated on September 18, 2022Comments
-
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 over 10 yearsWhich of them is? Hard disk space or RAM? What is the exact error message? What's the output of
free
anddf -h
? -
UbuntuFan over 10 yearsThe 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 over 10 yearsThe 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 over 10 yearsWe also need
dpkg -l linux-image*
-
Nanne over 10 yearsthere's probably some leftovers from earlier upgrades in
/boot
, images and the likes. Some things you can do: usedf -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 over 10 yearsplz upload gparted screenshot to
imgur.com
and post the link here. -
hadi almost 10 yearsThere is a very good answer [here][1]. [1]: askubuntu.com/questions/142926/…
-
karel almost 7 yearsPossible duplicate of Can't upgrade due to low disk space on /boot
-
-
Zeth about 3 yearsHmmm... 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 didsudo apt-get autoremove
, but after thatdf -h
in the terminal showed that I still had a problem. But by runningsudo update-grub
afterwards, then the capacity dropped from 96% to 55%.