Upgrading Ubuntu 12.04 to 14.04.1

‘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).

Related Post:  End-to-end Machine Learning with TensorFlow on Google Cloud Platform

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.

Related Post:  How to dual-boot Windows 8 and Fedora 21 on a PC with UEFI firmware

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

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

8 Responses

  1. This was very easy and helpful – works great with dual boot setup, just resize Windows down first, then use these docs to setup the free space for Linux.

    A suggestion is not to create a separate swap partition but add a swap space within the encrypted file system. Google for swap file ubuntu and you will find some instructions from Digitalocean which will apply.

  2. Salut and thank you very much for your great tutorial on how to install an encrypted Ubuntu.
    You can even use this on your stick but don’t forget to set the right device to write your mbr! ;-D

  3. Doing luks container encryption through the install without the ability to use lvm inside the container during the install is going backwards. In Linux Mint there is a much better way to do it via a script and someone in the know should be able to easily adapt it to Ubuntu (and probably) even Debian. Originally the script was used for Linux Mint Debian Edition 2 (LMDE2) but has recently been adapted to include main line (Ubuntu derivative) Linux Mint 17.1 and 17.2. The script is the one offered by Pepas and it can be located in this Linux Mint forum thread:

    http://forums.linuxmint.com/viewtopic.php?f=241&t=194031&p=1069325#p1069325

    or directly from here:

    https://raw.githubusercontent.com/pepa65/lmdescrypt/master/lmdescrypt

    I recommend you read at least the 2nd page of the forum thread for some background and familiarization. Instructions for installing and selecting your settings are included in the script you download. Just open it as text, read and make your settings changes prior to running. Keep in mind that you can change the ‘/data’ lv in the settings to be a ‘/home’ lv if you wish.

  4. Mathetes ( above ) has the answer. Can anybody be serious about setting up a system requiring at start up a password for each encrypted partition when, by using the 12.04 alternate CD the same thing could be achieved ( by using LVM ) with one password. We have gone backwards in that respect.

    I am just moving from 12.04 to 14.04 and have now probably many hours of work ahead to reseach how to achieve on 14.04 what was much easier on 12.04

  5. Great procedure except this part:

    “For the boot partition, a disk space of 250 MB should be enough.”

    This is where ubuntu stores header images during kernel updates– and there are a lot of those in 14.04! You eventually run out of space. I would do a couple of GB for /boot.

  6. Ubuntu 14.04 does not allow using LVM after encryption, then making a lvg and lv’s for /, /home, swap and other partition. Instead you need to create one encrypted partion for /, one encrypted partition for /home (using passwords or keys) and one partition for swap. LVM gives more flexibility.

  7. What about Ubuntu Server. I have installed Ubuntu Server 14.04 minimal install and install VirtualBox on my computer to run Windows 7 virtual machine. I would like to have virtual guest snapshots, so I did it this way.

    How to do the same thing as in article for Ubuntu Server. I don’t want to establish LVM and RAID – this is my PC running Ubuntu Server, so don’t have a knowledge and hardware (like multiple disks) to establish LVM/RAID.

    Is there a way to do this on Ubuntu Server. I have tried creating boot partition (no problem), created root and swap partitions defining ‘physical volume for encryption’ (no problem), but now I am stuck, how to define mount point for root and swap partition?

Leave a Reply

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

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.

Categories
Archives

The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.