SABnzb+ - "No UNRAR program found, unpacking RAR files is not possible" (Solved)

/**************************************************

 *    ORIGINAL QUESTION                                   *

 **************************************************/

Hi,

As the title states my sabnzb gives the error: “No UNRAR program found, unpacking RAR files is not possible”. I don’t know how to fix this. (sabnzb works fine except for this).

I hope these will help solving the problem.


WDMyCloud:~# 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


WDMyCloud:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin


WDMyCloud:~# aptitude install unrar
No candidate version found for unrar
No candidate version found for unrar
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 78 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.


WDMyCloud:/usr/bin# apt-cache policy unrar
unrar:
Installed: (none)
Candidate: (none)
Version table:


In /usr/bin is an “unzip” folder, but no “unrar”.

Does someone know how I can provide a unrar application for sabnzb?

Thanks

/**************************************************

 *    SOLUTION                                                        *

 **************************************************/

Backup your sources.list file

cp /etc/apt/sources.list /etc/apt/sources.list.bak

 Add a source to the sources.list

echo deb http://ftp.us.debian.org/debian/ jessie main >> /etc/apt/sources.list

 Add another source

echo deb http://ftp.us.debian.org/debian/ wheezy non-free >> /etc/apt/sources.list

 Update your package lists

apt-get update

 Install the required programs…Type  y  when asked if you would like to proceed with the installation and hit enter

apt-get install par2 unrar

And finally let’s revert the changes made to sources list

mv -f /etc/apt/sources.list.bak /etc/apt/sources.list

 Credits:  http://community.wd.com/t5/WD-My-Cloud/GUIDE-NZBGet-11-0/td-p/619113

Okay, I guess I should be happy.

But it it possible trough other ways to make sure sabnzb is able to unrar?

I did, and I succeeded :smiley:

Thanks for trying to make sure I didn’t brick my cloud. 

Post a quick Guide please, i’m in the same shoe :slight_smile:

I edited the OP. Will do it again here for clearity.

Backup your sources.list file

cp /etc/apt/sources.list /etc/apt/sources.list.bak

 Add a source to the sources.list

echo deb http://ftp.us.debian.org/debian/ jessie main >> /etc/apt/sources.list

 Add another source

echo deb http://ftp.us.debian.org/debian/ wheezy non-free >> /etc/apt/sources.list

 Update your package lists

apt-get update

 Install the required programs…Type  y  when asked if you would like to proceed with the installation and hit enter

apt-get install par2 unrar

And finally let’s revert the changes made to sources list

mv -f /etc/apt/sources.list.bak /etc/apt/sources.list

 Credits:  http://community.wd.com/t5/WD-My-Cloud/GUIDE-NZBGet-11-0/td-p/619113

2 Likes

Just registered to say thanks for this. This works perfectly.

At first I was puzzled as to why unrar-nonfree needed to come from wheezy (this is unrar version 4), so I tried installing unrar from jessie (version 5) and although that works fine for non passworded archives and works well via a shell, it causes the sabnzbd bug “Skipping unrar file check due to unreliable file names or old unrar” on some password protected archives. So, it’s indeed the Wheezy version you want.

WD-Fan wrote:

The default repository of this Debian distribution seems not to contain that package.

 

Therefore, if you insist on having unrar on this machine you must cross compile on your PC for this architecture and then install that build on your MyCloud.

 

My educated guess would let me bet a big bear that once you have installed it, this will not work because the MyCloud has only 256M of RAM and a very special configuration that is not at all compatible with your plans.

 

I know that good advice is never paid and you most probably will try to go with your head across the walls :wink:

Actually, it works very well on the media files that sabnzbd needs unrar for (partxx.rar files that are not compressed). It’s quite quick actually. (Obviously due to the fact that they are not compressed) Where things get slow is when trying to unpack a password protected archive. It still works though. To give you an idea: unpacking a 30 part 2.5 Gig encrypted rar archive via ssh took around 20 minutes.