10-19-2009, 07:14 AM | #1 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
calibre 0.6.17 fails to upgrade
Hi,
I get the following error: Code:
sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()" Enter the installation directory for calibre [/opt]: Will download and install calibre-0.6.18-x86_64.tar.bz2 Downloading calibre-0.6.18-x86_64.tar.bz2 100% [==================================================================================================================================================] Extracting files to /opt/calibre ... Extracting application files... readlink: illegal option -- e usage: readlink [-n] [file ...] usage: dirname string [...] /opt/calibre/calibre_postinstall: /loader: not found Run "calibre" to start calibre Running ubuntu karmic. cheers |
10-19-2009, 11:50 AM | #2 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Post the result of running
readlink --help |
Advert | |
|
10-19-2009, 01:51 PM | #3 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
Here you go:
Code:
$ readlink --help Usage: readlink [OPTION]... FILE Display value of a symbolic link on standard output. -f, --canonicalize canonicalise by following every symlink in every component of the given name recursively; all but the last component must exist -e, --canonicalize-existing canonicalise by following every symlink in every component of the given name recursively, all components must exist -m, --canonicalize-missing canonicalise by following every symlink in every component of the given name recursively, without requirements on components existence -n, --no-newline do not output the trailing newline -q, --quiet, -s, --silent suppress most error messages -v, --verbose report error messages --help display this help and exit --version output version information and exit Report readlink bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> Report readlink translation bugs to <http://translationproject.org/team/> |
10-19-2009, 01:53 PM | #4 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Do you have some shell other than bash set as /bin/sh?
ls -l /bin/sh |
10-19-2009, 01:54 PM | #5 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
Please note that I have successfully upgraded using this method I think 5 times now, this is the first time I have encountered any error at all (that being said, Karmic is still beta although it is very close to the release date. I system update daily.)
|
Advert | |
|
10-19-2009, 01:57 PM | #6 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
|
10-19-2009, 01:59 PM | #7 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
Would it help if rather than running as sudo, that I became root, invoked bash, then ran the command?
|
10-19-2009, 02:46 PM | #8 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
|
10-19-2009, 02:59 PM | #9 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
edit /opt/calibre/calibre (its a bash script) and see where the error is occurring
|
10-19-2009, 05:02 PM | #10 | |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
Quote:
Code:
# python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()" Enter the installation directory for calibre [/opt]: Will download and install calibre-0.6.18-x86_64.tar.bz2 Downloading calibre-0.6.18-x86_64.tar.bz2 100% [==================================================================================================================================================] Extracting files to /opt/calibre ... Extracting application files... Creating symlinks... Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta Symlinking /opt/calibre/pdfmanipulate to /usr/bin/pdfmanipulate Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer Symlinking /opt/calibre/calibre to /usr/bin/calibre Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel Symlinking /opt/calibre/web2disk to /usr/bin/web2disk Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device Symlinking /opt/calibre/librarything to /usr/bin/librarything Symlinking /opt/calibre/calibredb to /usr/bin/calibredb Setting up bash completion... ____________________ WARNING ____________________ Setting up completion failed with error: __________________________________________________ Traceback (most recent call last): File "/home/kovid/work/calibre/src/calibre/linux.py", line 176, in setup_completion ImportError: cannot import name titles Trying to setup udev rules... Installing MAN pages... Installing MAN page for ebook-meta Installing MAN page for ebook-convert Installing MAN page for web2disk Installing MAN page for calibre-server Installing MAN page for lrf2lrs Installing MAN page for lrs2lrf Installing MAN page for librarything Installing MAN page for calibre-debug Installing MAN page for calibredb Installing MAN page for calibre-customize Installing MAN page for pdfmanipulate Installing MAN page for fetch-ebook-metadata Installing MAN page for calibre-smtp Setting up desktop integration... Traceback (most recent call last): File "/tmp/init.py", line 48, in <module> File "/home/kovid/work/calibre/src/calibre/linux.py", line 571, in main File "/home/kovid/work/calibre/src/calibre/linux.py", line 143, in __init__ OSError: [Errno 2] No such file or directory: '/root/.config/calibre' Run "calibre" to start calibre |
|
10-19-2009, 05:12 PM | #11 |
Connoisseur
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
|
Nothing seems wrong in /opt/calibre/calibre
I mean under ubuntu /bin/sh has been linked to dash since forever. Is this version of calibre the first one where you've used a shebang path of #!/bin/sh ? |
10-19-2009, 05:14 PM | #12 |
creator of calibre
Posts: 44,017
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
dash is fine. If it installed as root, you should be ok.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Content Server d/l fails on Android | Mogrith | Android Devices | 9 | 11-01-2010 06:04 PM |
Calibre fails to start on WinXP | lysistrata | Calibre | 5 | 10-18-2010 02:51 AM |
Ubuntu Calibre 6.46 Install fails | theducks | Calibre | 24 | 04-02-2010 09:27 AM |
NY Times Recipe in Calibre 6.36 Fails | keyrunner | Calibre | 1 | 01-28-2010 11:56 AM |
Calibre fails to start after upgrade | njw7 | Calibre | 0 | 12-18-2008 05:41 AM |