I am trying to run some updates on my server but everything fails because apt keeps throwing the error "Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)."
If I run that command I get a long list off errors.
Running df -h gives me the following (I'm assuming the problem is because my boot partition is full):
Filesystem Size Used Avail Use% Mounted on
tmpfs 389M 1.8M 388M 1% /run
/dev/mapper/vg00-lv01 77G 26G 48G 36% /
tmpfs 1.9G 4.0K 1.9G 1% /dev/shm
tmpfs 5.0M 24K 5.0M 1% /run/lock
/dev/sdb1 40G 17G 21G 46% /mnt/block
/dev/sda1 488M 475M 0 100% /boot
tmpfs 389M 8.0K 389M 1% /run/user/0
I have tried these questions, and the answers just result in the same error "Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution)."
/dev/sda1 disk full - 100% usage
How do I free up more space in /boot?
All three pretty much lead back to the "sudo apt-get purge" command, and anything "apt" gives me the same error.
When attempting to run the following (recommended on the ubuntu help site)
sudo dpkg --purge linux-image-5.15.0-58-generic linux-image-extra-5.15.0-58-generic
I get
dpkg: error processing package linux-image-5.15.0-58-generic (--purge):
dependency problems - not removing
this is not a duplicate, the answers in the referenced questions do not work in this case.
rm
so that you can continue with theapt
purge. – rtaft Dec 18 '23 at 18:43I did move a couple of the files to the main partition to temporarily clean space, and then ran the apt autoremove command and it just immediately filled the boot partition back up.
– Developer Gee Dec 18 '23 at 19:01apt --fix-broken install
please – muru Dec 20 '23 at 00:54