You are not logged in.
Pages: 1
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 unrarwhat 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
Where are you setting your $PATH? Please paste it.
Offline
Also the output of the following please
pacman -Qi unrar
pacman -Qkk unrarOffline
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
Why do you have a version installed in /usr/local/bin? Did you make install one?
Offline
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
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
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
stat /usr/local/bin/unrar
file /usr/local/bin/unrarOffline
/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.
Arch is home!
https://github.com/Docbroke
Offline
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
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
Pages: 1