{"id":685,"date":"2023-02-10T18:01:00","date_gmt":"2023-02-10T18:01:00","guid":{"rendered":"https:\/\/yohost.org\/library\/?p=685"},"modified":"2023-02-08T19:58:05","modified_gmt":"2023-02-08T19:58:05","slug":"how-to-upgrade-ubuntu-20-04-to-22-04-ssh","status":"publish","type":"post","link":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/","title":{"rendered":"How to upgrade Ubuntu 20.04 to 22.04 (SSH)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are several update commands which can be used in Ubuntu. Some of them are for software updates and some for major release update. Let&#8217;s review the commands and go through the upgrade from Ubuntu 20.04 to 22.04. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One should note that major release updates will always require a confirmation from the end user, so do not worry to accidently run an unwanted release upgrade.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-update-the-package-list\">Update the package list<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before upgrading the release, we get a new package list and update the software. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10-45x19.png\" alt=\"Update package list\" class=\"wp-image-698 lazy\" width=\"334\" height=\"138\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png 407w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10-300x124.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10-45x19.png 45w\" data-sizes=\"auto, (max-width: 334px) 100vw, 334px\" data-width=\"334\" data-height=\"138\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png\" style=\"height: 0; width: 334px; padding-bottom: 41.32%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png\" alt=\"Update package list\" class=\"wp-image-698\" width=\"334\" height=\"138\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png 407w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10-300x124.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10-45x19.png 45w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/noscript><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>#sudo apt-get <strong>update<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-45x8.png\" alt class=\"wp-image-699 lazy\" width=\"602\" height=\"109\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11.png 779w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-300x55.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-768x140.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-45x8.png 45w\" data-sizes=\"auto, (max-width: 602px) 100vw, 602px\" data-width=\"602\" data-height=\"109\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11.png\" style=\"height: 0; width: 602px; padding-bottom: 18.11%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11.png\" alt=\"\" class=\"wp-image-699\" width=\"602\" height=\"109\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11.png 779w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-300x55.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-768x140.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-11-45x8.png 45w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Next thing will be updating the packages themselves.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#sudo apt-get <strong>upgrade<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-45x15.png\" alt=\"upgrading packages ubuntu\" class=\"wp-image-700 lazy\" width=\"608\" height=\"199\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12.png 924w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-300x98.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-768x252.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-45x15.png 45w\" data-sizes=\"auto, (max-width: 608px) 100vw, 608px\" data-width=\"608\" data-height=\"199\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12.png\" style=\"height: 0; width: 608px; padding-bottom: 32.73%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12.png\" alt=\"upgrading packages ubuntu\" class=\"wp-image-700\" width=\"608\" height=\"199\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12.png 924w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-300x98.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-768x252.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-12-45x15.png 45w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ubuntu will show you the summary of all packages which going to upgraded and the disk space required for the upgrade. Press &#8220;Y&#8221; to proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-45x17.png\" alt class=\"wp-image-702 lazy\" width=\"608\" height=\"231\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14.png 939w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-300x114.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-768x292.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-45x17.png 45w\" data-sizes=\"auto, (max-width: 608px) 100vw, 608px\" data-width=\"608\" data-height=\"231\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14.png\" style=\"height: 0; width: 608px; padding-bottom: 37.99%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14.png\" alt=\"\" class=\"wp-image-702\" width=\"608\" height=\"231\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14.png 939w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-300x114.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-768x292.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-14-45x17.png 45w\" sizes=\"auto, (max-width: 608px) 100vw, 608px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This will download and install all packages. <strong>Reboot<\/strong> the server after updating packages. Now we are ready to initiate the major release upgrade.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Release upgrade<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Upgrading from Ubuntu 20.04 to 22.04 via  SSH is a self-explanatory. Once you enter the command below, review the changes and press &#8220;y&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#sudo do-release-upgrade -d<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you are running the upgrade within the main SSH session, Ubuntu will show a warning. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15-45x20.png\" alt class=\"wp-image-703 lazy\" width=\"604\" height=\"264\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15.png 729w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15-300x132.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15-45x20.png 45w\" data-sizes=\"auto, (max-width: 604px) 100vw, 604px\" data-width=\"604\" data-height=\"264\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15.png\" style=\"height: 0; width: 604px; padding-bottom: 43.71%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15.png\" alt=\"\" class=\"wp-image-703\" width=\"604\" height=\"264\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15.png 729w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15-300x132.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-15-45x20.png 45w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The thing is that if your Internet connection fails or PC reboots accidently, the upgrade will stuck and it will be harder to recover. You can <a href=\"https:\/\/yohost.org\/library\/tea-break-1-how-to-run-commands-in-background-linux\/\" target=\"_blank\" rel=\"noreferrer noopener\">use screen<\/a> session to run the upgrade in the background.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Press &#8220;y&#8221; and Ubuntu will fetch the list new\/updated\/deleted packages and show you the summary.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-45x27.png\" alt class=\"wp-image-704 lazy\" width=\"607\" height=\"365\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16.png 928w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-300x181.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-768x463.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-45x27.png 45w\" data-sizes=\"auto, (max-width: 607px) 100vw, 607px\" data-width=\"607\" data-height=\"365\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16.png\" style=\"height: 0; width: 607px; padding-bottom: 60.13%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16.png\" alt=\"\" class=\"wp-image-704\" width=\"607\" height=\"365\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16.png 928w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-300x181.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-768x463.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-16-45x27.png 45w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You will receive an authentication request either to allow all or to ask for authorization for every service restart during the upgrade.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-45x19.png\" alt class=\"wp-image-705 lazy\" width=\"618\" height=\"259\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17.png 936w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-300x126.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-768x323.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-45x19.png 45w\" data-sizes=\"auto, (max-width: 618px) 100vw, 618px\" data-width=\"618\" data-height=\"259\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17.png\" style=\"height: 0; width: 618px; padding-bottom: 41.91%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17.png\" alt=\"\" class=\"wp-image-705\" width=\"618\" height=\"259\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17.png 936w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-300x126.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-768x323.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-17-45x19.png 45w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Below image shows that install script will ask you if you want to delete or leave the obsolete software. You can review the list of software or simply continue with &#8220;y&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18-45x32.png\" alt class=\"wp-image-707 lazy\" width=\"318\" height=\"228\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18.png 369w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18-300x215.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18-45x32.png 45w\" data-sizes=\"auto, (max-width: 318px) 100vw, 318px\" data-width=\"318\" data-height=\"228\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18.png\" style=\"height: 0; width: 318px; padding-bottom: 71.70%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18.png\" alt=\"\" class=\"wp-image-707\" width=\"318\" height=\"228\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18.png 369w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18-300x215.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-18-45x32.png 45w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, when install is completed, you will be prompted for a restart. Press &#8220;y&#8221;. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19-45x15.png\" alt class=\"wp-image-708 lazy\" width=\"466\" height=\"155\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19.png 515w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19-300x100.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19-45x15.png 45w\" data-sizes=\"auto, (max-width: 466px) 100vw, 466px\" data-width=\"466\" data-height=\"155\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19.png\" style=\"height: 0; width: 466px; padding-bottom: 33.26%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19.png\" alt=\"\" class=\"wp-image-708\" width=\"466\" height=\"155\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19.png 515w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19-300x100.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-19-45x15.png 45w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/noscript><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Session will be closed. Once you re-login, you can check the current version with the command below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#lsb_release -a\nNo LSB modules are available.\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 22.04.1 LTS\r\nRelease:        22.04\r\nCodename:       jammy\r<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations! You have successfully upgraded Ubuntu from 20.04 LTS to 22.04 LTS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are several update commands which can be used in Ubuntu. Some of them are for software updates and some for major release update. Let&#8217;s review the commands and go through the upgrade from Ubuntu 20.04 to 22.04. One should note that major release updates will always require a confirmation from the end user, so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":698,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"stax_block_gap":"","stax_show_title_section":"","stax_single_post_media_panel_height":"","stax_single_post_media_panel_text":"","stax_single_post_cateory_breadcrumb":"","stax_single_post_title_position":"","stax_single_post_title_align":"","stax_single_post_title_extra_align":"","stax_single_post_title_size":"","stax_single_post_image_width":"","stax_single_post_image_format":"","stax_single_post_audio_panel":"","stax_single_post_video_panel":"","stax_single_post_video_width":"","stax_single_post_gallery_panel":"","stax_single_post_gallery_width":"","stax_single_post_gallery_slides":"","stax_single_post_meta_author_avatar":"","stax_single_post_meta_author_name":"","stax_single_post_meta_post_date":"","stax_single_post_meta_reading_time":"","stax_single_post_shapes":"","footnotes":""},"categories":[66],"tags":[133,132,131,130],"class_list":["post-685","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-check-release","tag-packages-update","tag-ubuntu-software-update","tag-upgrade-ubuntu-20-04-to-22-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.12 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to upgrade Ubuntu 20.04 to 22.04 (SSH)<\/title>\n<meta name=\"description\" content=\"Learn how to do software update in Ubuntu and how to upgrade major release from Ubuntu 20.04 to 22.04 LTS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/\" \/>\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 20.04 to 22.04 (SSH)\" \/>\n<meta property=\"og:description\" content=\"Learn how to do software update in Ubuntu and how to upgrade major release from Ubuntu 20.04 to 22.04 LTS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"Privacy Dedicated Library\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-10T18:01:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png?fit=407%2C168&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"407\" \/>\n\t<meta property=\"og:image:height\" content=\"168\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Paul M\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@yohostorg\" \/>\n<meta name=\"twitter:site\" content=\"@yohostorg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul M\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/\"},\"author\":{\"name\":\"Paul M\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/person\\\/69f04ef60b945341f65db69ad70c0faf\"},\"headline\":\"How to upgrade Ubuntu 20.04 to 22.04 (SSH)\",\"datePublished\":\"2023-02-10T18:01:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/\"},\"wordCount\":329,\"publisher\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-10.png\",\"keywords\":[\"check release\",\"packages update\",\"ubuntu software update\",\"upgrade ubuntu 20.04 to 22.04\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/\",\"name\":\"How to upgrade Ubuntu 20.04 to 22.04 (SSH)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-10.png\",\"datePublished\":\"2023-02-10T18:01:00+00:00\",\"description\":\"Learn how to do software update in Ubuntu and how to upgrade major release from Ubuntu 20.04 to 22.04 LTS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-10.png\",\"contentUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-10.png\",\"width\":407,\"height\":168},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/yohost.org\\\/library\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to upgrade Ubuntu 20.04 to 22.04 (SSH)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#website\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/\",\"name\":\"Privacy Dedicated Library\",\"description\":\"Everything about privacy protection, Bitcoin, encryption and technology\",\"publisher\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/yohost.org\\\/library\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\",\"name\":\"Yohost.org\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/yhscree2.png\",\"contentUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/yhscree2.png\",\"width\":431,\"height\":466,\"caption\":\"Yohost.org\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/yohostorg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/person\\\/69f04ef60b945341f65db69ad70c0faf\",\"name\":\"Paul M\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"caption\":\"Paul M\"},\"sameAs\":[\"https:\\\/\\\/yohost.org\\\/library\"],\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/author\\\/admin_31kufsla\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to upgrade Ubuntu 20.04 to 22.04 (SSH)","description":"Learn how to do software update in Ubuntu and how to upgrade major release from Ubuntu 20.04 to 22.04 LTS.","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:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/","og_locale":"en_US","og_type":"article","og_title":"How to upgrade Ubuntu 20.04 to 22.04 (SSH)","og_description":"Learn how to do software update in Ubuntu and how to upgrade major release from Ubuntu 20.04 to 22.04 LTS.","og_url":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/","og_site_name":"Privacy Dedicated Library","article_published_time":"2023-02-10T18:01:00+00:00","og_image":[{"width":407,"height":168,"url":"https:\/\/i0.wp.com\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png?fit=407%2C168&ssl=1","type":"image\/png"}],"author":"Paul M","twitter_card":"summary_large_image","twitter_creator":"@yohostorg","twitter_site":"@yohostorg","twitter_misc":{"Written by":"Paul M","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#article","isPartOf":{"@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/"},"author":{"name":"Paul M","@id":"https:\/\/yohost.org\/library\/#\/schema\/person\/69f04ef60b945341f65db69ad70c0faf"},"headline":"How to upgrade Ubuntu 20.04 to 22.04 (SSH)","datePublished":"2023-02-10T18:01:00+00:00","mainEntityOfPage":{"@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/"},"wordCount":329,"publisher":{"@id":"https:\/\/yohost.org\/library\/#organization"},"image":{"@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png","keywords":["check release","packages update","ubuntu software update","upgrade ubuntu 20.04 to 22.04"],"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/","url":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/","name":"How to upgrade Ubuntu 20.04 to 22.04 (SSH)","isPartOf":{"@id":"https:\/\/yohost.org\/library\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#primaryimage"},"image":{"@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png","datePublished":"2023-02-10T18:01:00+00:00","description":"Learn how to do software update in Ubuntu and how to upgrade major release from Ubuntu 20.04 to 22.04 LTS.","breadcrumb":{"@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#primaryimage","url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png","contentUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2023\/02\/image-10.png","width":407,"height":168},{"@type":"BreadcrumbList","@id":"https:\/\/yohost.org\/library\/how-to-upgrade-ubuntu-20-04-to-22-04-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yohost.org\/library\/"},{"@type":"ListItem","position":2,"name":"How to upgrade Ubuntu 20.04 to 22.04 (SSH)"}]},{"@type":"WebSite","@id":"https:\/\/yohost.org\/library\/#website","url":"https:\/\/yohost.org\/library\/","name":"Privacy Dedicated Library","description":"Everything about privacy protection, Bitcoin, encryption and technology","publisher":{"@id":"https:\/\/yohost.org\/library\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yohost.org\/library\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/yohost.org\/library\/#organization","name":"Yohost.org","url":"https:\/\/yohost.org\/library\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yohost.org\/library\/#\/schema\/logo\/image\/","url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2021\/12\/yhscree2.png","contentUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2021\/12\/yhscree2.png","width":431,"height":466,"caption":"Yohost.org"},"image":{"@id":"https:\/\/yohost.org\/library\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/yohostorg"]},{"@type":"Person","@id":"https:\/\/yohost.org\/library\/#\/schema\/person\/69f04ef60b945341f65db69ad70c0faf","name":"Paul M","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","caption":"Paul M"},"sameAs":["https:\/\/yohost.org\/library"],"url":"https:\/\/yohost.org\/library\/author\/admin_31kufsla\/"}]}},"_links":{"self":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/comments?post=685"}],"version-history":[{"count":3,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":709,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/685\/revisions\/709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/media\/698"}],"wp:attachment":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}