I recently ran apt-get install unzip
on an Ubuntu server, for some reason it started updating almost every package on the system - apache, php, git, mysql, numerous libraries and more. Eventually it failed when trying to add a new kernel image:
update-initramfs: Generating /boot/initrd.img-3.5.0-54-generic
gzip: stdout: No space left on device
There are loads of kernels installed. uname -r
currently returns 3.5.0-36-generic
but there are about 10 newer kernels listed than that.
So my questions:
- normal advice to clear
/boot
partition is to delete older kernels no longer used - can you delete newer kernels too? It's a remote server so if the bootloader breaks that's a real problem. - why did
apt-get install unzip
update so many unrelated packages?