{"id":4280,"date":"2023-09-15T10:35:36","date_gmt":"2023-09-15T08:35:36","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=4280"},"modified":"2023-09-15T10:35:39","modified_gmt":"2023-09-15T08:35:39","slug":"ubuntu-22-04-lts-unattended-upgrades-blockieren-apt","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/15\/ubuntu-22-04-lts-unattended-upgrades-blockieren-apt\/","title":{"rendered":"Ubuntu 22.04 LTS: Unattended Upgrades blockieren APT"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Beschreibung<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die automatische Installation von Sicherheitsupdates im Hintergrund \u00fcber den Dienst <strong><em>Unattended Upgrades<\/em><\/strong> ist in den aktuellen Versionen von Ubuntu sowohl in der Server-Ausgabe &#8211; hier durchaus sinnvoll &#8211; als auch im Desktop-Betrieb aktiviert. Um die Server der Paketquellen nicht zu \u00fcberlasten, starten die Ubuntu-Systeme den Download willk\u00fcrlich zu unterschiedlichen Zeiten.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Das n\u00e4chste vom System geplante Hintergrund-Update kann man im Terminal mit folgenden Befehl einblenden:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl list-timers apt-daily.timer<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Bei m\u00e4\u00dfiger Internetverbindung f\u00fchrt dies nach dem Start des Systems oftmals dazu, dass der Paketmanager APT u. U. f\u00fcr andere Aktionen blockiert ist &#8211; solange eben im Hintergrund Updates installiert werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Einen eindeutigen Hinweis liefert APT im Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>E: Could not get lock \/var\/lib\/dpkg\/lock - open (11:Resource unavailable)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Erfolgt dieser Vorgang des \u00f6fteren, empfiehlt es sich, Aktualisierungen regelm\u00e4\u00dfig manuell vorzunehmen und die automatischen Sicherheits-Updates abzuschalten. Auf Server-Systemen sind Unattended Upgrades sinnvoll und sollten beibehalten werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Um den Dienst auf dem Desktop-System zu konfigurieren, hilft der Aufruf des Konfigurations-Scripts:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg-reconfigure -plow unattended-upgrades<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Im folgenden textbasierten Men\u00fc schaltet die Auswahl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Nein<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">die automatischen Updates aus.<\/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=\"4280\" 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\">1    <\/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=\"4280\" 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\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Beschreibung Die automatische Installation von Sicherheitsupdates im Hintergrund \u00fcber den Dienst Unattended Upgrades ist in den aktuellen Versionen von Ubuntu sowohl in der Server-Ausgabe &#8211; hier durchaus sinnvoll &#8211; als auch im Desktop-Betrieb aktiviert. Um die Server der Paketquellen nicht zu \u00fcberlasten, starten die Ubuntu-Systeme den Download willk\u00fcrlich zu unterschiedlichen Zeiten. Das n\u00e4chste vom System [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,101],"tags":[497,498,499,496,495],"class_list":["post-4280","post","type-post","status-publish","format-standard","hentry","category-system","category-tipps","tag-apt","tag-blockieren","tag-paketmanager","tag-ubuntu-upgrades","tag-unattended-upgrades"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/4280","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=4280"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/4280\/revisions"}],"predecessor-version":[{"id":4282,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/4280\/revisions\/4282"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=4280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=4280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=4280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}