How to fix "Warning: apt-key is deprecated" when installing Elixir on a Raspberry Pi

Trying to install elixir on a Raspberry pi using the official instructions leads to an error.

The sudo apt-key add erlang_solutions.asc command issues this message:

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

It’s just a warning, but things go wrong starting from that point…

It seems that this is the new way to import the key

cat erlang_solutions.asc | gpg --dearmor > erlang_solutions.gpg
sudo install -o root -g root -m 644 erlang_solutions.gpg /etc/apt/trusted.gpg.d/

And from that point on, it installs successfully.

Furthermore, I realized that it installs these versions, which are a tad outdated…

Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

Elixir 1.10.3 (compiled with Erlang/OTP 22)

Would be nice to have the instructions and the binaries updated in my opinion… but I have no idea who to discuss this with, so that’s why I’m here.

1 Like

The page is open source. You can open an issue or a PR there: GitHub - elixir-lang/ Website for Elixir


Did it…

Although it doesn’t address the fact that apt installs 1.10.3…

OS level repositories are maintained by third parties, in this case erlang solutions.

Thanks for the info!

Elixir Solutions updated to 1.13.0 now