Upgrading to Ubuntu 15.04 Vivid Vervet
Yesterday you probably noticed some downtime. This is because I was upgradting this server's operating system from Ubuntu 14.10 to Ubuntu 15.04! Since I noticed a few things that you should watch out for when upgrading, I thought that I would make a post about it.
For the most part the upgrade went smoothly, but I did hit a few snags. Firstly, if you have got any custom ppas set up for
apt-get, you will want to make a list of them (they are located in
/etc/apt/sources.list.d) because the upgrade will annoyingly disable them all :( It's not too much trouble to fix but it is annoying.
Secondly, there are two new mime types that have been added
/etc/mime.types. If you have made any customisations to this file (I have added
text/x-markdown), then you will want to make a note of them and re-add them afterwards. Don't forget to restart your http servers after changing it!
There are some changes that require the ssh daemon to be stopped, so make sure you don't do the upgrade over ssh.
You will get asked which interfaces
DCHPv6 should listen on / send requests to. If you use your linux box as a router and have it handing out IP addresses, then you will need to take note of which interfaces you have on your box and which one is which.
By far the biggest problem for me though was the switch from
systemd. This server is hosted by OVH under one of their VPS hosting plans (which are great by the way!), which means that it is virtualised using OpenVZ. It also means that I can't choose my kernel :( I suspect that this is the reason that I can't use systemd, though if anyone has any other ideas, I would love to hears them - leave them in the comments below. When it has finished the upgrade, it couldn't reboot, instead telling me that it
couldn't find an alternative telinit implementation to spawn. The solution to this is simple though (don't forget to run as root):
apt-get install upstart apt-get remove systemd apt-get install upstart-sysv
The last package in the above (
upstart-sysv) should be install automatically, but you should make sure that it is installed - it is the package that prevents it from automatically trying to switch you back to systemd at the next available opportunity.
I hope this post is useful! If you do find it helpful, please leave a comment. If people seem to like it I might start posting full upgrade guides.