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