apt-key deprecated in deb11 based distros

158 views
Skip to first unread message

Vince Skahan

unread,
Nov 11, 2021, 6:30:28 PM11/11/21
to weewx-development
Looks like the way folks install apt repo keys needs to change.   When you try the commands from the installation instructions you get a warning saying 

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

This is already causing pain for updated RaspiOS (deb11 based) users.

A relatively painful researching seems to say that apt-key is going away in the next major debian(ish) release and that the procedure for importing repo keys needs to be relatively significantly changed.

One reference I can find is (here), but in any event it seeeeeems like the right thing to do is to get the keys into a standalone file in /etc/apt/trusted.gpg.d much like the instructions currently add to sources.list.d

Wish I had precise instructions to suggest but all the discussions I could find were way deep into intellectual/licensing purity zealotry and not just sticking with the core issue of "these are the changes you need to make".

Let me know if you want me to open a github issue on this one....

Vince Skahan

unread,
Nov 11, 2021, 6:36:36 PM11/11/21
to weewx-development
Matthew/Tom - I did find one way that seems to maybe work.

wget -qO - https://weewx.com/keys.html | sudo gpg --dearmor > /etc/apt/trusted.gpg.d/weewx.gpg

Vince Skahan

unread,
Nov 22, 2021, 7:59:00 PM11/22/21
to weewx-development
update - I ran into this yet again in setting up a debian11 pkg install vagrant box, so I'm pretty sure this will be necessary moving forward.  Think about it for a future docs release.
Reply all
Reply to author
Forward
0 new messages