Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2014, 07:44 AM   #1
hoodakaushal
Junior Member
hoodakaushal began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2012
Device: none
Calibre installation on Ubuntu behind proxy

I'm in a college, and we have to use proxy for internet access.
I was trying to install Calibre using the wget command (as given at http://calibre-ebook.com/download_linux), but I get an error
socket.error: [Erno 111] Connection Refused.

I'm able to use apt-get however, so it is not a network issue.

Suggestions?
hoodakaushal is offline   Reply With Quote
Old 08-26-2014, 07:46 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Setup the proper proxy for wget using the http_proxy and https_proxy environment variables. Or download the tarball manually as is described in the download linux page for installing previous releases.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-26-2014, 08:02 AM   #3
hoodakaushal
Junior Member
hoodakaushal began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2012
Device: none
Worked like a charm!

Thanks.
hoodakaushal is offline   Reply With Quote
Old 08-27-2014, 01:18 PM   #4
kindle2owner
Junior Member
kindle2owner began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2010
Device: Kindle 2
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?
kindle2owner is offline   Reply With Quote
Old 08-27-2014, 01:25 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Uninstall the repository calibre.

Download the tarball

Then run

Code:
sudo mkdir -p /opt/calibre
sudo rm -rf /opt/calibre/* && sudo tar xvf /path/to/downloaded/calibre-tarball.txz -C /opt/calibre
sudo /opt/calibre/calibre_postinstall
That's it, calibre is installed.
kovidgoyal is offline   Reply With Quote
Advert
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
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre installation on Ubuntu 10.0.4.1 LTS zopyx Devices 21 04-14-2011 04:34 PM
Calibre installation on Ubuntu 8.0.4 yet Devices 11 04-02-2011 12:37 AM
Calibre 0.6.48 on Ubuntu 9.10 -- installation failed lenik Calibre 8 04-28-2010 09:26 PM
Calibre on Ubuntu 8.04 - installation failed kostap Calibre 25 03-26-2009 11:45 PM


All times are GMT -4. The time now is 08:35 PM.


MobileRead.com is a privately owned, operated and funded community.