linux uninstaller (/usr/bin/calibre-uninstall)

Bug #1283154 reported by Markus Killer on 2014-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre version: calibre-1.25.0-x86_64.tar.bz2

$ uname -a (Distro: Xubuntu 13.10 64-bit)
Linux hp-8470w 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

http://calibre-ebook.com/download_linux states:

"There is no uninstaller. Simply deleting the installation directory will remove 99% of all installed files. " (3rd bullet just below support badge)

... but the Calibre's install script creates a script called 'calibre-uninstall' in /usr/bin.

When I try to run this script, I get the following error:

$ sudo calibre-uninstall
/opt/calibre/bin/calibre_postinstall: error while loading shared libraries: libcalibre-launcher.so: cannot open shared object file: No such file or directory

It seems to be a regular python script and it works if I start it with the default python interpreter:

1) changing the shebang line would fix it, if this is an intentionally installed script. For a complete uninstall users would have to run the following 3 commands:

$ sudo rm -fr /opt/calibre
$ sudo /usr/bin/calibre-uninstall
$ sudo rm -f /usr/bin/calibre-uninstall

2) if it's just supposed to be a hack for developers, I'd suggest to remove it from the list of files linked or copied to /usr/bin and place it in Calibre's install directory instead.

OUTPUT OF $ sudo python /usr/bin/calibre-uninstall:

Removing /usr/bin/fetch-ebook-metadata
Removing /usr/bin/lrf2lrs
Removing /usr/bin/ebook-convert
Removing /usr/bin/ebook-meta
Removing /usr/bin/ebook-edit
Removing /usr/bin/lrfviewer
Removing /usr/bin/calibre
Removing /usr/bin/markdown-calibre
Removing /usr/bin/calibre-debug
Removing /usr/bin/calibre-parallel
Removing /usr/bin/web2disk
Removing /usr/bin/calibre-server
Removing /usr/bin/calibre-customize
Removing /usr/bin/ebook-polish
Removing /usr/bin/ebook-viewer
Removing /usr/bin/calibre-smtp
Removing /usr/bin/lrs2lrf
Removing /usr/bin/ebook-device
Removing /usr/bin/calibredb
Removing /usr/local/share/zsh/site-functions/_calibre
Removing /usr/share/bash-completion/calibre

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers