Unable to add install sources for Sonarr on Rasbian

Hi guys,

I have just bought a Raspberry pi 2, and am in the process of trying to install Sonarr. I have been following the ‘Install Sonarr Raspberry Pi with Mono 3.10’ guide from HTPC guides. Each step on the guide has been successful (mono has been installed), until i need to install the Sonarr sources.

I have been typing:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
echo “deb https://apt.sonarr.tv/ master main” | sudo tee -a /etc/apt/sources.list

However, i keep getting the following error:

gpg: “echo” not a key ID:skipping
gpg: “deb” not a key ID: Skipping
gpg: “https://apt.sonarr.tv/“ not a key ID: skipping
gpg: “master“ not a key ID: skipping
gpg: “main“ not a key ID: skipping
gpg: requesting key FDA5DFFC from hkp server keyserver.ubuntu.com
gpg: key D9B78493: “NzbDrone contact@nzbdrone.com” not changed
gpg: Total number processed: 1
gpg: unchanged: 1

i can’t figure out what i am doing wrong. can someone please help.

Thanks,

It seems like you are entering the two commands as one. You need to press enter after FDA5DFFC and before echo.

I just tried pressing enter after FDA5DFFC, but now get the error

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.0f4GcYGKAa – --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
gpg: requesting key FDA5DFFC from hkp server keyserver.ubuntu.com
gpg: key D9B78493: “NzbDrone contact@nzbdrone.com” not changed
gpg: Total number processed: 1
gpg: unchanged: 1

i then ran the echo command, followed by an update command, which told me the sources.list doesn’t exist

The output from the gpg command looks right. Can you paste the contents of /etc/apt/sources.list? Maybe there is something wrong there.

the sources.list files contains the following:

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.7FiDaG7244 – --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.wU0qy1WzFr – --trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
deb-src http://archive.rasbian.org/raspbian wheezy main contrib non-free rpi
deb https://apt.sonarr.tv/ master main

Is there also meant to be a ‘/etc/apt/sources.list.d’ ? as i get the following error when i run
sudo apt-get install apt-transport-https -y --force-yes

N: ignoring file ‘s’ in directory ‘/etc/apt/sources.list.d/’ as it has no filename extension

Ok, that’s a problem. There is a bunch of junk in your sources.list. You should delete these parts:

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring 
--secret-keyring /tmp/tmp.7FiDaG7244 -- --trustdb-name 
/etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring 
/etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 
FDA5DFFC
Executing: gpg --ignore-time-conflict --no-options 
--no-default-keyring --secret-keyring /tmp/tmp.wU0qy1WzFr -- 
--trustdb-name /etc/apt//trustdb.gpg --keyring /etc/apt/trusted.gpg 
--primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com 
--recv-keys FDA5DFFC

leaving you with only this in the file:

deb-src http://archive.rasbian.org/raspbian wheezy main contrib non-free rpi
deb https://apt.sonarr.tv/ master main

/etc/apt/sources.list.d/ is a fine directory to have. I bet the s file in it is more junk though.

Thanks for that.

I’ve checked the sources.list.d and .s files, both are empty.

I have run a sudo apt-get update command, which ran successfully. however, i still got the

N: ignoring file ‘s’ in directory ‘/etc/apt/sources.list.d/’ as it has no filename extension

Sorry, i’m new to all this

No worries. We were all new once.

The source.list.d directory is a way to split source.list into multiple files. You aren’t using it, but sometimes other packages use it. Don’t worry too much about it. You should delete /etc/apt/sources.list.d/s. since it is empty it isn’t doing anything except printing that error. After that you should be good to install sonarr with apt-get install.

Thanks mythom.

I was unable to delete the d/s files. However, i was able to to do an apt-get update with no issues (except the error about the list.d file).

after this step, i ran the: ‘sudo apt-get install nzbdrone -y’ command, which gave the following output:
Reading package list…done
Building dependency tree…done
Reading state information…done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or being moved out of incoming.

The following information will help to resolve the situation:

The following packages have usenet dependencies:
nzbdrone : Depends: sqlite3 (>= 3.7) but it is not installable
Depends: mediainfo (>= 0.7.52) but is not installable

Help!! what do i do :frowning: