Score:1

Calibre not working in Ubuntu 20.04 LTS

in flag

I tried to install calibre in Ubuntu 20.04 and it won't launch. I followed the instructions from another question (Calibre No Longer Working) but it didn't work. This is how I installed (version 5.20.0):

sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

I'm getting this error:

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)

Any ideas?

codlord avatar
ru flag
You have not said what version of Calibre you are trying to install or how or what kind of install/s you have tried (e.g. binary, deb package etc).
Unnamed avatar
in flag
Sorry, it's edited now
codlord avatar
ru flag
Did you explicitly need or want version 5? I see on the Ubuntu package list that the latest packaged version for 20.04 is 4.99.4 see here: https://packages.ubuntu.com/search?keywords=calibre&searchon=names&suite=focal&section=all If that version is good enough you could try installing that version (from installer script or from Ubuntu app store). It may be that version 5 is not compatible with 20.04 due to the reasons highlighted in your link.
Unnamed avatar
in flag
No, I don't care about the version
Score:2
kr flag

Had the same problems on a fresh Ubuntu 20.04.3 LTS (focal) install. Solved it by doing the following:

  1. Installed the latest Calibre version (5.32) using:

    wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
    
  2. Installed the xcb library using:

    apt install libxcb-xinerama0
    

No problems any longer after that. Many thanks to all for the hints.

Score:1
in flag

This post might solve your issue. Quoting from Calibre - Download for Linux page -

If you get an error Could not load the Qt platform plugin xcb you are missing some needed X11-XCB libraries, such as libxcb-xinerama0, for details see here

Unnamed avatar
in flag
That worked perfectly!
user819730 avatar
cn flag
March 2022 and I still got this issue in Ubuntu 21.10. Running "sudo apt-get install libxcb-xinerama0" fixed it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.