0

I get the following every time I try to install anything. It always seems to install OK but I'd rather not get the errors, what am I supposed to do to fix this? All I'd like to know really is where to start looking, I'd like a push in the right direction rather than a complete solution.

Or if anyone could just point me to the correct link? I've spent hours looking for it and not found anything that really applies to me.

My guess is that I should look at the repositories?

linux-image-4.2.0-35-generic
subprocess installed post-installation script returned error exit status 2

linux-image-extra-4.2.0-35-generic
dependency problems - leaving unconfigured

linux-image-generic
dependency problems - leaving unconfigured

linux-generic
dependency problems - leaving unconfigured

linux-signed-image-4.2.0-35-generic
dependency problems - leaving unconfigured

linux-signed-image-generic
dependency problems - leaving unconfigured

linux-signed-generic
dependency problems - leaving unconfigured

initramfs-tools
subprocess installed post-installation script returned error exit status 1

1 Answers1

0

Answer to the above question is/was that old kernels filled up the boot partition. How do I resize my /boot partition?

Basic command to check free space on your mounted partitions: sudo df -h

Below information is an extremely shortened version of: How do I remove old kernel versions to clean up the boot menu?

The basic commands in this situation:

uname -r - check which kernel is in use

sudo apt-get autoremove - remove old kernel

A normal kernel upgrade should work flawlessly as follows:

sudo apt-get update; sudo apt-get dist-upgrade; sudo apt-get autoremove

If for any reason something goes wrong during a kernel upgrade may read this: How to restore a system after accidentally removing all kernels? and eventually this: Removed Kernel by mistake [duplicate] && How can I boot with an older kernel version?