r/linuxmint • • 22d ago

SOLVED /boot full cannot delete kernels

/boot full cannot delete kernels. From Update Manager I get:

The package system is broken

The following packages have unmet dependencies:

linux-image-generic: Depends: linux-image-6.8.0-149-generic but it is not installed

I have tried all sorts of things within terminal (as per help on Linux forms not here) and they ALL fail. sdb1 (/boot) has 999mb and says it's 100% full.

sudo apt autoremove --purge

Tried manully as well, that one AND another separately. No joy.

Using Cinnamon Mint 22.2

HELP

EDIT: Used timeshift (from ages ago) then was able to manually remove each kernel via Terminal after that.

Got sick of going round in circles, error after error, /boot was 100% and now is 27% full. Hell of a difference from a few kernels but never mind, all sorted and will watch it from now on.

1 Upvotes

23 comments sorted by

View all comments

5

u/-Sturla- 22d ago

Check what kernel you're actually running (cat /proc/version) and manually delete the older ones in /boot with sudo rm /boot/*versionnumber*
Most systems are set up to keep the last N kernels for the ability to go back if something breaks, so autoremove won't remove all of them.

1

u/ClimateTraditional40 22d ago

It doesn't let me!!!

4

u/-Sturla- 22d ago

sudo won't let you delete files in /boot?
Ok, run "sudo su -" type your password, then run "cat /proc/version", mark the version and run "ls -lh /boot"
It should give you a list of files.
Pick a version that's older than the one you're running, then run
"rm /boot/*6.8.<version>*"
If that fails copy the output here.
I've never been denied deleting old kernels in /boot as root.

1

u/ClimateTraditional40 22d ago

No, I just got a new set of errors on trying.

1

u/-Sturla- 22d ago

Without the errors it's not easy trying to help.

3

u/DannoXYZ 22d ago

Post screenshot of commands you're running and any errors you're getting.