{"id":6878,"date":"2022-10-20T15:48:15","date_gmt":"2022-10-20T15:48:15","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=6878"},"modified":"2022-10-20T15:48:15","modified_gmt":"2022-10-20T15:48:15","slug":"how-to-upgrade-debian-to-a-new-release","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2022\/10\/20\/how-to-upgrade-debian-to-a-new-release\/","title":{"rendered":"How To Upgrade Debian to a New Release"},"content":{"rendered":"<p>Check Debian Version on Debian website:<br \/>\n<a href=\"https:\/\/www.debian.org\/releases\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.debian.org\/releases\/<\/a><br \/>\nCheck version on system:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo lsb_release -a\nNo LSB modules are available.\nDistributor ID: Debian\nDescription:    Debian GNU\/Linux 11 (bullseye)\nRelease:        11\nCodename:       bullseye\n<\/pre>\n<p>Or<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo cat \/etc\/os-release\n<\/pre>\n<blockquote><p>USERS SHOULD BACKUP ALL DATA before attempting a release upgrade &#8211; SEE <a href=\"https:\/\/wiki.debian.org\/DebianStability\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.debian.org\/DebianStability<\/a><\/p><\/blockquote>\n<p>Only after the back &#8211; do the following:<\/p>\n<p>Ensure your system is up-to-date in it&#8217;s current release.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo apt update\n$ sudo apt upgrade\n<\/pre>\n<p>If you haven&#8217;t already, ensure all backups are up-to-date.  <\/p>\n<p>Make a backup of the \/etc\/apt\/sources.list file:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo cp \/etc\/apt\/sources.list \/etc\/apt\/sources.list.bak\n<\/pre>\n<p>In a text editor, replace the codename of your release with that of the next release in APT&#8217;s package sources<br \/>\nFor instance, the line:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndeb https:\/\/deb.debian.org\/debian\/ buster main\n<\/pre>\n<p>should be replaced with<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndeb https:\/\/deb.debian.org\/debian\/ bullseye main\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo nano \/etc\/apt\/sources.list \n<\/pre>\n<p># Clean and update package lists<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo apt clean\n$ sudo apt update\n<\/pre>\n<p>Perform the major release upgrade, removing packages if required<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo apt full-upgrade\n<\/pre>\n<p>Remove packages that are not required anymore. Be sure to review this list: you may want to keep some of them<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo apt autoremove\n<\/pre>\n<p>Reboot to make changes effective (optional, but recommended)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo shutdown -r now\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Check Debian Version on Debian website: https:\/\/www.debian.org\/releases\/ Check version on system: $ sudo lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU\/Linux 11 (bullseye) Release: 11 Codename: bullseye Or $ sudo cat \/etc\/os-release USERS SHOULD BACKUP ALL DATA before attempting a release upgrade &#8211; SEE https:\/\/wiki.debian.org\/DebianStability Only after the back &#8211; &#8230; <a title=\"How To Upgrade Debian to a New Release\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2022\/10\/20\/how-to-upgrade-debian-to-a-new-release\/\" aria-label=\"Read more about How To Upgrade Debian to a New Release\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-6878","post","type-post","status-publish","format-standard","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=6878"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/6878\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=6878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=6878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=6878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}