Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2009, 07:14 AM   #1
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
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
When calibre is started, it's still the old version.

Running ubuntu karmic.

cheers
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 11:50 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: 24,834
Karma: 4370273
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Post the result of running

readlink --help
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 10-19-2009, 01:51 PM   #3
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
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/>
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 01:53 PM   #4
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: 24,834
Karma: 4370273
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
kovidgoyal is offline   Reply With Quote
Old 10-19-2009, 01:54 PM   #5
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
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.)
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 01:57 PM   #6
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
Quote:
Originally Posted by kovidgoyal View Post
Do you have some shell other than bash set as /bin/sh?

ls -l /bin/sh
/bin/sh is dash which is like, but not a clone of, ksh
My environment is bash.
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 01:59 PM   #7
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
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?
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 02:46 PM   #8
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
Quote:
Originally Posted by booksonthemove View Post
Would it help if rather than running as sudo, that I became root, invoked bash, then ran the command?
seems to not make any odds, sudo retains my shell.
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 02:59 PM   #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: 24,834
Karma: 4370273
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
edit /opt/calibre/calibre (its a bash script) and see where the error is occurring
kovidgoyal is offline   Reply With Quote
Old 10-19-2009, 05:02 PM   #10
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
Quote:
Originally Posted by kovidgoyal View Post
edit /opt/calibre/calibre (its a bash script) and see where the error is occurring
In between your last reply and this one, I became root and re-downloaded/reran the script. I made sure i was in bash before running it. It still completed with errors, here is the output:

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
It seems to work - haven't really done much with it yet though.
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 05:12 PM   #11
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
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 ?
booksonthemove is offline   Reply With Quote
Old 10-19-2009, 05:14 PM   #12
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: 24,834
Karma: 4370273
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
dash is fine. If it installed as root, you should be ok.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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