<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2021:11:26</title>
        <description></description>
        <link>https://baszerr.eu/</link>
        <lastBuildDate>Tue, 07 Apr 2026 21:56:45 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://baszerr.eu/</link>
        </image>
        <item>
            <title>2021-11-26_-_apt-key_is_dead..._finally</title>
            <link>https://baszerr.eu/doku.php?id=blog:2021:11:26:2021-11-26_-_apt-key_is_dead..._finally</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;apt-key_is_dead_finally&quot;&gt;2021-11-26 - apt-key is dead... finally!&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
today i was preparing some dockerized SDK, with some out-of-distro tooling. the usuall stuff:
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; find external repo&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; add to &lt;code&gt;apt&lt;/code&gt; &lt;code&gt;sources.list.d&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; then &lt;code&gt;apt-key&lt;/code&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
and surprise! deprecation warning! fast-forward 23 seconds and &lt;a href=&quot;https://www.linuxuprising.com/2021/01/apt-key-is-deprecated-how-to-add.html&quot; class=&quot;urlextern&quot; title=&quot;https://www.linuxuprising.com/2021/01/apt-key-is-deprecated-how-to-add.html&quot; rel=&quot;ugc nofollow&quot;&gt;everything is clear&lt;/a&gt;.
&lt;/p&gt;

&lt;p&gt;
it&amp;#039;s deprecated because of a fatal design flaw – keys added could be used to sign ANY package. even overwrite sth from the main distro (think: glibc, kernel…). this is the exact reason i drop using external repos a long time ago on my machines. if ever needed – only via docker or VM.
&lt;/p&gt;

&lt;p&gt;
so what&amp;#039;s current, better solution? obviously connect repo with a key. you can do this now with a simple syntax, when defining a repo file. here&amp;#039;s how it goes:
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;pre class=&quot;code&quot;&gt;wget -O - https://some.custom.repo/key.gpg | gpg --dearmor &amp;gt; /usr/share/keyrings/repo-keyring.gpg&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;pre class=&quot;code&quot;&gt;vi /etc/apt/sources.list.d/repo.list&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
and there the key part (literally ;)):
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;deb [signed-by=/usr/share/keyrings/repo-keyring.gpg] https://some.custom.repo/debian bullseye main&lt;/pre&gt;

&lt;p&gt;
followed by usuall:
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;apt update
apt &lt;span class=&quot;kw2&quot;&gt;install&lt;/span&gt; my-favourite-custom-package&lt;/pre&gt;

&lt;p&gt;
and done! :)
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 26 Nov 2021 20:14:50 +0000</pubDate>
        </item>
    </channel>
</rss>
