{"id":11917,"date":"2022-06-02T06:10:28","date_gmt":"2022-06-02T06:10:28","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=11917"},"modified":"2024-12-30T08:27:39","modified_gmt":"2024-12-30T08:27:39","slug":"how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/","title":{"rendered":"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04"},"content":{"rendered":"\n<p>Ubuntu is a well-known Linux distribution. <a href=\"https:\/\/cloudkul.com\/blog\/how-to-install-and-configure-supervisor-on-ubuntu-20-04\/\">Ubuntu 20.04 LTS<\/a> is the one the recent release, containing a new kernel and additional features.<\/p>\n\n\n\n<p>You may need to upgrade your Ubuntu LTS server in any circumstance. We&#8217;ll walk you through the procedures to update your server from 18.04 to 20.04 LTS in this article.<\/p>\n\n\n\n<p>The upgrade procedure usually takes a long time, causing downtime. If you run a web service like Apache2 or any public service, expect extended downtime.<\/p>\n\n\n\n<p>This is why you should upgrade to the latest version only when it is necessary.<\/p>\n\n\n\n<p><strong>Notes:-  Do not forget to take server backup, before upgrading.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisite:-<\/strong><\/h2>\n\n\n\n<ul>\n<li>Prior versions of Ubuntu 20.04 LTS.<\/li>\n\n\n\n<li>root user rights on a machine.<\/li>\n\n\n\n<li>Excellent Internet Access.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Update your system<\/h2>\n\n\n\n<p><strong>(A). <\/strong>It is suggested that you first update your Ubuntu server for any pending software upgrades.<\/p>\n\n\n\n<p>You can follow this update command <strong><em> &#8211; <\/em>#apt-get update<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-01_19-04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"398\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-01_19-04.png\" alt=\"ubuntu\" class=\"wp-image-11922\"\/><\/a><\/figure>\n\n\n\n<p><strong>(B).<\/strong> Then, run this upgrade command &#8211; <strong><em># apt-get dist-upgrade -y<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-34.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"403\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-34-1024x403.png\" alt=\"ubuntu\" class=\"wp-image-11931\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 2: Restart your system<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 3: Then, Update Manager&#8217;s Configuration<\/strong><\/h2>\n\n\n\n<p>To upgrade your system to a newer version, Ubuntu provides a tool called Update Manager, run this command <strong>apt install update-manager-core<\/strong>. <\/p>\n\n\n\n<p>It should normally be installed by default, but you should double-check that your Ubuntu server has the update manager utility installed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-41.png\"><img loading=\"lazy\" decoding=\"async\" width=\"645\" height=\"134\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-41.png\" alt=\"ubuntu\" class=\"wp-image-11933\"\/><\/a><\/figure>\n\n\n\n<p>Check the contents of the <strong>cat \/etc\/update-manager\/release-upgrades<\/strong> file to ensure that the last line is <strong>Prompt=lts<\/strong> and <strong>not commented out<\/strong>. <\/p>\n\n\n\n<p>Your Ubuntu system will be updated to a new stable LTS version as a result of this. This is what it looks like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-44.png\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"310\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-44.png\" alt=\"ubuntu\" class=\"wp-image-11934\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Upgrade to a newer LTS version of the Ubuntu server.<\/h2>\n\n\n\n<p>Once you&#8217;ve verified that, run the command &#8211; <strong><em>do-release-upgrade<\/em><\/strong> to upgrade your Ubuntu 18.04 server to Ubuntu 20.04 LTS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-02.png\"><img loading=\"lazy\" decoding=\"async\" width=\"472\" height=\"94\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-02.png\" alt=\"ubuntu\" class=\"wp-image-11940\"\/><\/a><\/figure>\n\n\n\n<p><strong>Using an SSH connection to upgrade an Ubuntu server<\/strong><\/p>\n\n\n\n<p>If you use <a href=\"https:\/\/cloudkul.com\/features\/ssh\/\">SSH to log in<\/a> to your system, you will see the following warning message:<\/p>\n\n\n\n<p>This session appears to be ssh-enabled. It is presently not suggested to upgrade over SSH because recovery is more difficult in the event of failure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-58.png\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"288\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-58.png\" alt=\"ubuntu\" class=\"wp-image-11941\"\/><\/a><\/figure>\n\n\n\n<p>Several steps in the Ubuntu version upgrade process demand your input. <\/p>\n\n\n\n<p>What happens if you&#8217;re doing it through SSH and your connection goes down? Is it going to hang? How will it obtain vital user input to move forward with the upgrade?<\/p>\n\n\n\n<p>There is no need to be concerned. It is a smart operating system. This is handled by the do-release-upgrade tool. It will start a new SSH session with the screen at port 1022 automatically.<\/p>\n\n\n\n<p>If your system has a custom firewall, you should open the TCP 1022 port.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-58_1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"694\" height=\"213\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_09-58_1.png\" alt=\"ubuntu\" class=\"wp-image-11942\"\/><\/a><\/figure>\n\n\n\n<p>One message is coming &#8211; Do you want to start the upgrade? type y and again y for continue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"297\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-12.png\" alt=\"v\" class=\"wp-image-11945\"\/><\/a><\/figure>\n\n\n\n<p>Configuring Package configuration, press Yes and then press Enter to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"408\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-19-1024x408.png\" alt=\"ubuntu\" class=\"wp-image-11947\"\/><\/a><\/figure>\n\n\n\n<p>You will be able to upgrade to the new server in 20-30 minutes if you follow the on-screen instructions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-22.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"406\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-22-1024x406.png\" alt=\"ubuntu\" class=\"wp-image-11948\"\/><\/a><\/figure>\n\n\n\n<p>Then, You need to restart your server after the upgrade is complete.<\/p>\n\n\n\n<p>You can use the <strong>hostnamectl<\/strong> command to see if you&#8217;re running Ubuntu 20.04, as seen below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-30.png\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"182\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-02_10-30.png\" alt=\"ubuntu\" class=\"wp-image-11950\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>In this way, you can upgrade your Ubuntu server from 18.04 to 20.04 LTS. You can stay connected for more updates.<\/p>\n\n\n\n<p><strong>For further help or queries, please <a href=\"https:\/\/cloudkul.com\/contact\/\">contact<\/a>&nbsp;us&nbsp;or raise a&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">ticket<\/a>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the one the recent release, <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[32,679,2,45,35,87,690,743,86],"tags":[768,766,91,205,218,765,767],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04 - Cloudkul<\/title>\n<meta name=\"description\" content=\"Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the most recent release, containing a new kernel and additional features.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04 - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the most recent release, containing a new kernel and additional features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-02T06:10:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-30T08:27:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-01_19-04.png\" \/>\n<meta name=\"author\" content=\"Ashwani Yadav\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/\",\"name\":\"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04 - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2022-06-02T06:10:28+00:00\",\"dateModified\":\"2024-12-30T08:27:39+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/21a87813767f62b93406948d33674859\"},\"description\":\"Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the most recent release, containing a new kernel and additional features.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/21a87813767f62b93406948d33674859\",\"name\":\"Ashwani Yadav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/af1a3946692083af45c27bd6abbff5fe?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/af1a3946692083af45c27bd6abbff5fe?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Ashwani Yadav\"},\"description\":\"IT Cloud Engineer at Webkul Software Pvt. Ltd.\",\"url\":\"https:\/\/cloudkul.com\/blog\/author\/ashwaniyadav-cloud624\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04 - Cloudkul","description":"Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the most recent release, containing a new kernel and additional features.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/","og_locale":"en_US","og_type":"article","og_title":"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04 - Cloudkul","og_description":"Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the most recent release, containing a new kernel and additional features.","og_url":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/","og_site_name":"Cloudkul","article_published_time":"2022-06-02T06:10:28+00:00","article_modified_time":"2024-12-30T08:27:39+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2022\/06\/2022-06-01_19-04.png"}],"author":"Ashwani Yadav","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/","url":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/","name":"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04 - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2022-06-02T06:10:28+00:00","dateModified":"2024-12-30T08:27:39+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/21a87813767f62b93406948d33674859"},"description":"Ubuntu is a well-known Linux distribution. Ubuntu 20.04 LTS is the most recent release, containing a new kernel and additional features.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/how-to-upgrade-ubuntu-server-from-18-04-to-20-04-version\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Upgrade Ubuntu Server from Version 18.04 to Version 20.04"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/21a87813767f62b93406948d33674859","name":"Ashwani Yadav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/af1a3946692083af45c27bd6abbff5fe?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/af1a3946692083af45c27bd6abbff5fe?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Ashwani Yadav"},"description":"IT Cloud Engineer at Webkul Software Pvt. Ltd.","url":"https:\/\/cloudkul.com\/blog\/author\/ashwaniyadav-cloud624\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/11917"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=11917"}],"version-history":[{"count":35,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/11917\/revisions"}],"predecessor-version":[{"id":19295,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/11917\/revisions\/19295"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=11917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=11917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=11917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}