View Single Post
Old 07-12-2022, 06:26 PM   #27
JonhBS
Junior Member
JonhBS doesn't litterJonhBS doesn't litterJonhBS doesn't litter
 
Posts: 1
Karma: 200
Join Date: Jul 2022
Device: Amazon Kindle Paperwhite
This solution works for me in Xubuntu 22.04 LTS

Quote:
Originally Posted by SickProdigy View Post
Have ran
sudo apt install libxcb-randr0
sudo apt install xcb
sudo apt install libxcb-xinerama0

Still getting
qt.qpa.xcb: could not connect to display
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, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

--

My deduction seems to be you cant do this on a headless server?
Or you can't run "calibre" in console on a headless server i mean.

Still can't quite figure out how to get this working on headless linux server. Using ubuntu 20.xx
Hello everyone.

I recently did a fresh Xubuntu 22.04 installation and at the moment to install and run calibre (last version 6.0 following the instructions from calibre's webpage) I got the same error message: "qt.qpa.plugingCould not load the Qt platform plugging xcb..."

After install the xcb libraries as you recommended in this topic I still got the same error message.

The solution that works for me:
I remove calibre with the calibre-uninstall command. Then previously having installed the xcb libraries I also installed an app from the repositories that use qt libraries (for example kalzium). After that I installed again calibre from the calibre's webpage and it works perfectly.

I hope it helps someone!!

Thanks for your support. Best regards
JonhBS is offline   Reply With Quote