- [[netdata#Change install type of an existing installation]]
- Create new keyrings dir
mkdir -p /etc/apt/keyrings && chmod 0755 /etc/apt/keyrings
- delete old legacy keys
apt-key list apt-key del <last 8 chars of pub id>
- download the new / replacement key
wget https://host.domain.tld/path/to/<keyfile>.<ext>
- verify that the filetype is
PGP public key block Public-Key (old)
file <keyfile>.<ext>
gpg
supports a number of key formats, so if your key is in a different format, convert it by importing it into a temp keyring, then exporting it again:gpg --no-default-keyring --keyring ./temp-keyring.gpg --import keyfile.ext gpg --no-default-keyring --keyring ./temp-keyring.gpg --export --output your-keyfile-name.gpg rm temp-keyring.gpg
Note
Now that you have your converted key, do NOT add it to apt
's trusted keystore (/etc/apt/trusted.gpg.d/
). Instead, put it in /etc/apt/keyrings/
.
- Move the key to
/etc/apt/keyrings/
At this point, nothing has changed and apt
doesn't know the key exists. The last step is to modify the specific .list
file for the repository to tell apt where to find the key for that specific repo.
- Edit the file
/etc/apt/sources.list.d/<example>.list
, and in betweendeb
and the url, add[signed-by=/etc/apt/keyrings/<your-keyfile-name>.gpg]
This is a test. Obsidian does not scroll here when a link to the heading is clicked from another note!
Video repro:
obsidian-header-link-bug.mp4