{"id":4684,"date":"2019-11-23T22:22:40","date_gmt":"2019-11-23T19:22:40","guid":{"rendered":"https:\/\/kifarunix.com\/?p=4684"},"modified":"2024-03-12T23:08:42","modified_gmt":"2024-03-12T20:08:42","slug":"upgrade-ubuntu-18-04-to-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/upgrade-ubuntu-18-04-to-ubuntu-20-04\/","title":{"rendered":"Upgrade Ubuntu 18.04 to Ubuntu 20.04"},"content":{"rendered":"\n<p>Well, Ubuntu 20.04, codenamed Focal Fossa is now available for testing with official version being likely to be released on April 2020, based on the <a rel=\"noreferrer noopener\" aria-label=\"Ubuntu release cycles (opens in a new tab)\" href=\"https:\/\/ubuntu.com\/about\/release-cycle\" target=\"_blank\">Ubuntu release cycles<\/a> trend. As such, let us see how to Upgrade Ubuntu 18.04 to Ubuntu 20.04.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Upgrading Ubuntu 18.04 to Ubuntu 20.04<\/h2>\n\n\n\n<p><strong>Disclaimer:<\/strong> Note that this guide is meant for testing purposes and not production environments and hence we cannot be held liable for whatever damage the processes described here may cause to your system.<\/p>\n\n\n\n<p>Before you run system upgrade to the next major release version, ensure that you <strong>take a backup of the current system<\/strong> to enable you to revert back just in case things go south. The backup processes is beyond the scope of this guide.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Run system Update<\/h3>\n\n\n\n<p>Begin by updating and upgrading your Ubuntu 18.04 system packages to their latest versions.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt upgrade<\/code><\/pre>\n\n\n\n<p>You can as well run system full upgrade.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt full-upgrade<\/code><\/pre>\n\n\n\n<p>According to <code>man 8 apt<\/code>, <code><strong>full-upgrade<\/strong><\/code> performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole.<\/p>\n\n\n\n<p>Remove the packages that are no longer required.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt autoremove<\/code><\/pre>\n\n\n\n<p>Reboot the system once the upgrade completes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo systemctl reboot<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Upgrading Ubuntu 18.04 to Ubuntu 20.04<\/h3>\n\n\n\n<p>Ubuntu ships with a command utility called, <code>do-release-upgrade<\/code>, which is used upgrade Ubuntu operating system to latest release. This utility is installed by default. If not installed, for some reasons, you can simply install <code>update-manager-core<\/code> which provides it by running;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install update-manager-core<\/code><\/pre>\n\n\n\n<p>You can then run system upgrade to the new release version by simply executing;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>do-release-upgrade<\/code><\/pre>\n\n\n\n<p>This utility supports a number of command line options. Check, <code>do-release-upgrade -h<\/code>. For example, if you are on Ubuntu 18.04 desktop versions, you can run desktop upgrade to the new release by executing;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo do-release-upgrade -m desktop<\/code><\/pre>\n\n\n\n<p>To run regular upgrades for the server versions;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo do-release-upgrade -m server<\/code><\/pre>\n\n\n\n<p>The <code>do-release-upgrade<\/code> command usually works only after the release of first point release of a major LTS release. <strong>For this case, this command will only work after the availability of Ubuntu 20.04.1<\/strong>.<\/p>\n\n\n\n<p>Well, if you get the output, <strong><code>There is no development version of an LTS available<\/code><\/strong>, then it is because <strong>Ubuntu 20.04.1<\/strong> is not available yet.<\/p>\n\n\n\n<p>As such, since we are dealing with the test releases, you can simply upgrade your Ubuntu 18.04 system to the development release version of Ubuntu 20.04. Pass the <code>-d<\/code> or <code>--devel-release<\/code> option to <code>do-release-upgrade<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo do-release-upgrade -m desktop -d<\/code><\/pre>\n\n\n\n<p>The system upgrade to the development release of Ubuntu 20.04 will start immediately you type the command above and press ENTER.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\nChecking for a new Ubuntu release\nGet:1 Upgrade tool signature [1,554 B]                                         \nGet:2 Upgrade tool [1,335 kB]                                                  \nFetched 1,337 kB in 0s (0 B\/s)                                                 \nauthenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' \nextracting 'focal.tar.gz'\n\nReading cache\n\nChecking package manager\nReading package lists... Done\nBuilding dependency tree        \nReading state information... Done\nHit http:\/\/ke.archive.ubuntu.com\/ubuntu bionic InRelease                       \nHit http:\/\/ke.archive.ubuntu.com\/ubuntu bionic-updates InRelease               \nHit http:\/\/ke.archive.ubuntu.com\/ubuntu bionic-backports InRelease             \nGet:1 http:\/\/security.ubuntu.com\/ubuntu bionic-security InRelease [88.7 kB]    \nFetched 88.7 kB in 0s (0 B\/s)                                                  \nReading package lists... Done    \nBuilding dependency tree          \nReading state information... Done\n\nChecking for installed snaps\n...\n<\/code><\/pre>\n\n\n\n<p>Answer through the questions that comes up during the upgrade process.<\/p>\n\n\n\n<pre class=\"scroll-box\"><code>\n...\nDo you want to start the upgrade? \n\n\n36 installed packages are no longer supported by Canonical. You can \nstill get support from the community. \n\n13 packages are going to be removed. 246 new packages are going to be \ninstalled. 1256 packages are going to be upgraded. \n\nYou have to download a total of 810 M. This download will take about \n11 minutes with your connection. \n\nInstalling the upgrade can take several hours. Once the download has \nfinished, the process cannot be canceled. \n\n Continue [yN]  Details [d] y\n<\/code><\/pre>\n\n\n\n<p>Accept the upgrade and press ENTER to continue.<\/p>\n\n\n\n<p>During the upgrade, you will notice the changes, for example the background on the desktop versions.<\/p>\n\n\n\n<p>When prompted to remove obsolete packages, accept and press ENTER to proceed.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\nSearching for obsolete software\nReading state information... Done\n\nRemove obsolete packages? \n\n\n86 packages are going to be removed. \n\n Continue [yN]  Details [d]y<\/code><\/pre>\n\n\n\n<p>When system upgrade is complete, reboot your system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>...\nSystem upgrade is complete.\n\nRestart required \n\nTo finish the upgrade, a restart is required. \nIf you select 'y' the system will be restarted. \n\nContinue [yN] y<\/code><\/pre>\n\n\n\n<p>You have successfully upgraded your Ubuntu 18.04 system to Ubuntu 20.04.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1360\" height=\"683\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/ubuntu-20.04-1.png\" alt=\"\" class=\"wp-image-4685\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/ubuntu-20.04-1.png?v=1574536555 1360w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/ubuntu-20.04-1-768x386.png?v=1574536555 768w\" sizes=\"(max-width: 1360px) 100vw, 1360px\" \/><\/figure>\n\n\n\n<p>Ubuntu Focal Fossa system information;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"457\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/11\/neof.png\" alt=\"\" class=\"wp-image-4686\" title=\"\"><\/figure><\/div>\n\n\n<p>Stay tuned to the official release of Ubuntu 20.04 for your official upgrades.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Other Tutorials;<\/h4>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-ubuntu-20-04-on-virtualbox\/\" target=\"_blank\">Install Ubuntu 20.04 on VirtualBox<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-and-setup-zsh-and-oh-my-zsh-on-ubuntu-20-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Setup ZSH and Oh-My-Zsh on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-ubuntu-20-04\/\" target=\"_blank\">Install VirtualBox Guest Additions on Ubuntu 20.04<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/use-virtualbox-vms-on-kvm\/\" target=\"_blank\">Use VirtualBox VMs on KVM<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-virtualbox-guest-additions-on-centos-8\/\" target=\"_blank\">Install VirtualBox Guest Additions on CentOS 8<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/kifarunix.com\/install-centos-8-on-virtualbox\/\" target=\"_blank\">Install CentOS 8 on VirtualBox<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, Ubuntu 20.04, codenamed Focal Fossa is now available for testing with official version being likely to be released on April 2020, based on the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[121,64,46,36],"tags":[1204,67,1200,1203,1202],"class_list":["post-4684","post","type-post","status-publish","format-standard","hentry","category-howtos","category-ubuntu-18-04","category-virtualbox","category-virtualization","tag-do-release-upgrade","tag-ubuntu-18-04","tag-ubuntu-20-04","tag-upgrade","tag-upgrade-ubuntu-18-04-to-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4684"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=4684"}],"version-history":[{"count":7,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4684\/revisions"}],"predecessor-version":[{"id":21246,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4684\/revisions\/21246"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=4684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=4684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=4684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}