How to Upgrade to Ubuntu 19.04 (Disco Dingo) Server Today

The steps below show you how to upgrade to Ubuntu 19.04 (Disco Dingo) Server today…. Our previous post on upgrading to Ubuntu 19.04 Desktop can be found here...

For students and new users looking for help upgrading to Ubuntu 19.04 server, the steps below should be a great place to start…. Disco Dingo will be released on April 18th, 2019… (as of this writing, that’s tomorrow) so if you want to learn how to upgrade, you’re in the right place…..

The steps below show you how to upgrade from previous versions, Ubuntu 16.04 | 18.04 LTS… this may be an easy way to test the upcoming version against your environment and other application settings…

For those running Ubuntu 18.04 Server and want to upgrade, they may be disappointed to know that they can’t, at least not directly…

From Ubuntu 18.04 Server, you first must upgrade to 18.10 before finally upgrading to 19.04 Server..

Since today is April 17th (at the time of this writing), in a few hours, simply follow the steps below to successfully upgrade to Ubuntu 19.04 from 18.04 or 18.10..

Step 1: Update Ubuntu Server

Before upgrading Ubuntu server, make sure to update all currently installed packages to the latest versions… To do that, open Ubuntu server command console and run the commands below:

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

After running the above commands, it’s good to restart your server… this will remove obsolete kernel headers and other packages that are no longer needed by the server…

Step 2: Upgrade to Ubuntu Server 19.04

Now that your server is updated, you can now continue to upgrading to Ubuntu 19.04…. Follow the steps below to get it done..

If you’re upgrading over SSH it’s a good idea to configure SSH server to keep your connection alive so you don’t lose access to your server while upgrading….

To open SSH configuration file, run the commands below…

sudo nano /etc/ssh/sshd_config

Then edit the line below to update the ClientAliveIntervar to 90 or more…

#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
ClientAliveInterval 90
#ClientAliveCountMax 3
#UseDNS no

Save the file and exit….. then restart SSH server…

sudo systemctl restart ssh

After that, run the commands below to install Ubuntu update-manager-core package if it’s not already installed….

sudo apt install update-manager-core

Next, run the commands below to open update-manager-core configuration file…

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

Then change the Prompt line to normal… If it’s not and save the file.. For those running Ubuntu 18.04, the line should read lts.. Change lts to normal and save…

# Default behavior for the release upgrader.

# Default prompting and upgrade behavior, valid options:
#  never  - Never check for, or allow upgrading to, 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 supported 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 if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.

Save the file and exit

After changing Ubuntu upgrader settings above, run the commands below to start the upgrade process…

The -c option with the do-release-upgrade command checks for distribution upgrade from the latest supported version…

sudo do-release-upgrade -c

If want to upgrade to the development version prior to the final version being released, you can run the commands below with the -d option….  Generally speaking you shouldn’t upgrade to 19.04 pre-release version.. The pre-release version is still in development and may not be suitable for production environment..

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? 

5 packages are going to be removed. 85 new packages are going to be 
installed. 1168 packages are going to be upgraded. 

You have to download a total of 803 M. This download will take about 
11 minutes with your connection. 

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

 Continue [yN]  Details [d]

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 19.04 (GNU/Linux 4.15.0-19-generic x86_64)

Depending on the speed of your Internet, this process may take few minutes to a couple of hours….. after Ubuntu desktop is upgraded, you should be able to restart and start using the new Ubuntu!


You may also like the post below:

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.