cannot run unrar non-free

If none of the more specific forums is the right place to ask

cannot run unrar non-free

Postby windrunner » 2008-03-01 16:37

For some reason I cannot use unrar (non-free) which I installed. Whenever I type unrar my system uses the free version. I know this because when I type:

Code: Select all
unrar -V


it displays:

unrar 0.0.1


which is the version of the free unrar that I had installed previously.

Just to give a little background on this situation... I first installed unrar free but could not uncompress any rar files. Then I learned of the non-free unrar. So I installed it through synaptic package manager. But when the unrar command still did not work for me and I learned through the above version checking that I was still running the free version I uninstalled it (also through Synaptic). After that I again checked the version I was running and still it displayed the free version. I then even uninstalled and reinstalled unrar non-free but still whenever I checked the version it was unrar 0.0.1.

Synaptic tells me the version of unrar non-free that I have installed is:

1:3.5.4-1.1 (which is also the "latest version")


So how do I get the unrar non-free to run?
windrunner
 
Posts: 12
Joined: 2008-03-01 16:12

Postby izar » 2008-03-01 16:58

Try purging both packages and then install the one that works for you.
You can also use apt-get:
Code: Select all
apt-get remove --purge package-name
User avatar
izar
 
Posts: 1711
Joined: 2007-01-01 18:34
Location: Euskal Herria

Postby rickh » 2008-03-01 17:04

On my system, unrar is handled by "alternatives"

Alternatives is well worth learning how to use.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3475
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby windrunner » 2008-03-01 19:12

izar, I purged both unrar packages and installed the unrar (non-free) to no avail. When I run unrar it still somehow uses the free version! :?

Also, when I purged both unrar packages and then typed unrar in the terminal it ran the unrar free version. I have no idea why unrar-free is still on my system.

rickh, thanks for the tip. I read up on the "Debian alternatives system" - sounds interesting, but right now I just want to uncompress my files.
windrunner
 
Posts: 12
Joined: 2008-03-01 16:12

Postby Issyer » 2008-03-01 20:22

windrunner wrote:izar, I purged both unrar packages and installed the unrar (non-free) to no avail. When I run unrar it still somehow uses the free version! :?

How can it use anything, when unrar-free's executable is /usr/bin/unrar-free according to this:
http://packages.debian.org/etch/i386/un ... e/filelist

and unrar non-free's one is /usr/bin/unrar according to tho this:
http://packages.debian.org/etch/ia64/unrar/filelist
?
Also, when I purged both unrar packages and then typed unrar in the terminal it ran the unrar free version. I have no idea why unrar-free is still on my system.

Sure unrar is free even if it is non-free.
User avatar
Issyer
 
Posts: 2975
Joined: 2007-05-23 02:59
Location: Khakassia

Postby izar » 2008-03-01 20:43

windrunner wrote:izar, I purged both unrar packages and installed the unrar (non-free) to no avail. When I run unrar it still somehow uses the free version! :?

Also, when I purged both unrar packages and then typed unrar in the terminal it ran the unrar free version. I have no idea why unrar-free is still on my system.

Check /usr/bin to see if either or both of the files "unrar" and "unrar-free" exist. That should tell you if the purging process did its job.
User avatar
izar
 
Posts: 1711
Joined: 2007-01-01 18:34
Location: Euskal Herria

Postby windrunner » 2008-03-01 22:32

I have unrar in /usr/bin. So then this is the non-free one? Then how come when I do unrar -V to get its version it says:

unrar 0.0.1


And in synpatic for unrar under installed and latest version it says:

1:3.5.4-1.1


And for unrar-free under latest version it says:

1:0.0.1+cvs20060609-1


:?:

Anyways, if this unrar is the non-free one then it does not work for me either - it fails when trying to uncompress the file. I dunno, maybe the file I'm trying to uncompress is corrupted or somethin :( In any case thanks for your help.
windrunner
 
Posts: 12
Joined: 2008-03-01 16:12

Postby Issyer » 2008-03-01 22:43

windrunner wrote:Then how come when I do unrar -V to get its version it says:

unrar 0.0.1

Tell us what debian you are running and how you installed unrar. And show your /etc/apt/sources.list.

