SOLVED: Can't update to latest version on Raspberry Pi

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
duffman69
Newbie
Newbie
Posts: 2
Joined: August 8th, 2012, 1:42 pm

SOLVED: Can't update to latest version on Raspberry Pi

Post by duffman69 »

Hi

I have just got a RaspberryPi which is running Debian. I originally followed these instructions - http://forums.sabnzbd.org/viewtopic.php?f=16&t=11036 - and got Sab set up fine. However I ran into problems where it wouldnt unrar at all. I started looking into this and try to resolve it, when I realised that it is only version 0.6.15 whereas the latest on the website is 0.7.3. I came here to look how to update it and have tried to follow this - http://forums.sabnzbd.org/viewtopic.php?f=16&t=9844 - however I can't get it working.

I understand the instructions are for Ubuntu but it does suggest that it should work on Debian. Any clues?

I get an error while running apt-get update

Code: Select all

W: Failed to fetch http://ppa.launchpad.net/jcfp/ppa/ubuntu/dists/lucid/Release  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
I have also tried the similar instructions on the wiki to no avail either.
Last edited by duffman69 on August 9th, 2012, 1:05 pm, edited 1 time in total.
exussum
Jr. Member
Jr. Member
Posts: 79
Joined: November 18th, 2010, 2:51 am

Re: Can't update to latest version

Post by exussum »

update using the python package ? Seems whoever has control of the repository hasn't updated
User avatar
jcfp
Release Testers
Release Testers
Posts: 993
Joined: February 7th, 2008, 12:45 pm

Re: Can't update to latest version

Post by jcfp »

You're running into several issues here:
  • First, using the ubuntu lucid version ppa on debian is intended for a debian release of a similar age (squeeze), while you're on the new not-yet-officially-released debian wheezy.
  • In addition, support for the "armhf" architecture appears to have been introduced in ubuntu only starting with precise (12.04). Although sabnzbdplus is architecture independent, the automatically generated index files of the repository will simply not list your architecture as supported, causing apt to give up with that Unable to find expected entry 'main/binary-armhf/Packages' error.
To fix, remove the offending line from /etc/apt/sources.list (text file, requires root to edit). Then follow the instruction in this topic again, but substitute lucid with precise in the first command, like this:

Code: Select all

echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a /etc/apt/sources.list
Afterwards, please report back with your findings, so that I can update the instructions.
duffman69
Newbie
Newbie
Posts: 2
Joined: August 8th, 2012, 1:42 pm

Re: SOLVED: Can't update to latest version on Raspberry Pi

Post by duffman69 »

Hi jcfp, thanks for the reply. Very informative and helpful, I'm new to linux but I think I understand the problem and the solution!

Anyway, good news, it appears to have worked. I'm now on version 0.7.3! I assume in future to update I can just run

Code: Select all

aptitude --with-recommends install sabnzbdplus
Thanks again, now I need to test the unraring, that might be another problem! I will update my thread title to add RaspberryPi, as maybe others will have the same prob as me
User avatar
jcfp
Release Testers
Release Testers
Posts: 993
Joined: February 7th, 2008, 12:45 pm

Re: SOLVED: Can't update to latest version on Raspberry Pi

Post by jcfp »

Updates for sab show up like any other update (i.e. when you run apt-get update && apt-get upgrade or variations thereof), so no need to do anything specific for sab unless you never update the rest of your system.

And thanks for the feedback, instructions have been updated.
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: SOLVED: Can't update to latest version on Raspberry Pi

Post by sander »

I'm now running the procedure on my Raspbian armhf, and I have two remarks:

No unrar:
After the install and setup, SAB says: "1 Warnings ⋅ No UNRAR program found, unpacking RAR files is not possible"

A manual install does not work either:

Code: Select all

pi@raspberrypi ~ $ sudo apt-get install unrar
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package unrar is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'unrar' has no installation candidate
pi@raspberrypi ~ $ 
Hmm, no 'unrar' for Raspbian armhf?


