14.04 --> 16.04 failed; apt (>= 1.0.1ubuntu2.13)' is not installed

Solution 1:

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
sudo apt dist-upgrade

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

cat /etc/lsb-release

And start Ubuntu 16.04 installation with

sudo do-release-upgrade -d

Solution 2:

Best to always update through the normal procedures of:

sudo apt update
sudo apt dist-upgrade

If the above fails, then you can step manually through the following. This question is outdated, but you can just change the version numbers as the links should still be the same.

To upgrade your version of apt from a terminal window, type in the following:

sudo apt-get download apt

if the above doesn't work, you can also download it with wget by running the following line:

wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.0.1ubuntu2.17_amd64.deb

then type in

sudo dpkg -i apt*.deb

Just tried this on my system here. Here is the output:

terrance@terrance-VirtualBox:~$ sudo apt-get download apt
[sudo] password for terrance: 
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main apt amd64 1.0.1ubuntu2.17 [954 kB]
Fetched 954 kB in 0s (1,127 kB/s)
terrance@terrance-VirtualBox:~$ ls
apt_1.0.1ubuntu2.17_amd64.deb  Documents  examples.desktop  Pictures  Templates
Desktop                        Downloads  Music             Public    Videos
terrance@terrance-VirtualBox:~$ sudo dpkg -i apt*.deb
(Reading database ... 168376 files and directories currently installed.)
Preparing to unpack apt_1.0.1ubuntu2.17_amd64.deb ...
Unpacking apt (1.0.1ubuntu2.17) over (1.0.1ubuntu2.11) ...
Setting up apt (1.0.1ubuntu2.17) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.7) ...

If After the steps described you see a fail due to a missing dpkg dependency you can just finish by repeating the steps with dpkg and ..

wget http://security.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg_1.18.24ubuntu1_amd64.deb
sudo dpkg -i dpkg_1.18.24ubuntu1_amd64.deb

All of the packages that are available to Ubuntu can be found here:

http://security.ubuntu.com/ubuntu/pool/main/