however.
- why does mattermostmost keep this key in /usr/share/keyrings/mattermost-archive-keyring.gpg instead of /etc/apt/trusted.gpg.d/ folder?
- does anything else besides apt use this keyring? (as for
apt
the gpg --dearmor is totally unnecessary step there. apt can use ascii key files for repo signatures just as well.) - But why not just use
deb https://deb.packages.mattermost.com jammy main
in mattermost.list? seems to work fine… forsudo apt update
at least.
anyway, thanks for help and inspired by this, on my case just as normal, non-root user…
curl -s https://deb.packages.mattermost.com/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/mattermost-archive-keyring.gpg
…was enough, to fix this. To overwrite original, old, already existing expired key. Repos and everything else was already in place.