Upgrade Ubuntu 12.04 server to 14.04

‘Tis the season for upgrading.

First was upgrading OSSEC from 2.7 to 2.8, see Upgrading OSSEC 2.7 to 2.8 and the bro-ids rule issue. Now’s the time to upgrade the server that OSSEC was protecting. Before the upgrade, the server was running Ubuntu 12.04 LTS. It was upgraded to Ubuntu 14.04 LTS less than an hour ago.

Here’s how I did it.

By the way, the server is a DigitalOcean basic droplet, which cost $5.00 USD per month. For that, you get a Cloud server with 512 MB or RAM and 20 GB storage. For now, that’s more than enough to power an email server for all my domains and a small website. You may sign up for a DigitalOcean account.

Back to the upgrade. The official recommendation for upgrading Ubuntu distributions, especially production servers, is to wait until a point version has been released. In this case, that means waiting until Ubuntu 14.04.1 was released. It was released on July 22 (2014).

So after making sure that the current system was fully dated, which meant running sudo apt-get update && apt-get upgrade, I made a snapshot of the droplet (in case the upgrade failed). Once that was done, I ran sudo do-release-upgrade. That script is part of update-manager-core, which should be installed by default.

Note: I’ve come across tutorials where the author advocated running sudo do-release-upgrade -d. Don’t try that on a production server. The -d switch is used to upgrade to a development version of Ubuntu. I don’t think you want to do that on your production server. If you have any doubts about upgrading, you can run the command with the -s switch, like so: sudo do-release-upgrade -s. That performs a dry-run upgrade. See the Release Notes of Ubuntu 14.04.1 for more on this subject.

Here are screenshots from the upgrade operation.

The upgraded can be done by ssh-ing to the server or from the console, which you can access from your DigitalOcean dashboard. This upgrade was from the console.
Upgrade Ubuntu 12.04 LTS

Since I didn’t want to babysit the upgrade, I selected yes when this window came up.
Upgrade Ubuntu 12.04 to 14.04

There were several of this type of window that came up. Stuck with the default on every single one.
Upgrade Ubuntu 12.04

Type y to continue.
Upgrading Ubuntu 12.04 LTS

And y again to restart the system.
Upgrading Ubuntu 12.04 to 14.04.1

Related Posts

Manual disk partitioning guide for Linux Mint Debian Edition Linux Mint Debian Edition, or LMDE, is the edition of Linux Mint based on Debian Testing. The latest release was made available for download on Decemb...
How Linux Distros Configure and Manage LVM This is part 2 of a multi-part series on Linux logical volume management. If you are not already familiar with LVM, you may read part 1 here We ar...
Ubuntu 12.10 beta 1 screen shots The first beta release of what will become Ubuntu 12.10 has been released. Code-named Quantal Quetzal, Ubuntu 12.10 will ship with two highly desirabl...
5 performance tips for Node.js applications Node.js is single-threaded and uses non-blocking I/O, allowing it to scale and support tens of thousands of concurrent operations. It shares these...
Dual-boot Windows 8 and Ubuntu 12.10 in UEFI mode Dual-booting Windows 8 and a Linux distribution in UEFI or EFI-compatible mode can be a very frustrating and unpredictable adventure. You just never k...
4 things to do after installing Ubuntu 14.04 So now that you've installed your new copy of Ubuntu 14.04, there must be at least one default setting that you would like to change. At least one. ...

We Recommend These Vendors and Free Offers

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


Leave a Comment

Your email address will not be published. Required fields are marked *

*