{"id":930,"date":"2023-09-03T19:25:21","date_gmt":"2023-09-03T17:25:21","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=930"},"modified":"2023-09-03T19:25:22","modified_gmt":"2023-09-03T17:25:22","slug":"apt-key-ist-veraltet","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/apt-key-ist-veraltet\/","title":{"rendered":"apt-key ist veraltet"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">M\u00f6chte man unter Debian GNU\/Linux weitere nicht von Debian stammende Repositorys hinzuf\u00fcgen, muss man deren Schl\u00fcsseldatei in das System einpflegen. Dies gelang bisher als\u00a0Administrator\u00a0auf dem\u00a0Terminal\u00a0mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-key add<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ab Debian 11 (<em>Bookworm<\/em>) erh\u00e4lt man inzwischen jedoch die Meldung:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).\nOK<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Es handelt sich hierbei um keinen Fehler, sondern der Befehl &#8222;<strong><code>apt-key<\/code><\/strong>&#8220; ist einfach veraltet &#8211; f\u00fcr die Debian-Entwickler ist er zu unsicher und sollte nicht mehr genutzt werden. Das Problem &#8211; viele externe Software-Entwickler haben noch nicht darauf reagiert. Um diesem Problem zu entgehen, baut man den Befehl einfach ein wenig um.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nehmen wir einfach einmal als Beispiel folgende alte L\u00f6sung (<em>alle nat\u00fcrlich als Administrator am Terminal<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -s https:\/\/celestia.space\/packages\/celestia.key | apt-key add -<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit &#8222;<strong><code>sudo<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -s https:\/\/celestia.space\/packages\/celestia.key | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O- https:\/\/celestia.space\/packages\/celestia.key | apt-key add -<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit &#8222;<strong><code>sudo<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O- https:\/\/celestia.space\/packages\/celestia.key | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die URL zur Schl\u00fcsseldatei lautet in diesem Beispiel ganz einfach &#8222;<strong><a rel=\"noreferrer noopener\" href=\"https:\/\/celestia.space\/packages\/celestia.key\" target=\"_blank\">https:\/\/celestia.space\/packages\/celestia.key<\/a><\/strong>&#8222;. Was wir tun m\u00fcssen, ist aus der &#8222;<strong>.asc<\/strong>&#8222;- oder &#8222;<strong>.key<\/strong>&#8222;-Datei den GPG-Schl\u00fcssel extrahieren und etwa unter &#8222;<em>\/usr\/share\/keyrings\/<\/em>&#8220; speichern. Dies gelingt in einem einzigen Befehl &#8211; in diesem Beispiel nenne ich die Datei &#8222;<strong>celestia.gpg<\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O- https:\/\/celestia.space\/packages\/celestia.key | gpg --dearmor | tee \/usr\/share\/keyrings\/celestia.gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit &#8222;<strong><code>sudo<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O- https:\/\/celestia.space\/packages\/celestia.key | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/celestia.gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Oder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -s https:\/\/celestia.space\/packages\/celestia.key | gpg --dearmor | tee \/usr\/share\/keyrings\/celestia.gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit &#8222;<strong><code>sudo<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -s https:\/\/celestia.space\/packages\/celestia.key | gpg --dearmor | sudo tee \/usr\/share\/keyrings\/celestia.gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Was wir jetzt noch tun m\u00fcssen, ist diese GPG-Datei im Eintrag der\u00a0<strong>Sources.list<\/strong>\u00a0zu erw\u00e4hnen, fr\u00fcher h\u00e4tte so ein Eintrag aus ausgesehen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb https:\/\/celestia.space\/packages buster main<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Heute tr\u00e4gt man die GPG-Datei mit der Option &#8222;<strong>[signed-by=\/Pfad\/zur\/Dateiname.gpg]<\/strong>&#8220; ein, in diesem Beispiel eben:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deb &#91;signed-by=\/usr\/share\/keyrings\/celestia.gpg] https:\/\/celestia.space\/packages buster main<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Fertig, es gen\u00fcgt wie \u00fcblich:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update\napt install paket-name<\/code><\/pre>\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=\"930\" 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\">    <\/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=\"930\" 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>M\u00f6chte man unter Debian GNU\/Linux weitere nicht von Debian stammende Repositorys hinzuf\u00fcgen, muss man deren Schl\u00fcsseldatei in das System einpflegen. Dies gelang bisher als\u00a0Administrator\u00a0auf dem\u00a0Terminal\u00a0mit dem Befehl: Ab Debian 11 (Bookworm) erh\u00e4lt man inzwischen jedoch die Meldung: Es handelt sich hierbei um keinen Fehler, sondern der Befehl &#8222;apt-key&#8220; ist einfach veraltet &#8211; f\u00fcr die Debian-Entwickler [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":763,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,17,4],"tags":[12,7,65,15,6],"class_list":["post-930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-verwalten","category-system","category-terminal","tag-kommandozeile","tag-shell","tag-software-verwalten","tag-system","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/930","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=930"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/930\/revisions"}],"predecessor-version":[{"id":931,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/930\/revisions\/931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/763"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}