Calibre 在 Ubuntu 20.04 LTS 中無法運作

Calibre 在 Ubuntu 20.04 LTS 中無法運作

我嘗試在 Ubuntu 20.04 中安裝 calibre,但它無法啟動。我按照另一個問題的說明進行操作(口徑不再運作)但沒有成功。這是我安裝的方式(版本5.20.0):

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

我收到此錯誤:

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)

有任何想法嗎?

答案1

這個帖子可能會解決你的問題。引用自Calibre - Linux 下載頁面-

如果您收到錯誤無法載入 Qt 平台插件 xcb,則您缺少一些所需的 X11-XCB 庫,例如 libxcb-xinerama0,有關詳細信息,請參閱此處

答案2

在全新的 Ubuntu 20.04.3 LTS(焦點)安裝上也有相同的問題。透過執行以下操作解決了該問題:

  1. 使用以下命令安裝最新的 Calibre 版本 (5.32):

    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. 使用以下命令安裝xcb庫:

    apt install libxcb-xinerama0
    

之後就不再有問題了。非常感謝大家的提示。

相關內容