Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-05-2018, 02:43 PM   #1
baron164
Junior Member
baron164 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Nook Color
Question How do I update Calibre in Ubuntu?

I setup Calibre Server to run on an Ubuntu 16x server. I installed Calibre using this command:

sudo -v && wget -nv -O- https://raw.githubusercontent.com/ko...x-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

My question is, since I did not use the apt-get process of installing Calibre, how do I go about updating Calibre when new versions come out? I'm assuming I do not simply re-run the same command and I'm hoping someone can point me in the right direction.
baron164 is offline   Reply With Quote
Old 06-05-2018, 03:24 PM   #2
sealbeater
Banned
sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.sealbeater ought to be getting tired of karma fortunes by now.
 
Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
Quote:
Originally Posted by baron164 View Post
My question is, since I did not use the apt-get process of installing Calibre, how do I go about updating Calibre when new versions come out? I'm assuming I do not simply re-run the same command and I'm hoping someone can point me in the right direction.
I'm actually thinking that you do. The .py file would be updated from git, someone correct me if I'm wrong.
sealbeater is offline   Reply With Quote
Advert
Old 06-05-2018, 09:15 PM   #3
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You simply re-run the same command.
kovidgoyal is online now   Reply With Quote
Old 06-06-2018, 08:44 AM   #4
baron164
Junior Member
baron164 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Nook Color
Ok, thank you. I wasn't sure and didn't want to risk overwriting everything I had already done.
baron164 is offline   Reply With Quote
Old 06-06-2018, 09:52 AM   #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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Installation/un-installation touches only program files, never data files.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-11-2018, 01:59 PM   #6
baron164
Junior Member
baron164 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Nook Color
I ran the same wget command again and it appeared to update but I ran into a couple of issues.

The first issue was that it removed the calibre.log file from /opt/calibre so I had to recreate it and then assign it permissions.

The second issue and the one I haven't been able to fix is now when I try to access the site I get this message.

Failed to load books from calibre library, with error:
Failed to communicate with "/interface-data/books-init?library_id=calibre-library&sort=timestamp.desc&1528739880411", with status: [500] Internal Server Error

Not sure what went wrong.

*Update

I restored my backup and then check the /opt/calibre directory before the update and and after and saw that both the calibre.log and server-users.sqlite files were missing after the update. I ran the update again and this time after it finished I copied the log and sqlite files back over and this time the site appears to be working properly.

I moved the calibre.log and server-users.sqlite files out of the /opt/calibre directory so that next time I run the command I won't need to worry about these two files. Should also make automating the update much easier.

Last edited by baron164; 06-11-2018 at 04:03 PM.
baron164 is offline   Reply With Quote
Old 06-11-2018, 09:41 PM   #7
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Why are you creating calibre.log and the sqlite file in the installation directory? The only way that can happen is if you have set the CALIBRE_CONFIG_DIRECTORY environment variable to the installation directory. Dont do that.
kovidgoyal is online now   Reply With Quote
Old 06-12-2018, 09:00 AM   #8
baron164
Junior Member
baron164 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: Nook Color
The guide I was following for the install had me create them in the directory. As this is my first time with the Linux version of Calibre I just didn't know any better. But now I do and I certainly won't do that again :-)

Last edited by baron164; 06-12-2018 at 09:05 AM.
baron164 is offline   Reply With Quote
Old 06-12-2018, 09:01 AM   #9
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: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah, well in that case, welcome to Linux
kovidgoyal is online now   Reply With Quote
Reply

Tags
calibre-server, ubuntu 16.04, update


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre update problem under Ubuntu / "E-book converter and library management" pinosan Calibre 2 11-19-2017 06:38 AM
Calibre Won't Run [ubuntu 14.04 / calibre 3.0] ciscopixie Devices 2 06-19-2017 04:04 PM
Unable to update Calibre (Ubuntu) since 2.76 spliton210 Calibre 3 02-17-2017 08:01 AM
Update, Error message on Ubuntu 12.04 Lanson Devices 12 07-03-2016 06:04 PM
kobo-desktop update for ubuntu littlebear126 Kobo Reader 1 12-29-2011 09:11 AM


All times are GMT -4. The time now is 02:24 AM.


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