|
|
#31 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
It seems, reading the traceback, that there's something wrong in the way the linux_installer script tries to read your destination directory (/opt). Can you check its presence? I think it should be auto-created anyways, and the installer is sudoed, but well.
Also, can you check the /opt/calibre permissions and ownership? N. |
|
|
|
|
|
#32 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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)
|
In case anyone is interested -- edge case
As there have been a couple times now that Kovid pushed an updated binary due to critical errors, I upgraded my update script to allow a "force" option, this keeps everything in one script.
It looks like this now: Code:
#!/bin/bash
# Unset git development source
export CALIBRE_DEVELOP_FROM=
# by default, switch is off
force_upgrade=0
# Functions
usage()
{
cat <<- _EOF_
Usage: calibre-upgrade [OPTIONS]
Upgrades calibre installation. Automaticaly checks if the current version is up to date.
OPTIONS
-f, --force Force an update. This is only useful if binaries
were updated for a critical error :shrug:
_EOF_
}
do_upgrade()
{
cd ~/bin/calibre-portable
rm -rf ../calibre-portable/*
wget -O - "http://status.calibre-ebook.com/dist/linux32" | tar xjf -
}
# Options
while [ "$1" != "" ]; do
case $1 in
-h|--help) usage
exit
;;
-f|--force) shift
force_upgrade=1
;;
*) echo "calibre-upgrade: unrecognized option '$1'"
echo "Try 'calibre-upgrade --help' for more information."
exit 1
esac
shift
done
# Main
calibre-debug -c "import urllib as u; from calibre.constants import numeric_version; raise SystemExit(int(numeric_version < (tuple(map(int, u.urlopen('http://calibre-ebook.com/downloads/latest_version').read().split('.'))))))"
UP_TO_DATE=$?
if [ "$UP_TO_DATE" = 0 ]; then
echo "Calibre is up-to-date"
if [ "$force_upgrade" = 1 ]; then
echo ""
echo "Forcing upgrade anyway -- are you sure you want to continue? [y/n]"
read answer
if [[ "$answer" = "y" || "$answer" = "yes" ]]; then
do_upgrade
else
echo "Exiting..."
exit 1
fi
fi
else
do_upgrade
fi
Code:
cd ~/bin/calibre-portable rm -rf ../calibre-portable/* wget -O - "http://status.calibre-ebook.com/dist/linux32" | tar xjf - Last edited by eschwartz; 02-28-2014 at 02:24 AM. |
|
|
|
| Advert | |
|
|
|
|
#33 |
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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)
|
There is a new install command, so make sure to update calibre-upgrade.sh everyone!
(the old version has been kept up for backwards compatibility, but we wouldn't be in this thread if we were content with plebeian methodologies. )Code:
#!/bin/bash
calibre-debug -c "import urllib as u; from calibre.constants import numeric_version; raise SystemExit(int(numeric_version < (tuple(map(int, u.urlopen('http://calibre-ebook.com/downloads/latest_version').read().split('.'))))))"
UP_TO_DATE=$?
if [ $UP_TO_DATE = 0 ]; then
echo "Calibre is up-to-date"
else
calibre --shutdown-running-calibre
killall calibre-server
sudo -v; wget -nv -O- https://github.com/kovidgoyal/calibre/raw/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
fi
Last edited by eschwartz; 02-28-2014 at 01:50 AM. |
|
|
|
|
|
#34 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
|
|
|
|
|
|
|
#35 | ||
|
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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)
|
New update! I created a sticky thread a while back describing the update script, here: https://www.mobileread.com/forums/sho...d.php?t=237233
It has now been updated with some things of mild importance (you might want to update ):Quote:
Quote:
Last edited by eschwartz; 07-30-2014 at 09:36 AM. |
||
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 0.7 Linux Ubuntu ppa | dicknskip | Sigil | 21 | 04-20-2013 05:29 AM |
| Official Calibre ereader app for mobile devices? | mcandre | Calibre | 15 | 12-18-2012 04:27 PM |
| New official covers | gers1978 | Amazon Kindle | 20 | 10-07-2011 12:15 PM |
| Firmware Update 3.0.2 is official | mrzerga | Amazon Kindle | 33 | 10-23-2010 08:32 AM |
| It's Official | BuddyBoy | Sony Reader | 9 | 11-09-2006 06:21 PM |