View Single Post
Old 08-28-2014, 03:02 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kindle2owner View Post
Like the OP, I am unable use the generic method (wget) to install Calibre on my Ubuntu 14.04 system due to being behind a proxy server. I've also tried the no-check-certificate method with wget without success.

What I ended up doing was installing Calibre via the repository ("sudo apt-get install calibre") but this version is kind of old. So I figured I'd download the tarball of 2.0 and overwrite the 1.25 version I currently have using the method called out on the download page:
Code:
sudo rm -rf /opt/calibre/* && sudo tar xvf /path/to/downloaded/calibre-tarball.txz -C /opt/calibre
Doesn't work though. Firstly, the repository doesn't install to /opt/calibre. So I did a whereis to find it and found two possible directories:
Code:
$ whereis calibre
calibre: /usr/bin/calibre /usr/lib/calibre /usr/bin/X11/calibre /usr/share/calibre /usr/share/man/man1/calibre.1.gz
I tried:
Code:
sudo rm -rf /usr/share/calibre/* && sudo tar xvf /home/tiffty/calibre-2.0.0-i686.txz -C /usr/share/calibre
and later after reinstalling calibre using apt-get
Code:
sudo rm -rf /usr/lib/calibre/* && sudo tar xvf /home/tiffty/calibre-2.0.0-i686.txz -C /usr/lib/calibre
but in both instances Calibre doesn't start up anymore.

Does the "copy over" technique not work when going from 1.x to 2.0?
You had two copies of calibre installed, one the repo version and one the self-contained binary. The binary version uses a binary wrapper to launch, the repo uses a python script which imports calibre from /usr/lib/calibre/ (containing the source code) via site-packages, and runs main()

In other words, the two are mutually exclusive in every respect and deleting stuff from the distro calibre will break the distro calibre, even if you replace it with binaries. And /usr/bin/calibre can only launch one of them, but you never set it to launch the binary calibre. That is what running /opt/calibre/calibre_postinstall does (usually as part of the generic installer).
eschwartz is offline   Reply With Quote