Page 1 of 1

How to update unrar on ubuntu 18.04

Posted: February 27th, 2021, 4:23 am
by tr0ner1
Hello,

I updated sabnzbd to version 3.2.0 yesterday using the apt-get upgrade command and I now get this message: Your UNRAR version is 5.21, we recommend version 5.50 or higher.<br />
When I run unrar from terminal it gives: UNRAR 5.21 freeware Copyright (c) 1993-2015 Alexander Roshal
sudo apt-get update / sudo apt-get upgrade does not show any updates for unrar.

Can anyone tell me how I can get a newer unrar version? Is there another repo I have to add or maybe another package?

Re: How to update unrar on ubuntu 18.04

Posted: February 27th, 2021, 5:26 am
by sander
I don't know if there is a repo / PPA for 18.04 with a newer unrar. Did you google it?
FWIW: 20.04 has unrar 5.6.6 ... see https://packages.ubuntu.com/focal/unrar


So ... what you can do: a manual download from https://www.rarlab.com/download.htm ... "RAR 6.00 for Linux x64" ...
But ... only do that if you now what "x64" and sudo means

Re: How to update unrar on ubuntu 18.04

Posted: March 5th, 2021, 1:37 pm
by jcfp
sander wrote: February 27th, 2021, 5:26 amI don't know if there is a repo / PPA for 18.04 with a newer unrar.
Added to the sab-addons ppa for bionic, focal and groovy.

Re: How to update unrar on ubuntu 18.04

Posted: March 5th, 2021, 1:58 pm
by sander
jcfp wrote: March 5th, 2021, 1:37 pm
sander wrote: February 27th, 2021, 5:26 amI don't know if there is a repo / PPA for 18.04 with a newer unrar.
Added to the sab-addons ppa for bionic, focal and groovy.
Cool!

Re: How to update unrar on ubuntu 18.04

Posted: March 9th, 2021, 12:22 pm
by tr0ner1
Thanks jcfp!
It now found an update and installed - but it did not replace the already installed version. And sabnzbd still complains about the old version.
What can I do?

Re: How to update unrar on ubuntu 18.04

Posted: March 10th, 2021, 3:00 am
by jcfp
Hard to tell from here, could be changes you made earlier that get in the way, or another unrar somewhere on the path. Post the output of the following three commands:

Code: Select all

apt policy unrar
namei -l /usr/bin/unrar
unrar | head -n2

Re: How to update unrar on ubuntu 18.04

Posted: March 10th, 2021, 3:24 am
by tr0ner1
Thank you for your reply - here you go:

kodi@nas:~$ apt policy unrar
unrar:
Installiert: 1:6.0.3-0ubuntu1~jcfp1~18.04
Installationskandidat: 1:6.0.3-0ubuntu1~jcfp1~18.04
Versionstabelle:
*** 1:6.0.3-0ubuntu1~jcfp1~18.04 500
500 ppa launchpad net/jcfp/sab-addons/ubuntu bionic/main amd64 Pa ckages
100 /var/lib/dpkg/status
1:5.5.8-1 500
500 de archive ubuntu com/ubuntu bionic/multiverse amd64 Packages

kodi@nas:~$ namei -l /usr/bin/unrar
f: /usr/bin/unrar
drwxr-xr-x root root /
drwxr-xr-x root root usr
drwxr-xr-x root root bin
-rwxr-xr-x root root unrar

kodi@nas:~$ unrar | head -n2
UNRAR 5.21 freeware Copyright (c) 1993-2015 Alexander Roshal

Re: How to update unrar on ubuntu 18.04

Posted: March 10th, 2021, 3:45 am
by jcfp
The symlink that should be at /usr/bin/unrar has been replaced with an (outdated) copy of the actual unrar executable. Normally, /usr/bin/unrar is a symlink to /etc/alternatives/unrar which in turn is a symlink to /usr/bin/unrar-nonfree.

Assuming the symlink from /etc/alternatives to unrar-nonfree still exists, you could try to restore things like this:

Code: Select all

sudo rm /usr/bin/unrar && sudo ln -s /etc/alternatives/unrar /usr/bin/unrar
Then rerun the three commands above.

Re: How to update unrar on ubuntu 18.04

Posted: March 10th, 2021, 4:32 am
by tr0ner1
This seems to have fixed it - thank you very much!