You are not logged in.

#1 2018-07-22 19:03:42

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

[SOLVED] issue with unrar

hello All,
I have installed unrar using pacman, but strange that now system tells me 'No such file or directory'.

Here hat I tried:

[rafal@archlinux bin]$ unrar
bash: /usr/local/bin/unrar: No such file or directory
[rafal@archlinux bin]$ find /usr -name 'unrar'
/usr/bin/unrar
find: '/usr/share/polkit-1/rules.d': Permission denied
/usr/share/licenses/unrar
/usr/local/bin/unrar
[rafal@archlinux bin]$ ls -la
total 784
drwxr-xr-x  2 root root   4096 Jun 16 20:29 .
drwxr-xr-x 11 root root   4096 Jun 14 19:08 ..
-rwxr-xr-x  1 root root 511796 Jun 16 20:29 rar
-rwxr-xr-x  1 root root 281648 Jun 16 20:29 unrar

what have I done wrongly ?
I can see the file in the directory. I also tried to execute it with root, but the same result

Last edited by rafdre (2018-07-31 18:44:48)

Offline

#2 2018-07-22 19:05:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] issue with unrar

Where are you setting your $PATH? Please paste it.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-07-22 19:12:58

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] issue with unrar

Also the output of the following please

pacman -Qi unrar
pacman -Qkk unrar

Offline

#4 2018-07-22 19:28:51

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

Re: [SOLVED] issue with unrar

here:

[rafal@archlinux ~]$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
[rafal@archlinux ~]$ pacman -Qi unrar
Name            : unrar
Version         : 1:5.6.4-1
Description     : The RAR uncompression program
Architecture    : x86_64
URL             : http://www.rarlab.com/rar_add.htm
Licenses        : custom
Groups          : None
Provides        : None
Depends On      : gcc-libs
Optional Deps   : None
Required By     : None
Optional For    : file-roller  mc
Conflicts With  : None
Replaces        : None
Installed Size  : 303.00 KiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Sun May 13 21:56:07 2018
Install Date    : Sun Jul 22 18:32:40 2018
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

[rafal@archlinux ~]$ pacman -Qkk unrar
unrar: 7 total files, 0 altered files
[rafal@archlinux ~]$

Offline

#5 2018-07-22 19:34:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] issue with unrar

Why do you have a version installed in /usr/local/bin? Did you make install one?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2018-07-22 19:46:00

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

Re: [SOLVED] issue with unrar

jasonwryan wrote:

Why do you have a version installed in /usr/local/bin? Did you make install one?

ok...now I recall I probably installed or tried to install few weeks before old trial of rar (probably rarlinux-x64-5.0.0.tar.gz).
that machine I do not use that often.

is it causing conflicts ?

now I removed unrar by running "pacman -R unrar', but even though unrar file sill exists I cannot use the command

what shall I do ?
how to fi it?

Offline

#7 2018-07-22 19:52:23

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [SOLVED] issue with unrar

rafdre wrote:

now I removed unrar by running "pacman -R unrar', but even though unrar file sill exists I cannot use the command

That removed the package unrar magnaged by pacman why do you think that would remove /usr/local/bin/unrar that you manually installed without the use of pacman?
Edit:
Tips_and_tricks#Identify_files_not_owned_by_any_package

Last edited by loqs (2018-07-22 20:01:41)

Offline

#8 2018-07-23 05:55:20

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

Re: [SOLVED] issue with unrar

loqs wrote:
rafdre wrote:

now I removed unrar by running "pacman -R unrar', but even though unrar file sill exists I cannot use the command

That removed the package unrar magnaged by pacman why do you think that would remove /usr/local/bin/unrar that you manually installed without the use of pacman?
Edit:
Tips_and_tricks#Identify_files_not_owned_by_any_package

I do not think so and thats not the issue I reported.
Whether I use the package from pacman or not - the fact is that system cannot see the files ('No such file or directory'). So the question is : how do I solve it?

Offline

#9 2018-07-23 06:23:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: [SOLVED] issue with unrar

stat /usr/local/bin/unrar
file /usr/local/bin/unrar

Offline

#10 2018-07-23 12:12:40

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [SOLVED] issue with unrar

/usr/local/bin overrides /usr/bin
So when you type unrar, system will choose one from /usr/local/bin, which being improperly installed doesn't run. ( probably permission issue)
So first remove unrar from /usr/local/bin or specify full path to use the one installed by pacman.

Offline

#11 2018-07-23 18:46:53

rafdre
Member
From: Gdansk
Registered: 2013-09-21
Posts: 79

Re: [SOLVED] issue with unrar

what I did is:
I removed 'rar' and 'unrar' from /usr/local/bin/ (only those 2 files were there).
After this I installed 'unrar' using pacman.

After doing this when I type 'unrar' all works fine.

Offline

#12 2018-07-23 18:54:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: [SOLVED] issue with unrar

Yes, that was pretty expectable.
Unfortunately you now lost the chance to figure why the other unrar could not be executed.

Edit:
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Last edited by seth (2018-07-23 18:54:59)

Offline

Board footer

Powered by FluxBB