{"id":1688,"date":"2021-12-16T12:01:56","date_gmt":"2021-12-16T09:01:56","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/03\/10\/ubuntu-upgrade-18-04-to-20-04-guide\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/03\/10\/ubuntu-upgrade-18-04-to-20-04-guide\/"},"modified":"2021-12-16T12:01:56","modified_gmt":"2021-12-16T09:01:56","slug":"ubuntu-upgrade-18-04-to-20-04-guide","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1688-ubuntu-upgrade-18-04-to-20-04-guide\/","title":{"rendered":"Ubuntu: upgrade 18.04 to 20.04 [Guide]"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>If you\u2019re an Ubuntu LTS user, you don\u2019t upgrade your system every 6 to 8 months to a new release. Instead, you upgrade to every LTS release, which is every two years. In this guide, we\u2019ll show you how you can upgrade from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS using both the GUI and the terminal.\u00a0<\/p>\n<p>Note: please be sure to back up your files before attempting to upgrade your Ubuntu installation. While Ubuntu upgrades almost always go smoothly, it\u2019s still smart to save your data before trying to upgrade.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397241 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide.png\" alt=\"Ubuntu: upgrade 18.04 to 20.04\" width=\"1200\" height=\"895\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-7.png 300w, https:\/\/www.addictivetips.com\/app\/uploads\/2021\/03\/ubuntu-upgrading-fs8-1024x764.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-11.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<h2>Upgrade 18.04 to 20.04 \u2013 GUI<\/h2>\n<p>Upgrading Ubuntu within the built-in update manager is pretty straightforward, and the easiest way to go for most users. To start the process, open up the app menu in Ubuntu, search for \u201cSoftware Updater,\u201d and open it up.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397237 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-1.png\" alt=\"\" width=\"1200\" height=\"897\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-1.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-13.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-15.png 1024w, https:\/\/www.addictivetips.com\/app\/uploads\/2021\/03\/ubuntu-check-fs8-768x574.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>Once the Software Updater is opened up, it will check for updates to Ubuntu. After it\u2019s done checking, it\u2019ll notify you that Ubuntu 20.04 is available for installation. From here, click on the \u201cYes, Upgrade Now\u201d button to begin the upgrade.<\/p>\n<p>After clicking on \u201cYes, Upgrade Now,\u201d you will be prompted to enter your password. Do so. Then, press the\u00a0<strong>Enter\u00a0<\/strong>key to continue.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397239 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-3.png\" alt=\"\" width=\"1200\" height=\"897\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-3.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-18.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-19.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-20.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>With your password entered, the updater will show you Ubuntu 20.04 release notes on the screen. Read them. Then, click on the \u201cUpgrade\u201d button to continue.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397238 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-5.png\" alt=\"\" width=\"1200\" height=\"894\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-5.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-22.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-24.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-26.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>Past the release notes, Ubuntu will prepare your system to update to 20.04 by setting up new software sources, downloading the new packages, etc. When it is done, you will see \u201cDo you want to start the upgrade?\u201d Click \u201cStart Upgrade.\u201d<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397240 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-6.png\" alt=\"\" width=\"1200\" height=\"900\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-6.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-28.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-30.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-31.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>Once the \u201cStart Upgrade\u201d button is selected, Ubuntu will begin upgrading to 20.04. This process may take some time so sit back and be patient.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397241 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide.png\" alt=\"\" width=\"1200\" height=\"895\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-7.png 300w, https:\/\/www.addictivetips.com\/app\/uploads\/2021\/03\/ubuntu-upgrading-fs8-1024x764.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/ubuntu-upgrade-18-04-to-20-04-guide-11.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>When the upgrade process is complete, Ubuntu will reboot your PC. After rebooting, you\u2019ll be using Ubuntu 20.04!<\/p>\n<h2>Upgrade 18.04 to 20.04 \u2013 Terminal upgrade<\/h2>\n<p>If you\u2019re not afraid of the command-line, a terminal upgrade from Ubuntu 18.04 to Ubuntu 20.04 is possible. To start the upgrade process, open up a terminal window on the Ubuntu desktop.<\/p>\n<p>To open up a terminal window on the Ubuntu desktop, press the\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>keyboard combination. Or, search for \u201cterminal\u201d in the app menu. Once the terminal window is open, you must use the <strong>apt<\/strong> <strong>update\u00a0<\/strong>command to check Ubuntu for updates.\u00a0<\/p>\n<pre>\nsudo apt update\n<\/pre>\n<p>After checking for updates, the next step is to install all software updates on your system. Ubuntu 18.04 needs to be entirely up to date before attempting to install Ubuntu 20.04. To install all the software upgrades on Ubuntu, make use of the <strong>upgrade\u00a0<\/strong>command below.<\/p>\n<pre>\nsudo apt upgrade <\/pre>\n<p>Upgrading Ubuntu 18.04 to the latest packages shouldn\u2019t take too long. Sit back and wait for the updates to install. When Ubuntu 18.04 is entirely up to date, execute the <strong>dist-upgrade\u00a0<\/strong>command. This command will install any packages that Ubuntu has been holding back when the\u00a0<strong>upgrade\u00a0<\/strong>command is run.<\/p>\n<pre>\nsudo apt dist-upgrade <\/pre>\n<p>Now that everything is up to date, it is time to change Ubuntu\u2019s software sources from Ubuntu 18.04 (Bionic) to Ubuntu 20.04 (Focal). To do this, you will need to modify the codename in <code>\/etc\/apt\/sources.list<\/code>.\u00a0<\/p>\n<p>There are many ways to edit the codename in the sources file in Ubuntu. You can use a text editor and many other options. In this guide, we\u2019ll focus on the <strong>sed\u00a0<\/strong>command. It\u2019s a straightforward tool that can be used to replace text.<\/p>\n<p>To update Ubuntu\u2019s software sources from Bionic to Focal, use the following\u00a0<strong>sed\u00a0<\/strong>command. Keep in mind that this command needs to be run with the\u00a0<strong>sudo\u00a0<\/strong>command, or it will not work.<\/p>\n<pre>\nsudo sed -i 's\/bionic\/focal\/g' \/etc\/apt\/sources.list\n<\/pre>\n<p>After changing the Ubuntu codename from Bionic to Focal, you will need to execute the <strong>update\u00a0<\/strong>command. This command will refresh Ubuntu\u2019s software database, add Ubuntu 20.04 packages and remove 18.04 ones.\u00a0<\/p>\n<pre>\nsudo apt update\n<\/pre>\n<p>Following the\u00a0<strong>update\u00a0<\/strong>command, it is time to rerun the <strong>upgrade<\/strong> command. This\u00a0<strong>upgrade\u00a0<\/strong>will install all Ubuntu 20.04 package upgrades over your 18.04 ones.<\/p>\n<pre>\nsudo apt upgrade\n<\/pre>\n<p>Once the upgrades are installed, you must run the\u00a0<strong>dist-upgrade\u00a0<\/strong>command for a second time. This command will install all Ubuntu 20.04 packages held back (for one reason or another).<\/p>\n<pre>\nsudo apt dist-upgrade\n<\/pre>\n<p>Finally, once the\u00a0<strong>dist-upgrade\u00a0<\/strong>command has run its course, you\u2019ll need to run the <strong>autoremove\u00a0<\/strong>command. This command will uninstall obsolete, needed packages that are not needed with Ubuntu 20.04.\u00a0<\/p>\n<pre>\nsudo apt autoremove <\/pre>\n<p>With the\u00a0<strong>autoremove\u00a0<\/strong>command finished running, you\u2019ll have finished upgrading Ubuntu 18.04 to Ubuntu 20.04. At this point, reboot your PC. When it boots back up, you\u2019ll be using Ubuntu 20.04!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles If you\u2019re an Ubuntu LTS user, you don\u2019t upgrade your system every 6 to 8 months to a new release. Instead, you upgrade to every LTS release, which is every two years. In this guide, we\u2019ll show you how you can upgrade from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS using both the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1689,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1688"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1688"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1689"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}