EDIT

Based on http://www.raspberrypi.org/phpBB3/viewt ... p?p=140388, I did

Code: Select all

sudo apt-get install unrar-free
which results in SAB saying:

Code: Select all

Your UNRAR version is not recommended, get it from http://www.rarlab.com/rar_add.htm
TBC


/EDIT

Why python2.6:

but why is python2.6 installed? SABnzbd runs fine with python 2.7 on my Ubuntu. Installing python2.6 takes space and time ("Linking and byte-compiling packages for runtime python2.6..."), so I would rather have it not installed and just use the already installed python 2.7.
And: is it caused by the "--with-recommends "?

FYI: Command used:

First "sudo su -", and then:

1 echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a /etc/apt/sources.list
2 apt-key adv --keyserver hkp://pool.sks-keyservers.net:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F
3 apt-get update
4 aptitude --with-recommends install sabnzbdplus
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: SOLVED: Can't update to latest version on Raspberry Pi

Post by sander »

OK, unrar thing 'solved' by following the instruction on http://www.raspberrypi.org/phpBB3/viewt ... p?p=140388

From my history:

Code: Select all


echo "deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep unrar-nonfree
sudo apt-get source -b unrar-nonfree
sudo dpkg -i unrar_4.1.4-1_armhf.deb


The old unrar-free:

Code: Select all

pi@raspberrypi ~ $ unrar -V
unrar 0.0.1
Brrr, that's old!

The new unrar-nonfree:

Code: Select all

pi@raspberrypi ~ $ sudo dpkg -i unrar_4.1.4-1_armhf.deb
Selecting previously unselected package unrar.
(Reading database ... 57347 files and directories currently installed.)
Unpacking unrar (from unrar_4.1.4-1_armhf.deb) ...
Setting up unrar (1:4.1.4-1) ...
update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode.
Processing triggers for man-db ...
pi@raspberrypi ~ $ 
pi@raspberrypi ~ $ unrar -V

UNRAR 4.10 freeware      Copyright (c) 1993-2012 Alexander Roshal
Ah, that's better!


Strange Debian policy ...
User avatar
sander
Release Testers
Release Testers
Posts: 8847
Joined: January 22nd, 2008, 2:22 pm

Re: SOLVED: Can't update to latest version on Raspberry Pi

Post by sander »

I've uploaded unrar_4.1.4-1_armhf.deb to http://www.appelboor.com/dump/unrar-for-raspbian-armhf/

So, to install unrar-nonfree on Raspbian armhf without any compiling, this should work:

Code: Select all

wget http://www.appelboor.com/dump/unrar-for-raspbian-armhf/unrar_4.1.4-1_armhf.deb
sudo dpkg -i unrar_4.1.4-1_armhf.deb
... or is this against some law / Debian rule?
User avatar
jcfp
Release Testers
Release Testers
Posts: 993
Joined: February 7th, 2008, 12:45 pm

Re: SOLVED: Can't update to latest version on Raspberry Pi

Post by jcfp »

For unrar, better ask whoever maintains "mirrordirector.raspbian.org" why they have only the unrar source package but not the precompiled goodness, for something that apparently builds and runs fine. Even debian proper does have the binary (deb) available for armhf, so it's not them causing this.

As for python, the sabnzbdplus package doesn't actively enforce any specific version of Python, but merely requires that it's any version of python2 >= 2.5. The actual dependency on python is automatically added by packaging helper programs, and therefore differs depending on the specific os release for which it gets build. For standard debian, that currently results in python (>= 2.6.6-7~) for new uploads; for ubuntu it's python (>= 2.7.1-0ubuntu2); both of which could be satisfied by python 2.7. Now what choices the developers of that debian port for the raspi or you yourself have made about the version of python to install of make the default I don't know, maybe the raspi thing has 2.6 as the default or something.
Post Reply