{"id":1654,"date":"2021-12-16T14:08:39","date_gmt":"2021-12-16T11:08:39","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/03\/25\/how-to-upgrade-debian-distros-guide\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/03\/25\/how-to-upgrade-debian-distros-guide\/"},"modified":"2021-12-16T14:08:39","modified_gmt":"2021-12-16T11:08:39","slug":"how-to-upgrade-debian-distros-guide","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1654-how-to-upgrade-debian-distros-guide\/","title":{"rendered":"How to upgrade Debian distros [Guide]"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>Are you using Debian and want to upgrade it to other releases like Testing, Unstable, or even Experimental, but don\u2019t know how? We can help! Follow along as we show you how to upgrade Debian distros!<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397912 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-upgrade-debian-distros-guide.png\" alt=\"upgrade Debian distros\" width=\"1200\" height=\"282\"\/><\/p>\n<h2>How to upgrade Debian distros \u2013 upgrade to Testing<\/h2>\n<p>One of the best things about Debian is that users can choose what type of Debian release they like. Want newer packages? Upgrade Debian Stable to Debian Testing.<\/p>\n<p>If you\u2019d like to upgrade your release of Debian Stable to Debian Testing, start by opening up a terminal window. To open up a terminal window on the Debian desktop, press <strong>Ctrl + Alt + T\u00a0<\/strong>or search for \u201cTerminal\u201d in the app menu.<\/p>\n<p>Once the terminal window is open, use the\u00a0<strong>sed\u00a0<\/strong>command below to change over your software sources from \u201cStable\u201d or \u201cBuster\u201d (Debian 10, the current stable release codename as of writing this) to the \u201cTesting\u201d codename.<\/p>\n<pre>\nsudo sed -i 's\/stable\/testing\/g' \/etc\/apt\/sources.list\n<\/pre>\n<p>If you have \u201cbuster\u201d in your <code>\/etc\/apt\/sources.list<\/code> instead of \u201cstable,\u201d execute the command below instead.<\/p>\n<pre>\nsudo sed -i 's\/buster\/testing\/g' \/etc\/apt\/sources.list\n<\/pre>\n<p>When you\u2019ve finished changing over software sources in the <code>\/etc\/apt\/sources.list<\/code> file, you\u2019ll need to open up the file for editing purposes. Using the\u00a0<strong>nano\u00a0<\/strong>command below, open up the file.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397912 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-upgrade-debian-distros-guide.png\" alt=\"\" width=\"1200\" height=\"282\"\/><\/p>\n<pre>\nsudo nano -w \/etc\/apt\/sources.list <\/pre>\n<p>Inside of Nano, locate <code>deb http:\/\/deb.debian.org\/debian\/ testing-updates<\/code> and delete that entire line of code. There\u2019s no \u201ctesting\u201d repo for security updates on Debian, but the\u00a0<strong>sed\u00a0<\/strong>command creates this line when replacing \u201cstable\u201d or \u201cbuster\u201d with \u201ctesting.\u201d Be sure also to delete\u00a0<code>deb-src http:\/\/deb.debian.org\/debian\/ testing-updates<\/code><\/p>\n<p>After shutting off the security updates repo, save by pressing\u00a0<strong>Ctrl + O<\/strong> and exit with\u00a0<strong>Ctrl + X<\/strong>. Once outside of Nano, enter the commands below in succession to upgrade to Debian Testing.<\/p>\n<pre>\nsudo apt update sudo apt upgrade -y\nsudo apt dist-upgrade -y\nsudo reboot\n<\/pre>\n<h2>How to upgrade Debian distros \u2013 upgrade to Unstable<\/h2>\n<p>If Debian Testing isn\u2019t enough for you, you can always upgrade your Debian system to Debian Unstable. Unstable is where active Debian development occurs. Packages are updated frequently, and things are on the bleeding edge.\u00a0<\/p>\n<p>Debian Unstable is an excellent distribution if you like Debian but find even Debian Testing\u2019s packages a bit out of date. Upgrading to this version will allow you to always have the newest stuff on Debian. However, be warned, it\u2019s not for beginners!<\/p>\n<p>To upgrade from Debian Testing to Debian Unstable, open up a terminal window on the Debian desktop. To open up a terminal window, press\u00a0<strong>Ctrl + Alt + T<\/strong>\u00a0or search for \u201cTerminal\u201d in the app menu.<\/p>\n<p>Once the terminal window is open, use the\u00a0<strong>sed\u00a0<\/strong>command to change your software sources list from \u201ctesting\u201d to \u201cunstable.\u201d\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-397911 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-upgrade-debian-distros-guide-2.png\" alt=\"\" width=\"1200\" height=\"320\"\/><\/p>\n<pre>\nsudo sed -i 's\/testing\/unstable\/g' \/etc\/apt\/sources.list\n<\/pre>\n<p>Alternatively, If you\u2019re coming straight from Debian Stable to Debian Unstable, you\u2019ll need to do the following. First, change your software sources over by using <strong>sed<\/strong>.<\/p>\n<pre>\nsudo sed -i 's\/stable\/unstable\/g' \/etc\/apt\/sources.list\n<\/pre>\n<p>If you\u2019re using \u201cbuster\u201d in your <code>\/etc\/apt\/sources.list<\/code>, rather than \u201cstable,\u201d execute:<\/p>\n<pre>\nsudo sed -i 's\/buster\/unstable\/g' \/etc\/apt\/sources.list\n<\/pre>\n<p>Next, if you plan to go straight from \u201cStable\u201d to \u201cUnstable,\u201d open up <code>\/etc\/apt\/sources.list<\/code> in Nano with the command below and delete both <code>deb http:\/\/deb.debian.org\/debian\/ unstable-updates<\/code> and <code>deb-src http:\/\/deb.debian.org\/debian\/ unstable-updates<\/code>. Save Nano with\u00a0<strong>Ctrl + O<\/strong>, and close Nano with\u00a0<strong>Ctrl +X<\/strong> when done editing.<\/p>\n<p>Once all software channels are changed over to \u201cUnstable,\u201d upgrade your system to Debian Unstable by making use of the commands below.<\/p>\n<pre>\nsudo apt update sudo apt upgrade -y\nsudo apt dist-upgrade -y\nsudo reboot\n<\/pre>\n<h2>How to upgrade Debian distros \u2013 Debian Experimental<\/h2>\n<p>Unlike Debian Testing and Debian Unstable, Debian Experimental isn\u2019t a complete distribution. You can\u2019t just convert your Debian Testing or Debian Unstable system into an entirely experimental release. However, you can install packages from the Experimental repo.<\/p>\n<p>To gain access to the Debian Experimental repo, start by opening up a terminal window on the Debian Linux Desktop. Once the terminal window is open, open up your Debian sources list in the Nano text editor.<\/p>\n<p>WARNING: Debian Experimental packages are in a pre-alpha state. They are incredibly unstable. Only use Debian Experimental if you are familiar with Debian and know how to fix it!<\/p>\n<pre>\nsudo nano -w \/etc\/apt\/sources.list <\/pre>\n<p>Inside the Nano text editor, add the following line of code. This line of code will enable you to access the Debian Experimental software repository.\u00a0<\/p>\n<p><code>deb http:\/\/deb.debian.org\/debian experimental main<\/code><\/p>\n<p>After adding the line of code to your sources list in Debian, press the\u00a0<strong>Ctrl + O\u00a0<\/strong>keyboard combination to save the edits. Then, use the <strong>Ctrl + X\u00a0<\/strong>button to exit the Nano editor.<\/p>\n<p>Once you\u2019ve closed the Nano text editor, type in\u00a0<strong>sudo apt update<\/strong> in the terminal. This command will refresh Debian\u2019s software sources and add the new \u201cExperimental\u201d packages to the package database.<\/p>\n<pre>\nsudo apt update\n<\/pre>\n<p>When everything is up to date, you\u2019ll be able to install Debian Experimental packages by using the following command.<\/p>\n<pre>\nsudo apt -t experimental install packagename\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles Are you using Debian and want to upgrade it to other releases like Testing, Unstable, or even Experimental, but don\u2019t know how? We can help! Follow along as we show you how to upgrade Debian distros! How to upgrade Debian distros \u2013 upgrade to Testing One of the best things about Debian is &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1655,"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\/1654"}],"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=1654"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1654\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1655"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}