Apt-key is depreciated

I was attempting to install Signal using a helpful guide by @Sven originally posted here:

However, when attempting to download the signing key for the package, I got the following error:

Warning: apt-key is depreciated.  Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

The same issue has come up with several other attempts to install packages and I have either used less secure methods to install or opted for different software.

I have looked for solutions (more than I care to admit) but had no success. Can someone post a working example of the commands required to install Signal in the above context? I’m not using apt-cache-ng so just a standard example is all I need. Hopefully that should also be enough to help me with other depreciated package installation guides.

it is qvm-run --pass-io -u root tpl-deb-10-signal “curl --proxy http://127.0.0.1:8082/ -s https://updates.signal.org/desktop/apt/keys.asc | apt-key add -"

if so, replace it with qvm-run --pass-io -u root tpl-deb-10-signal “curl --proxy http://127.0.0.1:8082/ -s https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/signal-archive-keyring.gpg"

3 Likes

@ppc I assume the closed quote goes at the end of the command (after .gpg). It seems to have worked. The only problem is that it returns random characters in the terminal window. The key? that doesn’t seem right.

yes, that the key

Why is it echoing on the terminal display? Is there a way to prevent that?

that because gpg --dearmor command

qvm-run --pass-io -u root tpl-deb-10-signal “curl --proxy http://127.0.0.1:8082/ -s https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/signal-archive-keyring.gpg > /dev/null 2>&1"

1 Like

Okay, I’ll give that a try. Thanks @pcc ! Very helpful.

1 Like