Milambar
September 12th, 2012, 01:39 PM
I run a headless server (so please don't tell me to use package manager, as theres no monitor, keyboard or mouse attached to the system, and its in a datacenter).
I ran an apt-get dist-upgrade this afternoon, but it aborted during a new kernel image install, due to the /boot directory being full. I wouldn't normally have an issue, I'd just deinstall some of the old kernels, to make room for the new one.
Unfortunatly, because apt-get is being stupid, when I do apt-get remove linux-image-(whatever), it automatically tries to complete the previous install first, and since that fails (obviously it will), it doesnt complete my requested "remove".
So the whole process is a catch-22 situation.
apt-get cant complete the previous command because the directory is full.
apt-get wont execute the new command (to free some space in the directory) because the previous command never completed.
apt-get tries to complete the previous command, but fails because the directory is full.
rinse-repeat.
How can I get apt-get to FORGET the previous command, or execute the REMOVE command first?
I ran an apt-get dist-upgrade this afternoon, but it aborted during a new kernel image install, due to the /boot directory being full. I wouldn't normally have an issue, I'd just deinstall some of the old kernels, to make room for the new one.
Unfortunatly, because apt-get is being stupid, when I do apt-get remove linux-image-(whatever), it automatically tries to complete the previous install first, and since that fails (obviously it will), it doesnt complete my requested "remove".
So the whole process is a catch-22 situation.
apt-get cant complete the previous command because the directory is full.
apt-get wont execute the new command (to free some space in the directory) because the previous command never completed.
apt-get tries to complete the previous command, but fails because the directory is full.
rinse-repeat.
How can I get apt-get to FORGET the previous command, or execute the REMOVE command first?