Hi everyone! I am new to this forum. I am trying to set up Calibre server on a headless server. To test everything and work out general issues, I am first trying to install it on a raspberry pi. Later I will install it on my main home server which is also running Ubuntu 20.04. This is my first attempt at running
Calibre server on a headless system.
System: Raspberry Pi
OS: Ubuntu 20.04 - no alterations, just a clean install
python version...
xxx@xxx:~$ python --version
Python 2.7.18rc1
xxx@xxx:~$ python3 --version
Python 3.8.2
It would appear that Ubuntu installs both versions automatically.
Command used for installing:
sudo -v && wget --no-check-certificate -nv -O-
https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
(But I get the same error no matter which version of the installer I use)
Error:
Downloaded 102399576 bytes
Checking downloaded file integrity...
Extracting files to /opt/calibre ...
Extracting application files...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 800, in script_launch
File "<string>", line 756, in main
File "<string>", line 707, in run_installer
File "/usr/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/opt/calibre/calibre_postinstall'
The problem:
It seems that Ubuntu server 20.04 has two versions of python installed and the script is grabbing python3.8 instead of python2.7 probably because that is set as the system default.
I really don't want to change the system's default settings as this will mess up system scripts. Is there a way to force the Calibre installer to grab the correct version of python?