Problem
You are trying to install/remove a package but you always get an error message about linux message as above:
Errors were encountered while processing: linux-image-3.13.0-128-generic
Solution
Try the following:
rm -rf /var/lib/dpkg/info/linux-image-3.13.0-128-generic.* apt-get purge linux-image-3.13.0-128-generic