LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2017, 12:49 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Xarchiver won't open rar files in Debian 9


Title sums it up.

I upgraded from Jessie to Stretch recently and I have this problem now.

I have two file managers, PCManFM (default) and SpaceFM.

SpaceFM doesn't show rar files with the proper icon. PCManFM does. Double-clicking a rar archiver in either launches Xarchiver, but it shows an empty archive.

I can also try the Archive > Open option in the top bar menu, and that will fail, too.

There is also another menu entry, Action > Cmd-line output. That one shows the content of the archive, but that doesn't solve my problem.

The fact that SpaceFM doesn't show rar files with the proper icon tells me that some part of the system knows that there is something wrong with rar files, but what is it?

Any ideas?
 
Old 10-18-2017, 01:58 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
let's concentrate on xarchiver.
no error messages?
try starting from commandline and repeat.
rar installed?
 
Old 10-18-2017, 10:37 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,138

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I can't speak for Debian and Xarchiver, but with CentOS and File Roller, rar files need to be handled from the command line with unrar. You probably haven't got that installed and it's probably in the non-free repository.
 
Old 10-18-2017, 11:41 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
sorry, unrar.

it works for me on archlinux:
Code:
Name            : xarchiver-gtk2
Version         : 0.5.4.12-1
Description     : GTK+ frontend to various command line archivers (GTK+ 2 version)
Architecture    : x86_64
URL             : https://github.com/ib/xarchiver
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : gtk2
Optional Deps   : arj: ARJ support [installed]
                  binutils: deb support [installed]
                  bzip2: bzip2 support [installed]
                  cpio: RPM support [installed]
                  gzip: gzip support [installed]
                  lha: LHA support [installed]
                  lrzip: lrzip support
                  lz4: LZ4 support [installed]
                  lzip: lzip support
                  lzop: LZOP support [installed]
                  p7zip: 7z support [installed]
                  tar: tar support [installed]
                  unarj: ARJ support
                  unrar: RAR support [installed]
                  unzip: ZIP support [installed]
                  xz: xz support [installed]
                  zip: ZIP support [installed]
 
Old 10-18-2017, 11:43 PM   #5
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
I have unrar installed, it works as expected on command line, and it used to work very well when invoked from either file manager in Debian Jessie. The problem began when I moved to Debian Stretch.

I tried launching Xarchiver from the command line and opening a rar archive, and it fails and produces no output. Mystery.
 
Old 10-19-2017, 01:15 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
under preferences, please check "store archiver output" and try again, you should be able to see the output with some other menu entry.
 
Old 10-19-2017, 07:40 AM   #7
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
That option is/was checked already.
 
Old 10-20-2017, 03:31 AM   #8
HannemanThrashKing
Member
 
Registered: Oct 2017
Location: Canada
Distribution: Ubuntu MATE
Posts: 35

Rep: Reputation: Disabled
I'm getting something similar in Mint 17,3, all of a sudden about 6 (correction)*months* ago, I was raring usenet packs in caja, with a right click -> Compress, i'd select 15mb parts like I should press Ok, a randomly named folder would appear, if I looked in it, the file.rar file.r01, file.r02, file.r03" and then the folder deletes itself and there's no archiver. I can open them in Archive Manager and the similar File-Roller and extract them from there, it took me along time because I never imagined using a compression program's gui so much like that.

Nobody on the mint forums helped me since 2 years, I made one thread a year about this issue, silence, so I thought I would try a non web 2.0 friendly site

Thanks for your time if you read this and have a solution.

