calibre cannot convert RAR Archives

Bug #915662 reported by Nate Muench (Mink)
This bug report is a duplicate of:  Bug #390263: Calibre can not unrar files. Edit Remove
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
calibre (Debian)
New
Undecided
Unassigned
calibre (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Version: 0.8.34+dfsg-1

I package (or backport (from Debian/Precise) to be more accurate) calibre for use on Oneiric. Someone uses my package, tipped me off on this.

I know your preparing to click on the Invalid status, don't. All I do is just package what Debian/Ubuntu has in their repos.

Anyways, If you attempt to convert a .rar file containing a .pdf file into EPUB, you will get a Python backtrace, ending with:
"OSError: libunrar.so: cannot open shared object file: No such file or directory"

I looked into this, there is a part here (http://calibre-ebook.com/download_linux) I want to highlight, in the source install section:
"Note that if your distribution does not have a correctly compiled libunrar.so, calibre will not support rar files."

I looked inside the 2 unrar packages within the Ubuntu Repos (unrar & unrar-free), neither package has this "libunrar.so" file.

In conclusion, Ubuntu (or Debian) doesn't have a proper RAR library. I was directed here: http://www.freshports.org/archivers/libunrar/

I suggest this package be put together and uploaded. So people who download calibre from Ubuntu/Debian repos (not from the site) have the proper RAR support.

Think I'm still full of BS, try it yourself, If I'm wrong then mark this bug as invalid.

Revision history for this message
Aurélien Dominguez (tenkaistar) wrote :

Hello,

I can confirm this bug as I tried to convert some comic scan from rar to epub this morning.
Here is how I fixed it: I downloaded tar.bz package from http://sourceforge.net/projects/calibre/files/ (Of course you need to choose i686 or x86_64 depending on your OS) then extract the file libunrar.so located in the archive lib folder and copy it to your /usr/lib/ folder.
It is now working fine, but I ran into another error message because Calibre doesn't seem to recognize comic archive unless your rename your .rar archive to .cbr (I assume that the same is needed for .zip to .cbz).
Once done, convert to epub worked flawlessly, and my Sony eReader could open it fine.

I hope it will helpfull :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in calibre (Ubuntu):
status: New → Confirmed
Revision history for this message
mikbini (mikbini) wrote :

I can confirm it, too. I fixed in a slightly different way by manually installing a .deb for libunrar from the bodiltv ppa

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.