{"id":1793,"date":"2023-09-09T17:41:32","date_gmt":"2023-09-09T15:41:32","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=1793"},"modified":"2023-09-09T17:41:35","modified_gmt":"2023-09-09T15:41:35","slug":"upgrade-von-debian-stable-auf-testing","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/09\/upgrade-von-debian-stable-auf-testing\/","title":{"rendered":"Upgrade von Debian Stable auf Testing"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Debian gilt in Dingen Aktualit\u00e4t von Software als sehr konservativ, es nutzt einfach gesagt recht betagte Software bis zum n\u00e4chsten Release &#8211; eine Release-Spanne dauert bei Debian etwa zwei bis drei Jahre. Dies sorgt nat\u00fcrlich f\u00fcr die unter Debian bekannte Stabilit\u00e4t &#8211; manche Nutzer m\u00f6chten jedoch auch aktuellere Software und Treiber.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es gibt zwei schon auf der Linux Bibel beschriebene M\u00f6glichkeiten, wie man unter Debian Stable an aktuellere Software gelangt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/debian-backports-software-fuer-stable-aus-testing\/\" data-type=\"post\" data-id=\"797\" target=\"_blank\" rel=\"noreferrer noopener\">Backports<\/a><\/strong>\u00a0&#8211; Gewisse aktuellere Software und Treiber aus Debian Testing unter Debian Stable<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/debian-pinning-aktuellere-software-auf-debian-stable\/\" data-type=\"post\" data-id=\"756\" target=\"_blank\" rel=\"noreferrer noopener\">Pinning<\/a><\/strong>\u00a0&#8211; Jede gew\u00fcnschte aktuellere Software oder Treiber aus Testing oder Unstable unter Debian Stable nutzen<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Nat\u00fcrlich kann man, um an ein aktuelleres Debian zu kommen, auch gleich Debian Testing oder gleich Unstable installieren &#8211; f\u00fcr Unstable bietet sich etwa\u00a0Siduction\u00a0an, Debian Testing finden Sie unter\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/www.debian.org\/devel\/debian-installer\/\" target=\"_blank\">Debian.org<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hat man Debian Stable jedoch schon installiert, ist keine Neuinstallation n\u00f6tig &#8211; Sie brauchen nur auf Debian Testing zu aktualisieren. Viel Arbeit ist dazu nicht n\u00f6tig. Die Aktualisierung auf Testing sehen wir uns in diesem Artikel n\u00e4her an. Eine Aktualisierung auf Debian Unstable sollte man auf diesem Weg nicht unbedingt wagen &#8211; man nutzt wie oben beschrieben eher eine schon vorbereitete Distribution.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Auf Debian Testing aktualisieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Nach der Aktualisierung auf Testing nutzt man so gesehen kein Release-Debian mehr, sondern ein Rolling Release. Aktuelle Software und Treiber gelangen in das System ganz einfach dann, wenn sie da sind &#8211; etwa wie bei\u00a0Manjaro\u00a0&#8211; hierzu habe ich auch ein Buch geschrieben,\u00a0Manjaro &#8211; das Buch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Gleich einmal zu Beginn: Alle Befehle werden als\u00a0Administrator (<em>root<\/em>)\u00a0auf dem\u00a0Terminal\u00a0ausgef\u00fchrt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Um auf Testing zu aktualisieren, nutzen wir wie \u00fcblich die\u00a0Paket-Verwaltung. Wir bringen erst einmal das System auf den aktuellen Stand:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update\napt full-upgrade<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1024x576.jpg\" alt=\"\" class=\"wp-image-1794\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wir best\u00e4tigen eventuelle Updates mit der Taste\u00a0<strong><kbd>j<\/kbd><\/strong>\u00a0und best\u00e4tigen mit\u00a0<strong><kbd>Eingabe<\/kbd><\/strong>. Nachdem wir die Aktualisierung durchgef\u00fchrt haben, schaffen wir erst einmal Platz, indem wir den Cache leeren und nicht ben\u00f6tigte Abh\u00e4ngigkeiten deinstallieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt clean\napt autoremove<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt bearbeiten wir die Paket-Quellen &#8211; standardm\u00e4\u00dfig finden sich diese in der Datei &#8222;<em>\/etc\/apt\/<strong>sources.list<\/strong><\/em>&#8222;, hierbei handelt es sich um die Quellen von Debian selbst, weitere befinden sich je nach integrierten Repositorys unter &#8222;<em>\/etc\/apt\/sources.list.d\/<\/em>&#8220; in den darin liegenden Dateien.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dazu \u00f6ffnen wir die Dateien am einfachsten mit dem Terminal-Editor Nano &#8211; f\u00fcr die erste genannte Datei:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1-1024x576.jpg\" alt=\"\" class=\"wp-image-1795\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-1.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Hier noch einmal die Datei als reiner Text (<em>f\u00fcr Debian Bullseye<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># deb cdrom:&#91;Debian GNU\/Linux 11.1.0 _Bullseye_ - Unofficial amd64 NETINST with firmware 202&gt;\n\n#deb cdrom:&#91;Debian GNU\/Linux 11.1.0 _Bullseye_ - Unofficial amd64 NETINST with firmware 2021&gt;\n\ndeb http:\/\/deb.debian.org\/debian\/ bullseye main non-free contrib\ndeb-src http:\/\/deb.debian.org\/debian\/ bullseye main non-free contrib\n\ndeb http:\/\/security.debian.org\/debian-security bullseye-security main contrib non-free\ndeb-src http:\/\/security.debian.org\/debian-security bullseye-security main contrib non-free\n\n# bullseye-updates, to get updates before a point release is made;\n# see https:\/\/www.debian.org\/doc\/manuals\/debian-reference\/ch02.en.html#_updates_and_backports\ndeb http:\/\/deb.debian.org\/debian\/ bullseye-updates main contrib non-free\ndeb-src http:\/\/deb.debian.org\/debian\/ bullseye-updates main contrib non-free\n\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD). The matching \"deb cdrom\"\n# entries were disabled at the end of the installation process.\n# For information about how to configure apt package sources,\n# see the sources.list(5) manual.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Alle Zeilen mit einem Doppelkreuz davor brauchen uns nicht zu interessieren &#8211; sie sind auskommentiert und werden vom System ignoriert. Dabei handelt es sich um zus\u00e4tzliche Repositorys, meist die CD\/DVD, von der Debian installiert wurde (<em>deb cdrom<\/em>), und Quell-Dateien, die meist nur Entwickler interessieren (<em>deb-src<\/em>). Der Rest sind Beschreibungen. Wir k\u00fcrzen die Datei um die Beschreibungen, um uns auf das Wesentliche zu konzentrieren:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/deb.debian.org\/debian\/ bullseye main non-free contrib\ndeb-src http:\/\/deb.debian.org\/debian\/ bullseye main non-free contrib\n\ndeb http:\/\/security.debian.org\/debian-security bullseye-security main contrib non-free\ndeb-src http:\/\/security.debian.org\/debian-security bullseye-security main contrib non-free\n\ndeb http:\/\/deb.debian.org\/debian\/ bullseye-updates main contrib non-free    \ndeb-src http:\/\/deb.debian.org\/debian\/ bullseye-updates main contrib non-free<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Was wir hier nun \u00e4ndern m\u00fcssen, ist das aktuelle Release, in diesem Beispiel &#8222;<strong>bullseye<\/strong>&#8220; und &#8222;<strong>bullseye-security<\/strong>&#8222;, sowie &#8222;<strong>bullseye-updates<\/strong>&#8222;. Hat man hier noch nichts angepasst, k\u00f6nnte hier auch &#8222;<strong>stable<\/strong>&#8222;, &#8222;<strong>stable-updates<\/strong>&#8220; und &#8222;<strong>stable-secutity<\/strong>&#8220; stehen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wir kommentieren erst einmal alles au\u00dfer den ersten beiden Repositorys aus &#8211; die weiteren existieren unter Debian Testing nicht &#8211; und \u00e4ndern &#8222;<strong>bullseye<\/strong>&#8220; auf &#8222;<strong>testing<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb http:\/\/deb.debian.org\/debian\/ testing main non-free contrib\ndeb-src http:\/\/deb.debian.org\/debian\/ testing main non-free contrib\n\n#deb http:\/\/security.debian.org\/debian-security bullseye-security main contrib non-free\n#deb-src http:\/\/security.debian.org\/debian-security bullseye-security main contrib non-free\n \n#deb http:\/\/deb.debian.org\/debian\/ bullseye-updates main contrib non-free   \n#deb-src http:\/\/deb.debian.org\/debian\/ bullseye-updates main contrib non-free<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-2-1024x576.jpg\" alt=\"\" class=\"wp-image-1796\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-2-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-2-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-2-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-2-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-2.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wir speichern die Datei mit\u00a0<strong><kbd>Strg+o<\/kbd><\/strong>, best\u00e4tigen mit\u00a0<strong><kbd>Eingabe<\/kbd><\/strong>\u00a0und schlie\u00dfen den Editor mit\u00a0<strong><kbd>Strg+x<\/kbd><\/strong>. Diese Anpassung f\u00fchren wir jetzt nat\u00fcrlich auch mit allen Dateien unter &#8222;<em>\/etc\/apt\/sources.list.d\/<\/em>&#8220; durch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt aktualisieren wir die Quellen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-3-1024x576.jpg\" alt=\"\" class=\"wp-image-1797\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-3-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-3-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-3-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-3-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-3.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Schon zeigt uns das System die verf\u00fcgbaren Aktualisierungen &#8211; wir aktualisieren das System mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt full-upgrade<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-4-1024x576.jpg\" alt=\"\" class=\"wp-image-1798\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-4-1024x576.jpg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-4-300x169.jpg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-4-768x432.jpg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-4-1536x864.jpg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/upgrade-auf-testing-4.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wir best\u00e4tigen die Aktion und warten ab, w\u00e4hrend die Paket-Verwaltung die Pakete herunterl\u00e4dt und das System aktualisiert.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Wichtig:<\/strong>\u00a0Unterbrechen Sie den Vorgang nicht und lassen Sie das Terminal ge\u00f6ffnet, auch wenn der Vorgang abgeschlossen ist. Jetzt leeren Sie den Paket-Cache und deinstallieren nicht mehr ben\u00f6tigte Pakete:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt clean\napt autoremove<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Auch nach diesem Vorgang lassen Sie das Terminal ge\u00f6ffnet &#8211; es w\u00e4re m\u00f6glich, dass die grafische Oberfl\u00e4che durch die \u00c4nderungen nicht mehr so reagiert wie gew\u00fcnscht &#8211; starten Sie das System mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>reboot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">neu. Fertig.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"1793\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">5    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"1793\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\">1<\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Debian gilt in Dingen Aktualit\u00e4t von Software als sehr konservativ, es nutzt einfach gesagt recht betagte Software bis zum n\u00e4chsten Release &#8211; eine Release-Spanne dauert bei Debian etwa zwei bis drei Jahre. Dies sorgt nat\u00fcrlich f\u00fcr die unter Debian bekannte Stabilit\u00e4t &#8211; manche Nutzer m\u00f6chten jedoch auch aktuellere Software und Treiber. Es gibt zwei schon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1798,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,17],"tags":[65,15],"class_list":["post-1793","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-verwalten","category-system","tag-software-verwalten","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=1793"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1793\/revisions"}],"predecessor-version":[{"id":1799,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1793\/revisions\/1799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/1798"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=1793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=1793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=1793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}