Mine is OK on Etch:
Code: Select all
unrar -V

UNRAR 3.51 freeware
User avatar
Issyer
 
Posts: 2975
Joined: 2007-05-23 02:59
Location: Khakassia

Postby izar » 2008-03-01 23:21

This is what I get for unrar-free
apt-cache policy unrar-free
unrar-free:
Installed: 1:0.0.1+cvs20060609-1
Candidate: 1:0.0.1+cvs20060609-1
Version table:
*** 1:0.0.1+cvs20060609-1 0
500 http://ftp.de.debian.org etch/main Packages
100 /var/lib/dpkg/status

but then when I do: unrar-free -V I get:
unrar 0.0.1

It looks weird, but at least in my case it works.
You should beware of the unrar package you use as unrar-free
can't handle archives in the RAR 3.0 format, only the non-free "unrar" package can do that.
User avatar
izar
 
Posts: 1711
Joined: 2007-01-01 18:34
Location: Euskal Herria

Postby rickh » 2008-03-01 23:33

What's the output of
# update-alternatives --config unrar
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3475
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby windrunner » 2008-03-02 05:12

Issyer, I am using Debian Release: 2.6.18-4-686. I installed unrar as per the instructions on this page:

http://mrtextminer.wordpress.com/2007/10/27/unrar-utilities-in-debian-etch/

I installed unrar and unrar-free as Etch. Here are the contents of my /etc/apt/sources.list:

#
# deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official i386 NETINST Binary-1 20070407-11:29]/ etch contrib main

deb http://debian.yorku.ca/debian/ etch main
deb-src http://debian.yorku.ca/debian/ etch main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

deb http://mirrors.kernel.org/debian etch main non-free


izar, yes I am aware that unrar-free does not handle archives in the RAR 3.0 format.

rickh, the output of:
Code: Select all
update-alternatives --config unrar

is:
No alternatives for unrar.
windrunner
 
Posts: 12
Joined: 2008-03-01 16:12

Postby Issyer » 2008-03-02 05:22

windrunner wrote:Issyer, I am using Debian Release: 2.6.18-4-686. I installed unrar as per the instructions on this page

I guess this tutorial is wrong. You can try to put into your sources list
Code: Select all
deb http://ftp.us.debian.org/debian/ etch main contrib non-free

Then run:
Code: Select all
apt-get update
upt-get install unrar
User avatar
Issyer
 
Posts: 2975
Joined: 2007-05-23 02:59
Location: Khakassia

Postby rickh » 2008-03-02 05:26

No alternatives for unrar

Simple enough ... You don't have it installed ... Add non-free to your sources list.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3475
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Postby izar » 2008-03-02 11:38

rickh wrote:
No alternatives for unrar

Simple enough ... You don't have it installed ... Add non-free to your sources list.

I get exactly the same message "No alternatives for unrar" and I can assure you that unrar is installed:
apt-cache policy unrar
unrar:
Installed: 1:3.5.4-1.1
Candidate: 1:3.5.4-1.1
Version table:
*** 1:3.5.4-1.1 0
500 http://ftp.de.debian.org etch/non-free Packages
100 /var/lib/dpkg/status

A simpler explanation for the message might just be that there are no two packages that deal with the unrar command, so there are no alternatives to choose from. But I might be wrong there.
User avatar
izar
 
Posts: 1711
Joined: 2007-01-01 18:34
Location: Euskal Herria

Postby rickh » 2008-03-02 13:51

I get exactly the same message "No alternatives for unrar" and I can assure you that unrar is installed ... A simpler explanation for the message might just be that there are no two packages that deal with the unrar command, so there are no alternatives to choose from.

Code: Select all
debian64:~# update-alternatives --config unrar

There is only 1 program which provides unrar
(/usr/bin/unrar-nonfree). Nothing to configure.
debian64:~#
I only have one package installed. Maybe the Etch version of Alternatives just doesn't give as good a message. Etch is pretty obsolete for home desktops, IMO.

I still don't think the OP has "non-free" installed because his sources list doesn't include the non-free repos.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97
User avatar
rickh
 
Posts: 3475
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable