Debian 12 apt key depreciated

I was trying to install the key before installing sonar i used this code

Debian 10 “buster” (i386, amd64, armhf, arm64)

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 2009837CBFFD68F45BC180471F4F90DE2A9B4BF8
echo "deb https://apt.sonarr.tv/debian buster main" | sudo tee /etc/apt/sources.list.d/sonarr.list
sudo apt update

I get this error

~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 2009837CBFFD68F45BC180471F4F90DE2A9B4BF8
[sudo] password for srv1:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.k130owlcbm/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 2009837CBFFD68F45BC180471F4F90DE2A9B4BF8
gpg: key 1F4F90DE2A9B4BF8: public key “Sonarr hello@sonarr.tv” imported
gpg: Total number processed: 1
gpg: imported: 1

sudo apt install sonarr
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package sonarr

It’s not an error. It’s a warning, but it seems the sonarr repo was not actually added or an apt update was not done

I was getting problems with that before but they must have changed it now its working ok you may have to look at what needs be done for that key though when 12 releases.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.