As with all installation instructions on the internet, they are often out-of-date by the time you find them… and the ones you found did work once have since gone missing… these are my notes during the SABNzbd installation… It gets confusing at the end.

# Ensure Raspberry Pi is up-to-date
sudo apt-get update
sudo apt-get upgrade
# Note: To remove unused automatically installed packages, use: sudo apt autoremove

# install sabnzbd+
sudo apt-get install sabnzbdplus
# Note: You may be prompted to continue, enter Y, then Enter

# Add Unrar to Sources List
sudo nano /etc/apt/sources.list
#deb-src http://archive.raspbian.org/raspbian wheezy main contrib non-free rpi
deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

# Update sources
sudo apt-get update

# create working directory and go to it
mkdir ~/unrar-nonfree && cd ~/unrar-nonfree

# download dependencies
sudo apt-get build-dep unrar-nonfree

# download the source code and install the package
sudo apt-get source -b unrar-nonfree
# Note: The version likely updated, use ls to determine correct .deb file name.
sudo dpkg -i unrar_5.3.2-1+deb9u1_armhf.deb

# remove the source directory
cd && sudo rm -r ~/unrar-nonfree

# manually start sabnzbd+
sabnzbdplus --server 0.0.0.0

# Open the Setup Wizard in the browser
# http://[Your Pi's IP]:8080/wizard/
# Note: Be ready with at least one of your download servers... host, user, pass.
# Enter Language and Download Server details.

# Following restart, interface is ready and accessible here:
# http://localhost:8080/sabnzbd/
# http://127.0.1.1:8080/sabnzbd/
# http://raspberrypi:8080/sabnzbd/

# Configure Additional Download Servers
# Set Article Cache to One Quarter of RAM (check ram size: free -m) eg. 1GB = 256M
# If you wish to access SAB from outside, change host in config to: 0.0.0.0

# At this point, open the config and set the folder locations
# Temporary Download Folder: /media/pi/Baal/sabnzbd/downloading
# Set Min Free Space (Size of largest download + 10%: eg. 5G
# Completed Download Folder: /media/pi/Baal/sabnzbd/completed
# Watched Folder: Downloads/nzbwatch
# Scripts Folder: Downloads/sabscripts
# .nzb Backup Folder: /media/pi/Baal/sabnzbd/nzb-backup

# Within Config, also add your "sonarr" category under categories, 
# this is how we know what items in the queue came from Sonarr

# Press CTRL+C to stop SAB in Terminal

# Set to Auto-Run by editing the following file, adding "pi" after USER=
sudo nano /etc/default/sabnzbdplus

# Reboot
sudo reboot

Note: When I figured out that the installation was out of date (and not unrarring some files), I discovered the following blog:
https://forums.sabnzbd.org/viewtopic.php?f=16&t=9844

It discusses the way to ensure  that SABNzbd is auto-updated... for Stretch, do the following:

# echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu xenial main" | tee -a /etc/apt/sources.list
# But for no beta, use the following:
echo "deb http://ppa.launchpad.net/jcfp/nobetas/ubuntu xenial main" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F
sudo apt-get update && sudo apt-get dist-upgrade

# The next issue I had was the "SABYenc module... NOT found!" error.
# I tried to get the add-apt-repository command to work as per: https://sabnzbd.org/wiki/installation/sabyenc.html

# As per "Technical Details", https://launchpad.net/~pj-assis/+archive/ubuntu/ppa
# Next I tried addding the following lines:
deb http://ppa.launchpad.net/pj-assis/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/pj-assis/ppa/ubuntu xenial main
# The above didn't work.

# As per the suggestion, here: https://raspberrypi.stackexchange.com/questions/44622/how-to-add-ppa-entries-manually-on-raspberry-pi
# Note: I may have redundantly performed the following:
sudo apt-get install software-properties-common

# As per: https://forums.sabnzbd.org/viewtopic.php?t=22809
# Note: Something I didn't try here (that apparently worked for someone): apt-get install crossbuild-essential-armel
# I next added these lines into /etc/sources.list (some of them may also be redundent (or using the wrong version))
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu trusty main
deb http://ppa.launchpad.net/jcfp/sab-addons/ubuntu trusty main

# I actually suspect that a combination of xenial and those last two lines may have worked.

# Finally, it installed with the following:
sudo apt-get install python-sabyenc

# As per: https://sabnzbd.org/wiki/installation/multicore-par2
# The final issue, was Par2... it was also not installed but optional:
sudo apt-get install par2-mt

Leave a Reply

Your email address will not be published. Required fields are marked *