Upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS Server

I have been messing around Ubuntu 18.04 LTS recently. For those who want to test out the new Ubuntu 18.04 LTS , they can use this post to upgrade to Ubuntu 18.04 LTS development release.

Ubuntu 18.04 LTS (Bionic Beaver) will be released on April 26th, 2018. This is a LTS version will be supported for about 5 years. This is a great version to upgrade to if you’re running earlier versions of Ubuntu..

You may be able to upgrade from Ubuntu 16.04 LTS to 18.04 LTS easily… not too sure if you can do it from 17.04 or 17.10, since they are non LTS versions.

If you want to upgrade to the development version, follow the steps below.

If you don’t want to do an in-place upgrade, you can download the ISOs image from its download page and upgrade from the CD/DVD or do a clean install.

To upgrade Ubuntu, please follow the steps below

Step 1: Update Ubuntu 16.04 Server

Before upgrading to Ubuntu 18.04, you should first update the current 16.04. It’s recommended to update/upgrade all installed packages before upgrading. To update Ubuntu, connect to the server and run the commands below:

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove

Step 2: Install Ubuntu Update Manager

After updating Ubuntu 16.04 server, run the commands below to install update-manager-core if it is not already installed.

sudo apt-get install update-manager-core

Then open the update-manager configuration file and make sure the Prompt line is set to lts

sudo nano /etc/update-manager/release-upgrades

Confirm that the Prompt is equal lts

# Default behavior for the release upgrader.

# Default prompting behavior, valid options:
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.

If not, change it to lts and save the file.

Step 3: Perform Ubuntu 18.04 LTS Upgrade

Now that your system is ready, run the commands below to begin Ubuntu upgrade to the latest development release..

sudo do-release-upgrade -d

Follow the on-screen instructions…. y = yes and N= No. When prompted whether you wish to upgrade type y for yes.

Do you want to start the upgrade?

1 installed package is no longer supported by Canonical. You can
still get support from the community.

2 packages are going to be removed. 64 new packages are going to be
installed. 394 packages are going to be upgraded.

You have to download a total of 234 M. This download will take about
1 minute with your connection.

Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.

 Continue [yN]  Details [d] y

Wait for all the newer packages to be downloaded… this may take a while depending on your internet connection speed. After all packages are downloaded, your system will begin upgrading immediately….

Once new packages have finished installing, you’ll be asked whether to remove obsolete packages. Type y here. If you have a system that you have customized, you may wish to enter d to view the list… just in case you may need to reinstall..

Remove obsolete packages?

53 packages are going to be removed.

 Continue [yN]  Details [d]y

Wait for the process to complete, the reboot to finish.. you’ll be notify to reboot.

Restart required

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] y

When everything is setup correctly, you system should be upgraded to the latest Ubuntu release.

Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-19-generic x86_64)



This post shows students and new users how to upgrade to the development version of Ubuntu 18.04… Please do not upgrade if you’re not going to use it for testing purposes.

That’s it!

You may also like the post below:


  1. Hi, in this update/upgrade, what about Unity, it’s automatically removed on an ubuntu 16.04 to 18.04 upgrade or it is still there?

    1. Unity is removed… not completely, though.

  2. Hi, I upgraded to 18.04 by following the above steps, and after the upgrade, after logging in, my keyboard and mouse are not working and also, the network manager is not starting after login. Is anyone facing similar issue.

  3. I didn’t know what version I should install at the first place, thus installed the 17.10 (I didn’t like), right now I want to install an other release and this 18.04 comes much sensible to me. Isn’t there any guarante of upgrade to 18.04 from 17.10? What do you prefer?

    Plus, if I upgrade my setup to 18.04 development, after a while can I upgrade to stable version (Bionic Beaver)

  4. tengo Ubuntu server 17-10 y quiero actualizarlo a 18-04, pero en pront me sale “normal”, como hago alli? sigo con el procedimiento?

  5. Avigdor Finkelstein

    Well, I followed your instructions, and my Ubuntu is dead. Not totally because I can get to recovery but no more than that. I still don’t understand what is the problem. I managed to recovery some files and copy them to another computer. But my desktop does not finish bootup. I managed to recover networking, that was reported that is waited upon, but still it does not come up even without graphics. Any help?

  6. Hello ,
    i can’t not upgrade ubuntu 16.04 Lts to 18.04 Lts
    Still getting this error ::
    Failed to fetch
    Hash Sum mismatch
    Failed to fetch
    Hash Sum mismatch
    Failed to fetch
    Hash Sum mismatch
    i flowed the instruction step by step ,, but still getting this error ,, You also can check what wrong here —>>>

  7. PHP was broke after the upgrade.

    1. Tried to upgrade two servers on Ubuntu 16.04 – with PHP services – and they didn’t work after update, restored from backup. All config settings were saved – “keep current configuration” everywhere. And – only “sudo do-release-upgrade -d”, not “sudo do-release-upgrade” worked – does it mean that 18.04 is still in developement?

  8. Thanks so much for these instructions. I could not install 18.4 in vmware for some undetermined reason. I then installed 16.4 and the followed your instructions with success. This has been very helpful.

  9. I tried this method and my dvd’s/cd’s or usb’s won’t mount or mount very delayed, not even a prompt. Also now my computer takes the full 30 mins to reboot or shutdown. I have used 16.04 as a sole OS on my machine for the full two years so I would very much not like to reimage my machine if possible.

  10. Hi, I have a server on Digital Ocean in which is installed Ubuntu 16.04 LTS and I tried to install PhpMyAdmin but when I try it says that my release end its life. Also in this server is installed Apache and few things more. My question is: if I upgrade my release of Ubuntu, should I have to upgrade Apache?

  11. perfect tutorial thank you works everything like should be

  12. Thanks! :)

  13. Adam Bednarczyk

    I would like to ask you to make upgrading simple. Without reading and studying your system. Solution with one click only!!!!!!!

  14. linux witchcraft

    Start a new “screen” session before you start the whole upgrade process.
    Especially when you do it via network.
    If you lose connection screen will save your life (and the server).

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.