Comment 6 for bug 1183692

Revision history for this message
Franck (alci) wrote :

This seems pretty bad, and mainly unmanageable by most average users.
A lot of question are generated, like these:
http://askubuntu.com/questions/342820/trying-to-update-but-not-enough-space-on-boot-answer-here
http://askubuntu.com/questions/298487/not-enough-free-disk-space-when-upgrading
http://askubuntu.com/questions/142926/cant-upgrade-due-to-low-disk-space-on-boot
http://ubuntuforums.org/showthread.php?t=2142894

and the most accepted answer is to blindly copy and paste this magic incantation:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

A better solution has to be found, I can't explain to my Daddy why "there is not enough disk space" :-)

14.04.01 LTS (!!)