My workaround: dpkg --get-selections | grep 'linux-' dpkg --get-selections | awk '/linux-(headers|image)-[0-9]\./ { print $1 }' | grep -v "$(uname -r | sed -e 's/-generic//')" | sort -r -V -t- -k3 | tail -n+4 | xargs -r apt-get -qq -y purge apt-get -qq -y install linux-{headers,image}-$(uname -r) dpkg --get-selections | grep 'linux-'
# (optional) # apt-get -qq -y install linux-{headers,image}-generic-lts-utopic 2>/dev/null || apt-get -qq -y install linux-{headers,image}-generic-lts-trusty Until a backport is available for LTS 14.04/12.04 see https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1267059 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1089195 Title: linux-headers will eat your inodes on LTS. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1089195/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs