02-28-2024, 07:15 AM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
Cannot get Calibre setup on Proxmox LXC.
Hello, my previous thread was closed, and I am unsure why. I am having trouble getting Calibre to install and run for me. I am on LXC 15 or 16 now, as I have tried multiple guides, and install methods, but none seem to work. All roads lead to the same issue.
Hypervisor: Proxmox 8.1.4 LXC OS: Ubuntu 22.04.03 fresh install (Headless) LXC Storage: 25GiB VCPU Cores: 2 Memory: 4096 MiB Swap: 0 Commands Run: Code:
sudo apt update && apt upgrade -y Code:
sudo apt install xdg-utils wget xz-utils python3 libegl1 libopengl0 libxcb-cursor0 -y Code:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin Code:
root@Calibre:~# sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin Using python executable: /usr/bin/python3 2024-02-19 14:45:42 URL:https://download.calibre-ebook.com/linux-installer.sh [34233/34233] -> "-" [1] Installing to /opt/calibre Downloading tarball signature securely... Will download and install calibre-7.5.1-x86_64.txz Downloading calibre-7.5.1-x86_64.txz 100% [=============================================================================================] Downloaded 146274300 bytes Checking downloaded file integrity... Extracting files to /opt/calibre ... Extracting application files... Creating symlinks... Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre Symlinking /opt/calibre/web2disk to /usr/bin/web2disk Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug Symlinking /opt/calibre/calibredb to /usr/bin/calibredb Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp Symlinking /opt/calibre/calibre to /usr/bin/calibre Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit 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/ Failed to import PyQt module: PyQt6.QtWebEngineCore with error: libnss3.so: cannot open shared object file: No such file or directory ____________________ WARNING ____________________ Setting up completion failed with error: __________________________________________________ Traceback (most recent call last): File "calibre/linux.py", line 837, in setup_completion File "calibre/linux.py", line 587, in write_completion File "bypy-importer.py", line 279, in exec_module File "calibre/gui2/tweak_book/main.py", line 12, in <module> File "bypy-importer.py", line 279, in exec_module File "calibre/ebooks/oeb/polish/check/css.py", line 11, in <module> ImportError: cannot import name 'QWebEnginePage' from 'qt.webengine' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/qt/webengine.pyc) Setting up desktop integration... xdg-desktop-menu: No writable system menu directory found. ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "calibre/linux.py", line 858, in setup_desktop_integration File "calibre/linux.py", line 880, in do_setup_desktop_integration File "calibre/linux.py", line 958, in install_xdg_junk File "subprocess.py", line 413, in check_call subprocess.CalledProcessError: Command 'xdg-desktop-menu install --noupdate ./calibre-gui.desktop' returned non-zero exit status 3. Creating un-installer: /usr/bin/calibre-uninstall There were 2 warnings * Setting up completion failed with error: * Setting up desktop integration failed with error: Run "calibre" to start calibre Code:
root@Calibre:~# calibre Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, vnc, vkkhrdisplay, linuxfb, minimal, wayland, wayland-egl, offscreen, minimalegl, xcb. Aborted Code:
sudo apt install libnss3 -y |
02-28-2024, 08:25 AM | #2 |
creator of calibre
Posts: 44,344
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
From looking at the errors in your posted output. You are missing
libnss3.so You have no locale set. You are running as root for some reason? |
Advert | |
|
02-28-2024, 09:58 AM | #3 | |
Wizard
Posts: 2,115
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Try:
Code:
sudo apt install libxcb-cursor0 Quote:
|
|
02-29-2024, 08:36 AM | #4 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
The last part of my post mentions I found another post on another forum that mentioned that, so I did install it, and it did not help. I got the same error.
|
02-29-2024, 08:41 AM | #5 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
|
Advert | |
|
02-29-2024, 09:19 AM | #6 |
creator of calibre
Posts: 44,344
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
02-29-2024, 09:22 AM | #7 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
Ok, I have just created another LXC fresh. Below are the commands and results. As you can see both
Code:
sudo apt update && apt upgrade -y Ran that again to check if they installed correctly. Code:
Reading package lists... Done Building dependency tree... Done Reading state information... Done libegl1 is already the newest version (1.4.0-1). libopengl0 is already the newest version (1.4.0-1). wget is already the newest version (1.21.2-2ubuntu1). xz-utils is already the newest version (5.2.5-2ubuntu1). libxcb-cursor0 is already the newest version (0.1.1-4ubuntu1). libnss3 is already the newest version (2:3.68.2-0ubuntu1.2). python3 is already the newest version (3.10.6-1~22.04). xdg-utils is already the newest version (1.1.3-4.1ubuntu3~22.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Code:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin Code:
Using python executable: /usr/bin/python3 2024-02-29 14:11:55 URL:https://download.calibre-ebook.com/linux-installer.sh [34233/34233] -> "-" [1] Installing to /opt/calibre Downloading tarball signature securely... Will download and install calibre-7.5.1-x86_64.txz Downloading calibre-7.5.1-x86_64.txz 100% [======================================================================================================================================================] Downloaded 146274300 bytes Checking downloaded file integrity... Extracting files to /opt/calibre ... Extracting application files... Creating symlinks... Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre Symlinking /opt/calibre/web2disk to /usr/bin/web2disk Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug Symlinking /opt/calibre/calibredb to /usr/bin/calibredb Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp Symlinking /opt/calibre/calibre to /usr/bin/calibre Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit 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/ Setting up desktop integration... xdg-desktop-menu: No writable system menu directory found. ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "calibre/linux.py", line 858, in setup_desktop_integration File "calibre/linux.py", line 880, in do_setup_desktop_integration File "calibre/linux.py", line 958, in install_xdg_junk File "subprocess.py", line 413, in check_call subprocess.CalledProcessError: Command 'xdg-desktop-menu install --noupdate ./calibre-gui.desktop' returned non-zero exit status 3. Creating un-installer: /usr/bin/calibre-uninstall There were 1 warnings * Setting up desktop integration failed with error: Run "calibre" to start calibre Code:
root@Calibre:~# calibre Code:
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: offscreen, vnc, vkkhrdisplay, linuxfb, minimalegl, minimal, eglfs, xcb, wayland-egl, wayland. Aborted |
02-29-2024, 09:25 AM | #8 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
Ok, I have just created another LXC fresh. Below are the commands and results. As you can see both
Code:
sudo apt update && apt upgrade -y Ran that again to check if they installed correctly. Code:
Reading package lists... Done Building dependency tree... Done Reading state information... Done libegl1 is already the newest version (1.4.0-1). libopengl0 is already the newest version (1.4.0-1). wget is already the newest version (1.21.2-2ubuntu1). xz-utils is already the newest version (5.2.5-2ubuntu1). libxcb-cursor0 is already the newest version (0.1.1-4ubuntu1). libnss3 is already the newest version (2:3.68.2-0ubuntu1.2). python3 is already the newest version (3.10.6-1~22.04). xdg-utils is already the newest version (1.1.3-4.1ubuntu3~22.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Code:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin Code:
Using python executable: /usr/bin/python3 2024-02-29 14:11:55 URL:https://download.calibre-ebook.com/linux-installer.sh [34233/34233] -> "-" [1] Installing to /opt/calibre Downloading tarball signature securely... Will download and install calibre-7.5.1-x86_64.txz Downloading calibre-7.5.1-x86_64.txz 100% [======================================================================================================================================================] Downloaded 146274300 bytes Checking downloaded file integrity... Extracting files to /opt/calibre ... Extracting application files... Creating symlinks... Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre Symlinking /opt/calibre/web2disk to /usr/bin/web2disk Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug Symlinking /opt/calibre/calibredb to /usr/bin/calibredb Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp Symlinking /opt/calibre/calibre to /usr/bin/calibre Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit 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/ Setting up desktop integration... xdg-desktop-menu: No writable system menu directory found. ____________________ WARNING ____________________ Setting up desktop integration failed with error: __________________________________________________ Traceback (most recent call last): File "calibre/linux.py", line 858, in setup_desktop_integration File "calibre/linux.py", line 880, in do_setup_desktop_integration File "calibre/linux.py", line 958, in install_xdg_junk File "subprocess.py", line 413, in check_call subprocess.CalledProcessError: Command 'xdg-desktop-menu install --noupdate ./calibre-gui.desktop' returned non-zero exit status 3. Creating un-installer: /usr/bin/calibre-uninstall There were 1 warnings * Setting up desktop integration failed with error: Run "calibre" to start calibre Code:
root@Calibre:~# calibre Code:
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: offscreen, vnc, vkkhrdisplay, linuxfb, minimalegl, minimal, eglfs, xcb, wayland-egl, wayland. Aborted |
02-29-2024, 09:28 AM | #9 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
[CODE]sudo apt install xdg-utils wget xz-utils python3 libegl1 libopengl0 libnss3 libxcb-cursor0 -y
Ran that again to check if they installed correctly. Code:
Reading package lists... Done Building dependency tree... Done Reading state information... Done libegl1 is already the newest version (1.4.0-1). libopengl0 is already the newest version (1.4.0-1). wget is already the newest version (1.21.2-2ubuntu1). xz-utils is already the newest version (5.2.5-2ubuntu1). libxcb-cursor0 is already the newest version (0.1.1-4ubuntu1). libnss3 is already the newest version (2:3.68.2-0ubuntu1.2). python3 is already the newest version (3.10.6-1~22.04). xdg-utils is already the newest version (1.1.3-4.1ubuntu3~22.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
02-29-2024, 09:39 AM | #10 |
Well trained by Cats
Posts: 30,376
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Please use Spoiler tags for Logs, not code tags
|
02-29-2024, 09:41 AM | #11 |
Resident Curmudgeon
Posts: 75,890
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
02-29-2024, 09:44 AM | #12 |
Well trained by Cats
Posts: 30,376
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
02-29-2024, 09:48 AM | #13 |
creator of calibre
Posts: 44,344
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And now your libnss error is gone, as expected. Now you need to fix your locale. Read the error messages when you run calibre.
|
02-29-2024, 11:47 AM | #14 |
Junior Member
Posts: 8
Karma: 10
Join Date: Feb 2024
Device: Kobo Libra 2
|
Thank you, I needed you to tell me to read... Clearly, I did not understand the error or I would not have posted it, but now I see what people are talking about when they reference the attitude that comes with support if you are new to this. I have figured it out but maybe let others support new people if you cannot have any compassion and desire to help someone understand...
|
02-29-2024, 12:51 PM | #15 | |
Bibliophagist
Posts: 39,460
Karma: 154108302
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
A quick search through the calibre forum shows that while Windows and MacOS users constitute 81.1% and 14.6% of calibre users, the 4.3% of Linux calibre users have posted about far more installation issues than that 95.7% does. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues installing on a Proxmox LXC. | The_Real_Fayz | Server | 0 | 02-19-2024 12:23 PM |
no setup of Calibre possible | DMcCunney | Calibre | 34 | 10-24-2020 06:19 PM |
what is 'Page Setup' (Calibre) | u238110 | Conversion | 9 | 03-09-2015 10:09 PM |
New machine, keep old calibre setup? | TdeV | Calibre | 2 | 12-06-2011 02:14 PM |