How to update unrar on ubuntu 18.04

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
tr0ner1
Newbie
Newbie
Posts: 7
Joined: February 27th, 2021, 4:17 am

How to update unrar on ubuntu 18.04

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: How to update unrar on ubuntu 18.04

Post 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
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: How to update unrar on ubuntu 18.04

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: How to update unrar on ubuntu 18.04

Post 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!
tr0ner1
Newbie
Newbie
Posts: 7
Joined: February 27th, 2021, 4:17 am

Re: How to update unrar on ubuntu 18.04

Post 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?
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: How to update unrar on ubuntu 18.04

Post 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
tr0ner1
Newbie
Newbie
Posts: 7
Joined: February 27th, 2021, 4:17 am

Re: How to update unrar on ubuntu 18.04

Post 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
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: How to update unrar on ubuntu 18.04

Post 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.
tr0ner1
Newbie
Newbie
Posts: 7
Joined: February 27th, 2021, 4:17 am

Re: How to update unrar on ubuntu 18.04

Post by tr0ner1 »

This seems to have fixed it - thank you very much!
Post Reply