04-07-2019, 06:02 PM | #1 |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Calibre won't install in Ubuntu Server 18.04
Hello good people
I recently got a server, for learning how to run a home server among other things. One of the things is that I'd like to run is a calibre server which serves my books to my reading devices. However, I'm finding myself unable to install Calibre in my vanilla Ubuntu Server 18.04 install. This is the output of the installer script: Code:
2019-04-07 21:44:48 URL:https://download.calibre-ebook.com/linux-installer.sh [31070/31070] -> "-" [1] Using python executable: /usr/bin/python3 Installing to /opt/calibre Downloading tarball signature securely... Using previously downloaded calibre-3.40.1-x86_64.txz Extracting files to /opt/calibre ... Extracting application files... Creating symlinks... (cue 30 million symlinks) Setting up command-line completion... Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre Failed to find directory to install bash completions, using default. Installing bash completion to: /usr/share/bash-completion/completions/calibre ____________________ WARNING ____________________ Setting up completion failed with error: __________________________________________________ Traceback (most recent call last): File "site-packages/calibre/linux.py", line 755, in setup_completion File "site-packages/calibre/linux.py", line 509, in write_completion File "site-packages/calibre/gui2/__init__.py", line 13, in <module> ImportError: cannot import name QApplication Setting up desktop integration... ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "site-packages/calibre/linux.py", line 815, in setup_desktop_integration File "site-packages/calibre/linux.py", line 800, in install_icons File "site-packages/calibre/linux.py", line 790, in install_single_icon File "site-packages/calibre/linux.py", line 1132, in render_img ImportError: cannot import name QImage |
04-08-2019, 02:05 AM | #2 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Run something like
calibre-debug -c "from PyQt5.QtGui import QImage" to get a more detail error message. |
04-09-2019, 03:13 PM | #3 |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Output of the command:
Code:
logseman@gardefier:~$ calibre-debug -c "from PyQt5.QtGui import QImage" No write acces to /home/logseman/.config/calibre using a temporary dir instead Traceback (most recent call last): File "site.py", line 77, in main File "site-packages/calibre/debug.py", line 276, in main File "<string>", line 1, in <module> ImportError: libGL.so.1: cannot open shared object file: No such file or directory |
04-09-2019, 09:09 PM | #4 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You are missing libGL.so probably need to install mesa or some such package that provides it on your system
|
04-10-2019, 01:53 AM | #5 |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
I installed the library, and it still complains about something else:
Code:
____________________ WARNING ____________________ Setting up completion failed with error: __________________________________________________ Traceback (most recent call last): File "site-packages/calibre/linux.py", line 755, in setup_completion File "site-packages/calibre/linux.py", line 510, in write_completion File "site-packages/calibre/gui2/viewer/main.py", line 29, in <module> File "site-packages/calibre/gui2/viewer/ui.py", line 11, in <module> ImportError: cannot import name QWebView Setting up desktop integration... ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "site-packages/calibre/linux.py", line 815, in setup_desktop_integration File "site-packages/calibre/linux.py", line 800, in install_icons File "site-packages/calibre/linux.py", line 794, in install_single_icon File "subprocess.py", line 185, in check_call File "subprocess.py", line 172, in call File "subprocess.py", line 394, in __init__ File "subprocess.py", line 1047, in _execute_child OSError: [Errno 2] No such file or directory |
04-10-2019, 05:20 AM | #6 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Now you need
calibre-debug -c "from PyQt5.QtWebKitWidgets import QWebView" to see what is missing. |
04-10-2019, 02:51 PM | #7 |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Strangely enough, after uninstalling and reinstalling Calibre and libgx1-mesa-glx I got another one:
Code:
calibre-debug -c "from PyQt5.QtWebKitWidgets import QWebView" No write acces to /home/logseman/.config/calibre using a temporary dir instead Traceback (most recent call last): File "site.py", line 77, in main File "site-packages/calibre/debug.py", line 276, in main File "<string>", line 1, in <module> ImportError: libXrender.so.1: cannot open shared object file: No such file or directory Code:
Traceback (most recent call last): File "site.py", line 77, in main File "site-packages/calibre/debug.py", line 276, in main File "<string>", line 1, in <module> ImportError: libXcomposite.so.1: cannot open shared object file: No such file or directory However, when I ran calibre afterwards: Code:
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". Available platform plugins are: linuxfb, minimal, offscreen, xcb. Reinstalling the application may fix this problem. Aborted (core dumped) Following the indication of calibre's error message, I uninstalled the app and reinstalled it again (with all those dependencies mentioned so far still installed). "Setting up completion" didn't fail this time, but the desktop integration did with the same error message as originally: Code:
____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "site-packages/calibre/linux.py", line 815, in setup_desktop_integration File "site-packages/calibre/linux.py", line 800, in install_icons File "site-packages/calibre/linux.py", line 794, in install_single_icon File "subprocess.py", line 185, in check_call File "subprocess.py", line 172, in call File "subprocess.py", line 394, in __init__ File "subprocess.py", line 1047, in _execute_child OSError: [Errno 2] No such file or directory I hope I'm not being annoying. |
04-10-2019, 11:10 PM | #8 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
desktop integration failing is because of missing xdg-utils. As for why Qt is unable to load the xcb plugin use the
QT_DEBUG_PLUGINS environment variable to get more verbose output for why Qt cannot load the plugin. LD_DEBUG=libs will also help. |
04-11-2019, 04:30 PM | #9 | |
Orisa
Posts: 1,999
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
|
Quote:
Code:
QXcbConnect: Could not connect to display Aborted (Core Dump) |
|
04-11-2019, 09:51 PM | #10 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The calibre GUI most definitely requires a working X server to run on LInux. The calibre command line tools do not.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
installing Calibre content server 3 on ubuntu server 16_04 | khyox | Calibre | 22 | 01-06-2018 11:34 PM |
Unable to install calibre 0.8.52 on Ubuntu 12.04!! | calibrenewbie | Calibre | 2 | 07-23-2012 08:10 AM |
Ubuntu Calibre 6.46 Install fails | theducks | Calibre | 24 | 04-02-2010 09:27 AM |
New Calibre install won't start/seg faults on Ubuntu 9.10 64-bit | lizajane999 | Calibre | 4 | 02-06-2010 02:42 PM |
Cannot install calibre on ubuntu 8.04 | kkkidder | Calibre | 1 | 03-19-2009 10:44 PM |