r/linuxmint • u/ClimateTraditional40 • 14d 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.
5
u/-Sturla- 14d 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.
2
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 14d ago
Do what u/-Sturla- says.
I have three kernels right now which is one more than I usually keep.
If you have a GB for /boot and it's full, you likely have several old ones you can remove.
Good luck.
1
u/couriousLin 14d ago
I haven't had an issue deleting old kernels so you must have something strange going on with your system. I'm assuming df -h shows /boot at > 95%. Run these commands:
Hopefully you still have your bootable mint USB handy. Boot from the live USB and run a filesystem check (e2fsck -fv) on all your partitions. You may need to unmount them before running the fsck. Once they're checked out, mount your / filesystem and carefully delete the old config and initrd.img files in /boot. You'll still need to use sudo to delete the files.
1
u/_ElBee_ 14d ago
You have f***ed up something somewhere. Make backups of your important stuff and re-install Mint.
1
u/Monoyo- 14d ago
what's the output of uname -r and ls /boot? apt usually cant remove old kernels once /boot is already 100% full, so you have to drop an older linux-image with dpkg first, just not the one you're booted into, then sudo apt -f install can finish the stuck 6.8.0-149 install.