Ubuntu do-release-upgrade Fails Because Boot Partition is Full

If you’re trying to run the do-release-upgrade on an Ubuntu system, but it fails because you have no space in your /boot partition, you can follow these steps:

  1. First, determine which version of linux kernel you’re running:
    $ uname -r
    

    Make a note of the version, then…

  2. Grab a list of packages that are installed on the system:
    $ sudo dpkg --list 'linux-image*'
    
  3. Then,
    $ rm -rf /boot/*-3.11.0-{15,17,18,20,22,23}-*
    
  4. After you’ve freed up some room, now proceed with the upgrade:
    $ sudo apt-get -f install                                                         
    $ apt-get autoremove
    $ apt-get update
    $ apt-get upgrade