Skip to content

Instantly share code, notes, and snippets.

@dayne
Last active April 16, 2017 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dayne/9f9841d5122f18632148d3e7066c2cf0 to your computer and use it in GitHub Desktop.
Save dayne/9f9841d5122f18632148d3e7066c2cf0 to your computer and use it in GitHub Desktop.
ubuntu 14.04 to 16.04 upgrade notes

Useful pages:

apt update
apt upgrade
apt-get autoremove
  • make sure /boot has enough free space to install a new kernel. clean up old/spare kernels if you don't have enough space. You'll regret it if you don't double check it - it is recoverable if you are careful but why hurt yourself.

  • Launch a tmux do-release-upgrade

  • Take note at start when it creates a new ssh server for you.

  • On a seperate machine start another tmux and ssh into that new ssh server port

  • you may need to disable/open firewall to allow this to work. Keep that in the background incase things go sideways.

Good luck

Success? minor clean up steps:

rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old
apt remove upstart
rm /etc/X11/Xsession.d/*upstart* 

too many kernels | full /boot

Find any kernels you are not running and remove them

dpkg --list | grep linux-image | grep -v `uname -r` | grep -v linux-image-generic | awk '{print $2}'

It might be handy to redirect that output to a rm_kerns file and then doing the following dance:

for I in `cat rm_kerns | grep extra`; do dpkg -P $I; done
for I in `cat rm_kerns | grep -v extra`; do dpkg -P $I; done

That should free up space on /boot allowing you to do the normal apt-get update && apt-get autoremove dances for proper cleaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment