calibre-uninstall doesn't run on Ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Calibre is installed using the command as per stated in official website-
"sudo -v && wget -nv -O- https:/
The "calibre-uninstall" file successfully generates in /bin
But running "sudo calibre-uninstall" returns error- "No such file or directory".
Opening the "calibre-uninstall" file with text-editor reveals that the file lists the address of python in "/usr/bin/python". There is no longer a "python" file in "/usr/bin" on a freshly installed Ubuntu 20.04, it has been replaced by the file "python3".
Editing the "calibre-uninstall" file to rename the package as "python3" works and uninstall process completes without any error.
Requesting appropriate change(s).
description: | updated |
description: | updated |
description: | updated |
description: | updated |
The linux-installer.py script has already been switched for Ubuntu's
convenience to be a shellscript that repeatedly tries to find various
interpreters. So that's one option.
Maybe, however, it would be better to make calibre. linux:PostInsta ll
accept another argument, which linux-installer.py would populate as
pi.extend( ['--python- cmd', sys.executable])
This would ensure that whichever python command was used when
linux-installer.sh probed for a suitable $PYTHON to run its integrated
heredoc, was also embedded into the calibre-uninstall program.
setup/install.py could make opts.python_cmd default to sys.executable postinstall, they
for from-source builds, and for the case where someone uses an isolated
install of the binary build, then later runs calibre_
can either manually specify it or let it assume /usr/bin/python.