Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 01-02-2016, 11:35 PM   #1
SilverBear
ἄρκτος ὁ Μέγας
SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.
 
SilverBear's Avatar
 
Posts: 76
Karma: 155874
Join Date: Dec 2009
Location: Western New York State
Device: Onyx Boox 60
solved --update error in Debian 8 Linux

Hi, all.
And @ Kovid: Hope your vacation was wonderful!

I've encountered the same error message twice --a few weeks ago when trying to update from Calibre 2.46 to 2.47 --and today, trying to update 2.46 to 2.48.

I run the DL/install command --cut & paste from the calibre website. The download completes, and as the installation starts to run, it terminates with these messages:
Quote:
. . .
Downloaded 62233416 bytes
Checking downloaded file integrity...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 670, in main
File "<string>", line 655, in run_installer
File "<string>", line 631, in download_and_extract
File "/usr/lib/python2.7/shutil.py", line 232, in rmtree
onerror(os.path.islink, path, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 230, in rmtree
raise OSError("Cannot call rmtree on a symbolic link")
OSError: Cannot call rmtree on a symbolic link
. . . and the process terminates.

I've been running Calibre on this desktop machine under a few different Linux distros over the last four years with no trouble. I've had Debian 8 ("Jessie") installed & calibre has been happy since June 2015. Does anyone have advice on how to work around this problem?

Last edited by SilverBear; 01-03-2016 at 01:22 AM. Reason: solved
SilverBear is offline   Reply With Quote
Old 01-03-2016, 12:06 AM   #2
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,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Are there symbolic links in /opt/calibre ?
There shouldn't be, unless something other than calibre's installer has touched that folder...

But anyway, try clearing it with `sudo rm -rf /opt/calibre` and retrying the installation.

Shameless plug: Also see my sticky in Related Tools, for an easy way to auto-update.
eschwartz is offline   Reply With Quote
Old 01-03-2016, 12:37 AM   #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,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's a very strange error, as far as I can tell it should be impossible, unless some other process is modifying the installation directory simultaneously with the calibre installer. Or the lstat system call is failing for files in the installation directory.

@eschwartz: The presence of symlinks should not matter, since python's rmtree implementation does not call itself with symlinks as arguments. The only way it can happen is if os.lstat fails for a path. Then the rmtree() implementation just assumes the path is a directory. I dont know why rmtree was designed to ignore lstat failures.
kovidgoyal is online now   Reply With Quote
Old 01-03-2016, 01:19 AM   #4
SilverBear
ἄρκτος ὁ Μέγας
SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.SilverBear can grok the meaning of the universe.
 
SilverBear's Avatar
 
Posts: 76
Karma: 155874
Join Date: Dec 2009
Location: Western New York State
Device: Onyx Boox 60
Uh-ohh. . .

Quote:
Originally Posted by kovidgoyal View Post
That's a very strange error...
Yes, it is. And it turns out that I am the very strange man who caused it.

In addition to my Debian 8 install, I've been testing out the latest Linux Mint and MX-Linux versions. I routinely symlink my data partitions into my /home/silverbear directories so I have access to all my data no matter what distro I'm running.

APPARENTLY I got the not-so-bright idea to do the same with my install of calibre 2.46 as a time-saving experiment. . .
. . . and then forgot I'd done it.

Lesson: do not modify the OS late at night when you have an insomnia attack!

I'm sorry for wasting your time, gentlemen. Symlink has been rm'd and calibre 2.48 is nicely installed in /opt with no problems.
SilverBear is offline   Reply With Quote
Old 01-03-2016, 02:05 AM   #5
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,422
Karma: 85397180
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 kovidgoyal View Post
@eschwartz: The presence of symlinks should not matter, since python's rmtree implementation does not call itself with symlinks as arguments. The only way it can happen is if os.lstat fails for a path. Then the rmtree() implementation just assumes the path is a directory. I dont know why rmtree was designed to ignore lstat failures.
Sorry presence of symlinks ==> is a symlink (if I read the docs right).
It is 2 AM here (was: midnight) -- this is probably a sign that I should go to sleep now...

@SilverBear -- not just you...
eschwartz is offline   Reply With Quote
Old 01-03-2016, 04:03 AM   #6
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,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This should take care of that case:

https://github.com/kovidgoyal/calibr...e70cd0321e2f85
kovidgoyal is online now   Reply With Quote
Reply

Tags
debian, linux, update error


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn your Kobo into a Debian Linux tablet MarekGibek Kobo Developer's Corner 125 12-11-2022 01:06 PM
Installing a "normal" Debian ARMEL Linux on the Kindle choff Kindle Developer's Corner 18 09-09-2014 02:42 AM
Installing calibre 1.26 in linux debian with no sudo Nix Hard Calibre 5 03-02-2014 10:47 PM
Linux install error anishtain4 Devices 1 05-17-2012 10:30 AM
Install in Bubba server (Debian Linux bubba 2.6.32.6) cc_humbry Calibre 5 07-24-2010 11:22 AM


All times are GMT -4. The time now is 10:11 AM.


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