{"id":1990,"date":"2023-11-05T23:36:21","date_gmt":"2023-11-05T18:06:21","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=1990"},"modified":"2025-03-14T12:00:51","modified_gmt":"2025-03-14T06:30:51","slug":"upgrade-ubuntu-latest-version","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/upgrade-ubuntu-latest-version\/","title":{"rendered":"How to Upgrade Ubuntu Via Command Line?"},"content":{"rendered":"\n<p>Suppose you&#8217;re using an older Ubuntu version and are eager to explore the new features, security enhancements, and performance improvements in Ubuntu. In that case, this guide will walk you through the upgrade process. Upgrading your Ubuntu system ensures that you&#8217;re up to date and benefiting from the <a href=\"https:\/\/ubuntu.com\/about\/release-cycle\" target=\"_blank\" rel=\"noopener\">latest Ubuntu<\/a> has to offer.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-veeble-hosting wp-block-embed-veeble-hosting\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"NEA51K5JA5\"><a href=\"https:\/\/www.veeble.com\/kb\/how-to-check-your-ubuntu-version\/\">How to Check Your Ubuntu Version<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;How to Check Your Ubuntu Version&#8221; &#8212; Veeble Hosting\" src=\"https:\/\/www.veeble.com\/kb\/how-to-check-your-ubuntu-version\/embed\/#?secret=t0agysGZnz#?secret=NEA51K5JA5\" data-secret=\"NEA51K5JA5\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>Before embarking on any system upgrade, it&#8217;s wise to back up your essential data to prevent any data loss in case anything unexpected occurs.<\/strong><\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"step-1-update-the-current-ubuntu-version\">Step 1: Update the current Ubuntu version<\/h5>\n\n\n<p>It&#8217;s crucial to begin by ensuring your existing system is fully up to date. Open a terminal and run the following <a href=\"https:\/\/www.veeble.org\/kb\/linux-commands-gist\/\" target=\"_blank\" rel=\"noopener\">linux commands<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update &amp;&amp; apt upgrade -y<\/pre>\n\n\n<h5 class=\"wp-block-heading\" id=\"step-2-prepare-for-the-upgrade\">Step 2: Prepare for the Upgrade:<\/h5>\n\n\n<p>To upgrade, we&#8217;ll be utilizing the <code>do-release-upgrade<\/code> command. Firstly, verify that the <code>update-manager-core<\/code> package is installed. If it&#8217;s not, you can easily install it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install update-manager-core<\/pre>\n\n\n<h5 class=\"wp-block-heading\" id=\"step-3-run-the-upgrade\">Step 3: Run the Upgrade:<\/h5>\n\n\n<p>Now, it&#8217;s time to kickstart the upgrade process by issuing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo do-release-upgrade<\/pre>\n\n\n\n<pre class=\"wp-block-verse\">To upgrade to the latest non-LTS development release, set Prompt=normal in the file <code>\/etc\/update-manager\/release-upgrades<\/code> using an editor such as vi editor or nano editor.<\/pre>\n\n\n\n<p>Throughout the upgrade process, the upgrade tool will automatically identify and initiate a series of steps to ensure a smooth transition to the latest release of Ubuntu. Initially, it will detect your SSH connection and inform you that an auxiliary SSH service will be initiated on <a href=\"https:\/\/www.veeble.org\/kb\/commonly-used-port-numbers\/\" target=\"_blank\" rel=\"noopener\">port<\/a> 1022, ensuring uninterrupted access. To proceed, simply confirm by entering &#8216;Y.&#8217;<\/p>\n\n\n\n<p>Additionally, as you progress through the upgrade, the tool will prompt you for various changes and updates. It is advisable to accept these prompts by sticking to the default options there. And be patient, as this part of the process may take a bit of time.<\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"step-4-postupgrade-cleanup\">Step 4: Post-Upgrade Cleanup:<\/h5>\n\n\n<p>After the upgrade is complete, it&#8217;s a good practice to remove any obsolete packages and perform some system cleanup. Execute the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt autoremove &amp;&amp; apt clean<\/pre>\n\n\n<h5 class=\"wp-block-heading\" id=\"step-5-verify-the-upgrade\">Step 5: Verify the Upgrade:<\/h5>\n\n\n<p>Once your system is back up, you should confirm the upgrade&#8217;s success. Check your Ubuntu version to ensure you&#8217;ve transitioned to the latest version:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cat \/etc\/os-release<\/pre>\n\n\n\n<p>You&#8217;ve successfully upgraded your Ubuntu system. Now, you can fully enjoy the latest features and enhancements that the new release has to offer.<\/p>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-bb8d6a2d\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-b54f3ef4 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">High-Performance Windows VPS, Exceptional Value<\/h3><p class=\"uagb-cta__desc\">Get the performance you need at a price you&#8217;ll love. Our Windows VPS plans offer the perfect balance of power and affordability.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/windows-vps\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">View Our Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Also Read:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-veeble-hosting wp-block-embed-veeble-hosting\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.veeble.org\/kb\/sources-list-file-urls-ubuntu\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Suppose you&#8217;re using an older Ubuntu version and are eager to explore the new features, security enhancements, and performance improvements in Ubuntu. In that [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":8075,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1990","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2023\/11\/How-to-Upgrade-Ubuntu-Via-Command-Line.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Suppose you&#8217;re using an older Ubuntu version and are eager to explore the new features, security enhancements, and performance improvements in Ubuntu. In that [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/1990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=1990"}],"version-history":[{"count":12,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/1990\/revisions"}],"predecessor-version":[{"id":7503,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/1990\/revisions\/7503"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8075"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=1990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=1990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=1990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}