Upgrading UbuntuServer from 14.04.4 LTS to 16.04.3 LTS

Summary and Lessons Learned:
-I needed to do an upgrade to the latest 14.04.5 LTS, first:
sudo apt update
sudo apt dist-upgrade
-Then the upgrade to version 16, using:
sudo do-release-upgrade (and followed all prompts)
Note: When asked to leave file as default – left as default

Figured it would be ideal to have the newest UbuntuServer running before installing the Security software (ZoneMinder).

When logging in to the server it says:

Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 4.2.0-27-generic i686)
New release ‘16.04.3 LTS’ available.
Run ‘do-release-upgrade’ to upgrade to it.

Note: I know I have a 32-bit server — old laptop

I suppose I should be trying to backup first, but I haven’t done anything on the server so far.

Figured I should be root when doing upgrade:
sudo su

Message about SSH
Continue running under SSH?

This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.

If you continue, an additional ssh daemon will be started at port
‘1022’.
Do you want to continue?
Note: I suppose I could do the upgrade directly on the server, but I’m going to use SSH for now.

Starting additional sshd

To make recovery in case of failure easier, an additional sshd will
be started on port ‘1022’. If anything goes wrong with the running
ssh you can still connect to the additional one.
If you run a firewall, you may need to temporarily open this port. As
this is potentially dangerous it’s not done automatically. You can
open the port with e.g.:
‘iptables -I INPUT -p tcp –dport 1022 -j ACCEPT’

Required depends is not installed

The required dependency ‘apt (>= 1.0.1ubuntu2.13)’ is not installed.
=== Command detached from window (Wed Dec 13 22:12:05 2017) ===
=== Command terminated with exit status 1 (Wed Dec 13 22:12:15 2017) ===

Note: That didn’t work…
I did find these two commands, so I’ll try that:

sudo apt-get install –reinstall update-manager-core
sudo apt-get install –reinstall update-manager
Note: Waited for a bunch of unpacking and installing to happen

Restarted Server
Note: Same version 14

Referring to Ubuntu Documentation:
-Install the update-manager-core package if it is not already installed.

OK – Note: May not need to do this again, but I did:
sudo apt-get install –reinstall update-manager-core
sudo apt-get install –reinstall update-manager

-Make sure the /etc/update-manager/release-upgrades is set to normal if you are using 15.10, lts if you are using 14.04 LTS.
Note: I confirmed file says “lts”

-Launch the upgrade tool with the command sudo do-release-upgrade.

Error: The required dependency ‘apt (>= 1.0.1ubuntu2.13)’ is not installed.

I’ve had the exact same problem today. Make sure your version is the latest Ubuntu 14.04 version before the upgrade. (Ubuntu 14.04.4 at this time)

Mine was stuck to Ubuntu 14.04.3 due to a bad mirror.

So first run:

sudo apt update
-Done

sudo apt dist-upgrade
-Done

Make sure the version is now Ubuntu 14.04.4 (update September 2016 : Ubuntu 14.04.5).

cat /etc/lsb-release
DISTRIB_DESCRIPTION=”Ubuntu 14.04.5 LTS”

And start Ubuntu 16.04 installation with

sudo do-release-upgrade

-Follow the on-screen instructions.

Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-103-generic i686)

DONE!

About Paul

CERT Coordinator, Ham Radio Operator, GTD Fan; Photographer; Domino/Notes Administrator
This entry was posted in Ubuntu. Bookmark the permalink.