I have used unrar in terminal and the result is the same, I can only get it done in one of the programs calling themselves Archive Managers, that took me a long time to figure out as nobody on Mint's forum would help and I asked elsewhere, tried many things myself, have been told to install peazip, that it would let me do it, well for some reason peazip makes my AMDFX-8350 that is well cooled, only 1 fan out of 6 needs replacement, although it's the stock fan that came with it, the 8 cores in it get so hot, the temperature panel gets into the red and my computer shuts down (BIOS safety measure that shuts it down past 85c or is it 90c...I don't know, I never get the time to see, and when this happen, I need to turn off the power supply, wait 10 minutes and start it over because the power supply will be burning hot.

Last edited by HannemanThrashKing; 10-22-2017 at 04:33 AM.
 
Old 10-20-2017, 02:04 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
does it work from command line?
with unrar?
is there a password or anything else non-standard?
maybe just show us the output, use a --verbose switch if possible.
 
Old 10-20-2017, 02:16 PM   #10
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by ondoho View Post
does it work from command line?
with unrar?
is there a password or anything else non-standard?
maybe just show us the output, use a --verbose switch if possible.
Yes, unrar works on command line.
None of these archives is password protected.
There is no output, as described previously in this thread. Xarchiver has no --verbose option. I believe unrar does, but there is nothing wrong with unrar. The problem is in Xarchiver. Xarchiver displays empty rar archives:

Code:
$ xarchiver some_archive.rar
(Xarchiver window pops up and the archive looks empty)
 
Old 10-21-2017, 02:56 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ sudo apt-get install p7zip-rar

According to apt-file the only file of consequence is /usr/lib/p7zip/Codecs/Rar.so

Using strace on the thing that's failing can help ID what it's looking for and missing. Probably that thing IMO. I haven't dealt in rar for a while but probably something like:

$ 7z x file.rar

to extract the contents. The unrar thing is a different package and not the default assumption by many things these days. Just an assumption as I haven't really dealt in that file type for a good long while.
 
Old 10-22-2017, 04:51 AM   #12
HannemanThrashKing
Member
 
Registered: Oct 2017
Location: Canada
Distribution: Ubuntu MATE
Posts: 35

Rep: Reputation: Disabled
I can do with a small folder and give you the verbose, but I gave you the information you asked of me in further posts by editing the post, let's see :

hmm, i tried first without verbose, and hmm all of a sudden it worked, I guess removing all compression and uncompression programs worked. I got a much larger issue on my hands right now, I buy a 2tb external drive that would help me empty a few partitions on a better drive than my current linux partition is on (it's on one of the first ever sata drives, a WD 200gb sata 1.5gb/s and it's doing strange things I can only see as the partition on that old drive, there's 2, and it's on sda2 because at the, I'm running Linux Mint 17 since it came out as it is LTS, updates until beginning of summer 2019, so I've had to install 17.1, 17.2, 17.3 with time, I don't know how long but that's where grub is also..., I didn't have the space on any of my 2 1tb other internal drives and back then sole 500gb external which was usb 2.0 .At first I did what I was always do, use Disks and create an .img of a partition on a much larger drive, which was there, with a lot of data i had moved there, but again, my desktop got too hot and shutdown after 5 minutes of that, so I look for doing it through dd, but I must have used the wrong program because dd removed was used to be there entirely, stuff that was on an old 750 external that took pretty long to move despite the usb 3.0
Anyway, i'm doing testdisk, since I haven't one anything else since that dd command that looked like it made sense, but I should have listened to my own sense, the command not having a file.img somewhere in it...but that's for another thread...i tried gparted data rescue, but not from a live session, so it was going to be very slow, so now it,s testdisk, it's very slow but at least I can know where it is in the process. Sorry, that's for another thread in case I have problems. I'm starting to think my power supply is slowly dying, but geez, it should be still on warranty, I bought this mobo, cpu and power supply at the same time 2 years 1/2 ago. And I went with the highest quality 540w power supply they had, could have ordered a 600w or even more but I didn't feel like waiting. Anyway, like I said, if testdisk doesn't find the previous partition, i'm not so much in trouble, it didn't delete anything that is not on my VPS, thankfully, but had I chosen my other external 3.0 drive, it's "only 1tb" but it has half of my music collection, plus a backup of what music is on an internal drive...would've been panic land and I am prescribed something close to valium to take as needed, I think many of us even years of exp with linux we can relate to that feeling of anger/frustration.

Have a good day,as for now it seems rar works just fine in the command line since I did what I did.

Last edited by HannemanThrashKing; 10-22-2017 at 05:07 AM.
 
Old 10-22-2017, 05:08 AM   #13
HannemanThrashKing
Member
 
Registered: Oct 2017
Location: Canada
Distribution: Ubuntu MATE
Posts: 35

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
$ sudo apt-get install p7zip-rar

According to apt-file the only file of consequence is /usr/lib/p7zip/Codecs/Rar.so

Using strace on the thing that's failing can help ID what it's looking for and missing. Probably that thing IMO. I haven't dealt in rar for a while but probably something like:

$ 7z x file.rar

to extract the contents. The unrar thing is a different package and not the default assumption by many things these days. Just an assumption as I haven't really dealt in that file type for a good long while.
To us who still use Usenet binaries, it still matters a lot, rar and par files are our bread and water I have entire backups of hard drives uploaded to usenet, of course the very large rar collection is password protected, but that's a cheap 5.99 a month for unlimited storage plus, all the neat things one can find there without alerting the torrent bots.

Last edited by HannemanThrashKing; 10-22-2017 at 05:10 AM.
 
Old 02-25-2018, 04:35 AM   #14
MarkPx
LQ Newbie
 
Registered: Feb 2018
Posts: 1

Rep: Reputation: Disabled
Hello there,
I had the same problem lucmove described.
I've solved installing the package unrar-free, not "unrar".
Now XArchiever works just fine with rar files.
Hope it helps!
Mark
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Archive manager won't open rar files p3aul Ubuntu 14 04-27-2022 09:58 PM
[SOLVED] Firefox won't open some .pdf files after I download them on Debian 8.7 rdgreenlaw Linux - Desktop 7 06-06-2017 08:39 PM
Help me get Xarchiver 4.9 on linpus lite to unrar rar files wheatontrue Linux - Newbie 1 11-04-2010 06:01 PM
How to open .rar files? JCole123 Ubuntu 5 05-12-2010 06:58 AM
Open Rar Files? wasabi Fedora 2 06-11-2004 07:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration