{"id":4836,"date":"2018-12-10T16:18:07","date_gmt":"2018-12-10T16:18:07","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=4836"},"modified":"2018-12-11T05:01:38","modified_gmt":"2018-12-11T05:01:38","slug":"how-to-update-ubuntu-terminal-gui-methods","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/10\/how-to-update-ubuntu-terminal-gui-methods\/","title":{"rendered":"How to Update Ubuntu [Terminal &#038; GUI Methods] It&#8217;s FOSS"},"content":{"rendered":"<p><em>This tutorial shows you how to update Ubuntu for both server and desktop versions. It also explains the difference between update and upgrade along with a few other things you should know about updates in Ubuntu Linux.<\/em><\/p>\n<p>If you are a new user and have been using Ubuntu for a few days or weeks, you might be wondering how to update your <a href=\"https:\/\/www.ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">Ubuntu<\/a> system for security patches, bug fixes and application upgrades.<\/p>\n<p>Updating Ubuntu is absolutely simple. I am not exaggerating. It\u2019s as simple as running two commands. Let me give you more details on it.<\/p>\n<p>Please note that the tutorial is valid for Ubuntu 18.04, 16.04 or any other version. The command line way is also valid for Ubuntu-based distributions like Linux Mint, Linux Lite, elementary OS etc.<\/p>\n<h2>Update Ubuntu via Command Line<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/i1.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/how-to-update-ubuntu.png?resize=800%2C450&amp;ssl=1\" alt=\"How to Update Ubuntu\" \/><\/p>\n<p>On the desktop, open the terminal. You can find it in the menu or use the Ctrl+Alt+T <a href=\"https:\/\/itsfoss.com\/ubuntu-shortcuts\/\" target=\"_blank\" rel=\"noopener\">keyboard shortcut<\/a>. If you are logged on to an <a href=\"https:\/\/www.ubuntu.com\/download\/server\" target=\"_blank\" rel=\"noopener\">Ubuntu server<\/a>, you already have access to a terminal.<\/p>\n<p>In the terminal, you just have to use the following command:<\/p>\n<p>sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n<p>It will ask for password and you can use your account\u2019s password. You won\u2019t see the anything on the screen while typing so keep on typing your password and hit enter.<\/p>\n<p>Now let me explain the above command.<\/p>\n<p>Actually, it\u2019s not a single command. It\u2019s a combination of two commands. The &amp;&amp; is a way to combine two commands in a way that the second command runs only when the previous command ran successfully.<\/p>\n<p>The \u2018-y\u2019 in the end automatically enters yes when the command \u2018apt upgrade\u2019 ask for your confirmation before installing the updates.<\/p>\n<p>Note that you can also use the two commands separately, one by one:<\/p>\n<p>sudo apt update<br \/>\nsudo apt upgrade<\/p>\n<p>It will take a little longer because you have to wait for one command to finish and then enter the second command.<\/p>\n<h3>Explanation: sudo apt update<\/h3>\n<p>This command updates the local database of available packages. If you won\u2019t run this command, the local database won\u2019t be updated and your system will not know if there are any new versions available.<\/p>\n<p>This is why when you run the sudo apt update, you\u2019ll see lots of URLs in the output. The command fetches the package information from the respective repositories (the URLs you see in the output).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/update-ubunt-1.jpeg?resize=800%2C357&amp;ssl=1\" alt=\"Updating Ubuntu Linux\" \/><\/p>\n<p>At the end of the command, it tells you how many packages can be upgraded. You can see these packages by running the following command:<\/p>\n<p>apt list &#8211;upgradable<\/p>\n<p>Additional Reading: Read this article to learn <a href=\"https:\/\/itsfoss.com\/apt-get-linux-guide\/\" target=\"_blank\" rel=\"noopener\">what is Ign, Hit and Get in the apt update command output<\/a>.<\/p>\n<h3>Explanation: sudo apt upgrade<\/h3>\n<p>This command matches the versions of installed packages with the local database. It collects all of them and then it will list all of the packages that have a newer version available. At this point, it will ask if you want to upgrade (the installed packages to the newer version).<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i2.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/update-ubunt-2.jpeg?ssl=1\" alt=\"Update Ubuntu Linux via Command Line\" \/><\/p>\n<p>You can type \u2018yes\u2019, \u2018y\u2019 or just press enter to confirm the installation of updates.<\/p>\n<p>So the bottom line is that the sudo apt update checks for the availability of new versions while as the sudo apt upgrade actually performs the update.<\/p>\n<p>The term update might be confusing as you might expect the apt update command to update the system by installing the updates but that doesn\u2019t happen.<\/p>\n<h2>Update Ubuntu via GUI [For Desktop Users]<\/h2>\n<p>If you are using Ubuntu as a desktop, you don\u2019t have to go to terminal just for updating the system. You can still use the command line but it\u2019s optional for you.<\/p>\n<p>In the menu, look for \u2018Software Updater\u2019 and run it.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/update-ubuntu-via-GUI-1.jpeg?resize=800%2C250&amp;ssl=1\" alt=\"Run Software Updater in Ubuntu\" \/><\/p>\n<p>It will check if there are updates available for your system.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i2.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/update-ubuntu-via-GUI-2.jpeg?resize=800%2C250&amp;ssl=1\" alt=\"Checking if updates are available for Ubuntu\" \/><\/p>\n<p>If there are updates available, it will give provide you with options to install the updates.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/update-ubuntu-GUI-3.jpeg?resize=800%2C365&amp;ssl=1\" alt=\"Install Updates via Update Manager in Ubuntu\" \/><\/p>\n<p>Click on Install Now, it may ask for your password.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i2.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/install-update-ubuntu-1.jpg?resize=800%2C450&amp;ssl=1\" alt=\"Installing Updates in Ubuntu Linux via GUI\" \/><\/p>\n<p>Once you enter your password, it will start installing the updates.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/installing-updates-ubuntu.jpg?ssl=1\" alt=\"Updating Ubuntu via GUI\" \/><\/p>\n<p>In some cases, you may need to reboot the system for the installed updates to work properly. You\u2019ll be notified at the end of the update if you need to restart the system.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/installing-updates-ubuntu.jpg?ssl=1\" alt=\"Updating Ubuntu via GUI\" \/><\/p>\n<p>You can choose to restart later if you don\u2019t want to reboot your system straightaway.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i2.wp.com\/itsfoss.com\/wp-content\/uploads\/2018\/12\/installing-updates-ubuntu-2.jpeg?ssl=1\" alt=\"Installing updates via GUI in Ubuntu\" \/><\/p>\n<p>Tip: If the software updater returns an error, you should use the command \u2018sudo apt update\u2019 in the terminal. The last few lines of the output will contain the actual error message. You can search on the internet for that error and fix the problem.<\/p>\n<h2>Few things to keep in mind abou updating Ubuntu<\/h2>\n<p>You just learned how to update your Ubuntu system. If you are interested, you should also know these few things around Ubuntu updates.<\/p>\n<h3>Clean up after an update<\/h3>\n<p>Your system will have some unnecessary packages that won\u2019t be required after the updates. You can remove such packages and <a href=\"https:\/\/itsfoss.com\/free-up-space-ubuntu-linux\/\" target=\"_blank\" rel=\"noopener\">free up some space<\/a> using this command:<\/p>\n<p>sudo apt autoremove<\/p>\n<h3>Live patching kernel in Ubuntu Server to avoid rebooting<\/h3>\n<p>In case of a Linux kernel updates, you\u2019ll have to restart the system after the update. This is an issue when you don\u2019t want downtime for your server.<\/p>\n<p><a href=\"https:\/\/www.ubuntu.com\/livepatch\" target=\"_blank\" rel=\"noopener\">Live patching<\/a> feature allows the patching of Linux kernel while the kernel is still running. In other words, you don\u2019t have to reboot your system.<\/p>\n<p>If you manage servers, you may want to <a href=\"https:\/\/www.cyberciti.biz\/faq\/howto-live-patch-ubuntu-linux-server-kernel-without-rebooting\/\" target=\"_blank\" rel=\"noopener\">enable live patching in Ubuntu<\/a>.<\/p>\n<h3>Version upgrades are different<\/h3>\n<p>The updates discussed here is to keep your Ubuntu install fresh and updated. It doesn\u2019t cover the <a href=\"https:\/\/itsfoss.com\/upgrade-ubuntu-version\/\" target=\"_blank\" rel=\"noopener\">version upgrades<\/a> (for example upgrading Ubuntu 16.04 to 18.04).<\/p>\n<p><a href=\"https:\/\/itsfoss.com\/how-to-know-ubuntu-unity-version\/\" target=\"_blank\" rel=\"noopener\">Ubuntu version<\/a> upgrades are entirely a different thing. It updates the entire operating system core. You need to make proper backups before starting this lengthy process.<\/p>\n<p><a href=\"https:\/\/itsfoss.com\/update-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial shows you how to update Ubuntu for both server and desktop versions. It also explains the difference between update and upgrade along with a few other things you should know about updates in Ubuntu Linux. If you are a new user and have been using Ubuntu for a few days or weeks, you &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/12\/10\/how-to-update-ubuntu-terminal-gui-methods\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Update Ubuntu [Terminal &#038; GUI Methods] It&#8217;s FOSS&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4836","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=4836"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4836\/revisions"}],"predecessor-version":[{"id":5590,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/4836\/revisions\/5590"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=4836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=4836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=4836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}